Synth.sendController with specified midi channel? (solved)
-
Could we have
Synth.sendController(int channel, int controllerNumber, int controllerValue, int timeStampSamples) just like the addNoteOn? Synth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)I could use this for sending cc's outside the Controller Callback
-
@ulrik and the Message.setChannel() doesn't seem to work in this project.
It's a MidiFX plugin and, as I wrote in this thread
https://forum.hise.audio/topic/6492/midichannel-is-always-1-in-noteon-when-logging-midi-players-output/6The NoteOn callback always send the messages on ch 1, even though the 4 MidiPlayers events send on ch 1 -4.
So in that example I moved all midi out events to the TransportHandlers Grid Callback and used theSynth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)to specify the midi channels, and that worked so....
I was thinking that maybe it will work with sending continuous controllers as well? -
@ulrik if you use Synth.sendMessageFromHolder you can specify almost every event property including the channel.
-
@Christoph-Hart Ok, I'll try that thank you!
-
@Christoph-Hart the
Synth.sendMessageFromHolder(MH);gives me error
Function / constant not found: Synth.sendMessageFromHolder -
@ulrik is this function new, I don't find it in the API
-
@ulrik ok, it was
Synth.addMessageFromHolder(); -
@Christoph-Hart worked great! :)