Esempio n. 1
0
 public static void AssignFrequencyKeys(CollectionOfNotes structure, int offset)
 {
     foreach (Note n in structure.Notes)
     {
         n.FrequencyKey += offset;
     }
 }
Esempio n. 2
0
    public void TransposeInPlace(CollectionOfNotes originalSet, interval interval, direction direction)
    {
        note key = originalSet.Key;

        //Note[] notes = originalSet.Notes;
        //interval[] intervals = originalSet.Intervals;

        if (direction == direction.sharp)
        {
            key += theory.AdjustForScale((int)interval);
        }
        else
        {
            key -= theory.AdjustForScale((int)interval);
        }
        //notes = originalSet.GenerateNotes (key, intervals);
        originalSet.ModalKey = key;
    }