Set midichannel to Omni?
-
I have a 5 voices synth project which make use of midi channels 1 to 5, if I want the 5 different synth groups to respond to Midi CC, like Pitch Bend, is there a way to set the controller value to omni, or to duplicate it so it sends to channel 1 to 5?
-
@ulrik Global modulator should do the job because it will be outside of the synth groups.
-
@d-healey I can't use that, I need the CCs sent on different channels, is it possible you think?
-
@ulrik I thought you want it to be omni? I'm confused, please clarify
-
@d-healey
I have 5 different groups, receiving on 5 different channels.
I want all groups to receive the same CC ControllerValues.
Each group has its own Script Processor, and I need to read the controller values from the onController callback on each processor.So if I log the controller values from each processor, the groups with channel filter 2 to 5 will not receive the values and I can't use a global modulator for this because I will manipulate the CC values differently for each group.
That is why I want the incoming controller values (from a keyboards pitch wheel, or modulation wheel) to be sent on all channels, so the values will be read inside each onController callback.
So is there way to transform the incoming CCs to omni?
-
@d-healey and if I set this in the main script
function onController() { if (Message.getControllerNumber() == 128) // pitchbend { Message.ignoreEvent(true); for (i = 1; i < 6; i++) Synth.addController(i, 128, Message.getControllerValue(), 0); } }
I'll get an error saying:
CC number must be between 0 and 127
-
@ulrik Ok I solved it by setting this in the main script processor
function onController() { if (Message.getControllerNumber() == 128) // pitchbend { Message.ignoreEvent(true); local v = Message.getControllerValue(); for (i = 1; i < 6; i++) { local m = Engine.createMessageHolder(); m.setChannel(i); m.setType(m.PitchBend); m.setControllerValue(v); Synth.addMessageFromHolder(m); } } }
-
@ulrik there's a constant for pitch wheel, I think it's PITCH_CC. The CC stuff should probably not go in your ui script.
-
@d-healey said in Set midichannel to Omni?:
@ulrik there's a constant for pitch wheel, I think it's PITCH_CC. The CC stuff should probably not go in your ui script.
Yes I searched for it and found "PITCH_BEND_CC", but I couldn't make it work.
The CC stuff is not in my ui script -
@ulrik Message.PITCH_BEND_CC I think