예제 #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
 bool SameChanelComparer(MidiNote a, MidiNote b)
 {
     return a.Ch == b.Ch;
 }