keijiro / MidiJack

MIDI input plugin for Unity
697 stars 113 forks source link

Is it possible to get a timestamp? #42

Open tomkail opened 5 years ago

tomkail commented 5 years ago

My drum kit calls note up almost instantly after a note down, which means that GetKey/GetKeyDown are never true in Update loops. What I'd really like is the noteOnDelegate to also include the midi-time timestamp of the note so I can handle this stuff myself, but I'm not sure how to get it out from the message data. Can anyone shed some light?

keijiro commented 5 years ago

At the moment, it's not possible to get timestamp with the plugin. I can understand it's useful in some use cases. I'll revisit it in the near future.