private void Init() { if (_targetKey != null) { Note currentNote = _targetKey.Value; _scale[0] = currentNote; for (int i = 1; i < 7; i++) { if (i == 3) { currentNote = currentNote.AddHalfStep(); } else { currentNote = currentNote.AddWholeStep(); } _scale[i] = currentNote; } } }
public static Note AddWholeStep(this Note note) { return(note.AddHalfStep() .AddHalfStep()); }