How can I send pitchbend messages via script? (Solved)
-
I tried to use the
Synth.addController(1, 128, 60, 100);
using the number 128 which I found logging this:
Message.PITCH_BEND_CC
but I get this message
CC number must be between 0 and 127
What does this "Message.PITCH_BEND_CC" mean, how can I use it?
I can't use the
Synth.addPitchFade(int eventId, int fadeTimeMilliseconds, int targetCoarsePitch, int targetFinePitch)
because I want to control an external instruments pitch bend
Any help is very much appreciated! :)
-
@ulrik I dont think HISE can send CC ?
-
@lalalandsynth Actually you can, if you compile the plugin as a MidiFX Plugin.
Here I have an arpeggiator that sends out note events and also CC, controlling a soft synth inside Logic. Here it is CC1 via a SliderPack triggered via the Arps DisplayCallback
I send out using
Synth.sendController(1, 1);
I wish there were a similar function like
Synth.sendPitchBend(ch, value);
I thought it was implemented already, I know @Christoph-Hart have been working with the Aftertouch message and also CC values via the MidiPlayer I think.
-
@ulrik @Christoph-Hart haha, I found that the controller number 128 works with
Synth.sendController(128, value)
but using
Synth.addController()
with controller number 128 is not allowed!
Great!Has the function always been there???
-
-
@ulrik So If I recollect , this only works in Logic and somewhat in Reaper , right ?
-
@lalalandsynth I'm still exploring the possibilities, but so far I've tested the midiout function and it works in Logic and Reaper, I have no success with Live, I read at Juce forum that Live doesn't have that kind of plugin (MidiFX) that is.
I also compiled Hise as a MidiFX plugin so I can load it in the MidiFX slot which makes it a lot easier to test.