FX Grid and Midi

Will

Member
Hi does anyone know what the command and syntax for getting an FX state for use in Pangoscript is? What I want to do is basically if an FX (or more usefully FXcell) is running, do A, if not do B.... Obviously an if and goto statement is the easiest way to go about this but can anyone help with identifying the FXcell state?
 
Hi, Will!

Try using the following object from the Object Tree:
FX. m. n. 0. Enabled
where
m is line number 0...7
n is cell number 0.99
 
Hi Igor,
thanks for this... here is what I have got:

if (FX.1.1.0.Enabled) goto Unlit1
if (!(FX.1.1.0.Enabled) goto Lit1

Lit1:
FXCellClick 1,1
MidiSysexStart // clear Sysex buffer
MidiSysexAdd "F0477F4365"// header start
MidiSysexAdd "0004" // message length
MidiSysexAdd "00"// Location
MidiSysexAdd "50"// Red between 00 and 7F
MidiSysexAdd "50"// Green between 00 and 7F
MidiSysexAdd "00"// Blue between 00 and 7F
MidiSysexAdd "F7"//End Marker
MidiSysexSend // send prepared sysex buffer
Exit

Unlit1:
StopFXCell 1,1// Layer index, optional Cell index (relative, take into account scrollbar)
MidiSysexStart // clear Sysex buffer
MidiSysexAdd "F0477F4365"// header start
MidiSysexAdd "0004" // message length
MidiSysexAdd "00"// Location
MidiSysexAdd "10"// Red between 00 and 7F
MidiSysexAdd "10"// Green between 00 and 7F
MidiSysexAdd "00"// Blue between 00 and 7F
MidiSysexAdd "F7"//End Marker
MidiSysexSend // send prepared sysex buffer
Exit

As you can no doubt see all I am trying to do is send a sysex message if the cell is active or inactive and change the state... Any ideas?
 
I have also tried this:

if (FX.1.1.0.Enabled = false) goto Lit1
if (FX.1.1.0.Enabled = true) goto Unlit1

Lit1:
FXCellClick 1,1
MidiSysexStart // clear Sysex buffer
MidiSysexAdd "F0477F4365"// header start
MidiSysexAdd "0004" // message length
MidiSysexAdd "00"// Location
MidiSysexAdd "50"// Red between 00 and 7F
MidiSysexAdd "50"// Green between 00 and 7F
MidiSysexAdd "00"// Blue between 00 and 7F
MidiSysexAdd "F7"//End Marker
MidiSysexSend // send prepared sysex buffer
Exit

Unlit1:
StopFXCell 1,1// Layer index, optional Cell index (relative, take into account scrollbar)
MidiSysexStart // clear Sysex buffer
MidiSysexAdd "F0477F4365"// header start
MidiSysexAdd "0004" // message length
MidiSysexAdd "00"// Location
MidiSysexAdd "10"// Red between 00 and 7F
MidiSysexAdd "10"// Green between 00 and 7F
MidiSysexAdd "00"// Blue between 00 and 7F
MidiSysexAdd "F7"//End Marker
MidiSysexSend // send prepared sysex buffer
Exit
 
Hi Igor,
sorry for not being clear, neither of these solutions works for me... any ideas why?
 
Last edited:
I am struggling with understanding this. I have the below code:

if (FX.1.1.0.Enabled = 1) goto ON1
goto OFF1

ON1:
displaypopup "1"
exit

OFF1:
displaypopup "2"
exit


This will always go to ON1 and display popup 1 irespective of the ststus of cell 1... If I change the 1 to 0 in the "if" statement it always goes to OFF1 irrespective of cell1.1's status... All I want to do is send 1 out if the cell is active and 2 out if the cell is inactive.... What am I doing wrong?
 
Hi, Will!
Perhaps this parameter (FX.1.1.0.Enabled) has some other meaning, other than pressing FX cell.
I need to clarify this with our developers.
 
Was this ever resolved? a way to get "Selected", "Checked", "Value","Active" from other languages? not if it is enabled or not as everything in grid seem to be enabled
 
Back
Top