Esempio n. 1
0
        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;
                }
            }
        }
Esempio n. 2
0
 public static Note AddWholeStep(this Note note)
 {
     return(note.AddHalfStep()
            .AddHalfStep());
 }