Beispiel #1
0
 public override void GenerateFrequencies(Note[] notes)
 {
     for(int i = 0; i < notes.Count(); i++)
     {
         int distance = 0;
         for(int j = i+1; j < notes.Count(); j++)
         {
             distance += notes[j].Duration;
             if(notes[i].Pitch == notes[j].Pitch && !notes[i].IsRest())
             {
                 Add(new Pair(distance));
                 break;
             }
         }
     }
 }