Пример #1
0
 private BellNote OptimizeNote(BellNote note)
 {
     if (note.Equals(new BellNote(BellNote.Keys.Note1, BellNote.Octaves.High)) && _currentOctave == BellNote.Octaves.Middle)
     {
         note = new BellNote(BellNote.Keys.Note8, BellNote.Octaves.Middle);
     }
     else if (note.Equals(new BellNote(BellNote.Keys.Note8, BellNote.Octaves.Middle)) && _currentOctave == BellNote.Octaves.High)
     {
         note = new BellNote(BellNote.Keys.Note1, BellNote.Octaves.High);
     }
     else if (note.Equals(new BellNote(BellNote.Keys.Note1, BellNote.Octaves.Middle)) && _currentOctave == BellNote.Octaves.Low)
     {
         note = new BellNote(BellNote.Keys.Note8, BellNote.Octaves.Low);
     }
     else if (note.Equals(new BellNote(BellNote.Keys.Note8, BellNote.Octaves.Low)) && _currentOctave == BellNote.Octaves.Middle)
     {
         note = new BellNote(BellNote.Keys.Note1, BellNote.Octaves.Middle);
     }
     return(note);
 }