public static void AssignFrequencyKeys(CollectionOfNotes structure, int offset) { foreach (Note n in structure.Notes) { n.FrequencyKey += offset; } }
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; }