Beispiel #1
0
        public List <Motif> split()
        {
            List <Motif> motifList = new List <Motif>();

            foreach (Voice v in voiceList)
            {
                SortedList <Harmony, int> newHarmonyList = new SortedList <Harmony, int>();
                for (int i = 0; i < this.harmonyList.Count; i++)
                {
                    newHarmonyList.Add(this.harmonyList.Keys[i].Clone(), this.harmonyList.Values[i]);
                }

                Motif m = new Motif(new List <Voice>(), this.id, new NullVariation(), this.tonality.Clone(), newHarmonyList);
                m.addVoice(v.Clone());
                motifList.Add(m);
            }
            return(motifList);
        }
Beispiel #2
0
 public void addMotif(Motif motif)
 {
     this.motifList.Add(motif.getId(), motif);
 }