コード例 #1
0
		/// <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;
		}
コード例 #2
0
        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);
        }
コード例 #3
0
 public static string GetMbtString(ulong value, int division)
 {
     return(MBT.GetString(value, division));
 }
コード例 #4
0
 public string GetMbtLen(int division)
 {
     return(MBT.GetString(Convert.ToUInt64(Len), division));
 }
コード例 #5
0
 /// <inheritdoc/>
 public string GetMbtString(ulong value)
 {
     return(MBT.GetString(value, FileDivision));
 }
コード例 #6
0
 public string GetMBT(int division)
 {
     return(MBT.GetString(Start, division));
 }