Setting the midi channel for a generated note.
-
Checked the documentation but I cant seem to see this:
I want to generate a Synth.playnote (on note off as it happens) -- and then set its midi channel
any ideas? It's probably pretty simple I'm just not getting it.
-
@Lindon oh hang on this might be it:
Synth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)
-- but whats "timestampsamples"?
-
I think the play note with offset function has a channel parameter. I'm not at my computer at the moment so can't check.
-
@d-healey said in Setting the midi channel for a generated note.:
I think the play note with offset function has a channel parameter. I'm not at my computer at the moment so can't check.
yep it does thanks, still wondering what timeStampSamples is...
-
@Lindon If I remember correctly it's so you can delay events. So you could add a time in the future to play the note. You'd also need to add a corresponding delayed note off.