/// <summary>
 /// Return note length as https://en.wikipedia.org/wiki/Note_value
 /// </summary>
 /// <param name="note"></param>
 /// <returns>MPTKEvent.EnumLength</returns>
 public MPTKEvent.EnumLength MPTK_NoteLength(MPTKEvent note)
 {
     if (miditoplay != null)
     {
         return(miditoplay.NoteLength(note));
     }
     return(MPTKEvent.EnumLength.Sixteenth);
 }
Example #2
0
 /// <summary>
 /// Return note length as https://en.wikipedia.org/wiki/Note_value [New 1.9]
 /// </summary>
 /// <param name="note"></param>
 /// <returns></returns>
 public MidiNote.EnumLength NoteLength(MidiNote note)
 {
     if (miditoplay != null)
     {
         return(miditoplay.NoteLength(note));
     }
     return(MidiNote.EnumLength.Sixteenth);
 }
Example #3
0
 /// <summary>
 /// Return note length as https://en.wikipedia.org/wiki/Note_value
 /// </summary>
 /// <param name="note"></param>
 /// <returns>MPTKEvent.EnumLength</returns>
 public MPTKEvent.EnumLength MPTK_NoteLength(MPTKEvent note)
 {
     if (miditoload != null)
     {
         return(miditoload.NoteLength(note));
     }
     else
     {
         NoMidiLoaded("MPTK_NoteLength");
     }
     return(MPTKEvent.EnumLength.Sixteenth);
 }