You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foreach(var midiEvent in track.MidiEvents){if(midiEvent.MidiEventType == MidiEventType.NoteOn){varchannel= midiEvent.Channel;varnote= midiEvent.Note;varvelocity= midiEvent.Velocity;varnoteLength= midiEvent.Length //--I want a feature like this, indicate the length of the note (noteOff time - noteOn time)}}
The text was updated successfully, but these errors were encountered:
Yes, please! Note length is very important in midi music. And this is the most convenient C# midi parser on the internet afaik. Please make this happen!
I have implemented this in a derivative work by splitting midiEvents into MidiOnEvents and MidiOffEvents then calculating the difference in the NoteOn and NoteOff time markers
This is a very nice and robust parser, by the way. I am trying to extract my changes so they can be fully isolated from this example.
ex:
The text was updated successfully, but these errors were encountered: