Send CC message to a MidioutBlock

I want to capture value changes in a widget and send it as a CC message to an external MidiOutBlock, however I don’t know if this is the right way, please help. Im not a programer

var
Barra_1:widget
Value: Integer
CCMensage : String
Ipad : Midioutblock

On WidgetValueChanged(newValue : double) from Barra_1
Value = newValue
End

function MakeControlChangeMessageEx (1, NewValue, 2)
SendNowExternal (Ipad, CCMessage)
End

No need for scripting!
Create a MIDI out block in the wiring view, place a widget on the panel and connect it plugin wise with the midi out block - you will just have to choose from the parameter list which CC# you need…

4 Likes