OK this may be a little long winded but any help is greatly appreciated.
I wanted to individually select effects with a set of 8 pads. To that end I implemented the following code.
- Code: Select all
<mapping>
<events>
<MIDI type="Note" parameter="0x3a" modifiers="ML2" channel="0x1"/>
</events>
<controls>
<control alias="fam(Fx)[0x1].SelectAndToggle"/>
</controls>
<preset name="Direct Integer Button">
<parameters>
<parameter object="action-0" key="integer" value="7"/>
<parameter object="dispatch" key="interpretCCasNote" value="off"/>
</parameters>
</preset>
</mapping>
The code allows me to auto select a specific FX and toggle the FX on.
To light up the corresponding pad i implemented the following
code
- Code: Select all
<mapping>
<control alias="fam(Fx)[0x1].Select" value="7"/>
<MIDI type="Note" parameter="0x9" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0xb" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0xd" channel="0x1" value="127"/>
<MIDI type="Note" parameter="0xf" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x1" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x3" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x5" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x7" channel="0x1" value="0"/>
</mapping>
This allows me to light up the correct pad and turn of the other ones off when the Fx select value of 7 is receiced.
Once I am done with the effect I hit the same pad once more and the effect is turned off.
My problem is that once I hit the pad a second time the effect is turning off but not the light.
I was trying to use code below to turn all 8 pads off when the FX on/off was not set. But it is not working. It almost seem like the fx onoff logic is set or not set correctly within Cross UI but not on the output flag when done using fam(Fx)[0x1].SelectAndToggle
Any ideas?
- Code: Select all
<mapping>
<control alias="fam(Fx)[0x1].OnOff" value="false"/>
<MIDI type="Note" parameter="0x9" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0xb" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0xd" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0xf" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x1" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x3" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x5" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x7" channel="0x1" value="0"/>
</mapping>