get midi channel for EventId?
-
Is it possible to get the midi channel used from the EventId when used in this context?
I make an artificial note on like this:
var id = Synth.addNoteOn(ch, nn, velo, 0);
and in the the NoteOff CB I want to know which midi channel that was used when setting the NoteOn
Is the channel stored somewhere along with the eventId, and is it possible to recall it?
I know I can store the channels just like I store the eventId in a midilist but just wondering :)
-
@ulrik
Message.getChannel()
? -
@d-healey said in get midi channel for EventId?:
@ulrik
Message.getChannel()
?This will always show channel 1 in noteoff cb
I use this code
Synth.noteOffDelayedByEventId(id, 100);
and it doesn't seem to matter what midi channel the noteoff cb produce
but I need the ch for another purpose
-
@ulrik Then I think the midilist is the way to go
-
@d-healey said in get midi channel for EventId?:
@ulrik Then I think the midilist is the way to go
Yes, I think you're right