/// <summary> /// returns the next lower masternotetype to the given masternote type /// </summary> /// <param name="masterNoteType"></param> /// <returns></returns> private MasterNoteType GetNextLowerNoteType(MasterNoteType masterNoteType) { if (masterNoteType == _masterNote.MasterNoteType) { return(_masterNote.StepDown.Lower.MasterNoteType); } else { _masterNote = _masterNote.StepDown.Lower; return(GetNextLowerNoteType(masterNoteType)); } }
private int GetStepCountBetween(MasterNoteType lowerNoteType, MasterNoteType upperNoteType) { GetMasterNote(lowerNoteType); int stepCount = 0; while (_masterNote.MasterNoteType != upperNoteType) { stepCount += (int)_masterNote.StepUp.StepType; _masterNote = _masterNote.StepUp.Upper; } return(stepCount); }
/// <summary> /// returns the next upper masternotetype to the given masternote type /// </summary> /// <param name="masterNoteType"></param> /// <returns></returns> private MasterNoteType GetNextUpperNoteType(MasterNoteType masterNoteType) { if (masterNoteType == _masterNote.MasterNoteType) { return(_masterNote.StepUp.Upper.MasterNoteType); } else { _masterNote = _masterNote.StepUp.Upper; return(GetNextUpperNoteType(masterNoteType)); } }
/// <summary> /// returns half step count to next upper masternote for given masternote type /// </summary> /// <param name="masterNoteType"></param> /// <returns></returns> private StepType StepsToLower(MasterNoteType masterNoteType) { return(GetMasterNote(masterNoteType).StepDown.StepType); }
/// <summary> /// returns half step count to next upper masternote for given masternote type /// </summary> /// <param name="masterNoteType"></param> /// <returns></returns> private StepType StepsToUpper(MasterNoteType masterNoteType) { return(GetMasterNote(masterNoteType).StepUp.StepType); }
public MasterNote(MasterNoteType masterNote) { _masterNote = masterNote; }
public Note(MasterNoteType notetype, Accidentials accidentials, int octave) { _notetype = notetype; _accidentials = accidentials; _octave = octave; }
public Note(MasterNoteType notetype, Accidentials accidentials) { _notetype = notetype; _accidentials = accidentials; }
public Note(MasterNoteType notetype) { _notetype = notetype; }