/// <inheritdoc/> public void CloseNote(ulong ppq, byte k, short v) { MidiNote note = GetNote(k, -1) as MidiNote; if (note == null) { Console.WriteLine("note wasn't found: {0} {1}:{2}", MBT.GetString(ppq, MidiReader.FileDivision), k, v); return; } note.Len = Convert.ToInt32(ppq - note.Start); note.V2 = v; }
int IComparable.CompareTo(object obj) { MBT o = null; try { o = (MBT)obj; } catch { throw new ArgumentException("Object must be (or conver to) typeof(MBT)."); } if (this.Value < o.Value) { return(-1); } if (this.Value > o.Value) { return(1); } return(0); }
public static string GetMbtString(ulong value, int division) { return(MBT.GetString(value, division)); }
public string GetMbtLen(int division) { return(MBT.GetString(Convert.ToUInt64(Len), division)); }
/// <inheritdoc/> public string GetMbtString(ulong value) { return(MBT.GetString(value, FileDivision)); }
public string GetMBT(int division) { return(MBT.GetString(Start, division)); }