Switch needs to behave like pad

Discuss problems and solutions.
Post Reply
10us
Newbie
Posts: 2
Joined: 06 Nov 2016 16:35

Switch needs to behave like pad

Post by 10us »

Hi,

Off course a newbie with a question :-)

I try to build a control for Visibility in Cubase 8. With Cubase 8's Program Logical Editor I can create 'scripts' to show/hide specific 'name tagged' tracks. Via a Generic Control I can fire off these scripts which 'toggles' track visibility per audio/midi/sound). To have visual feedback I like the switch array. But in CUbase the PLE script only accepts Push (Pad) signals. So to toggle a visibility group I have to push twice. When I use a Pad button things work like expected, but no visual feedback on the button for the state.

Using LED's to play the feedback role seems to be odd. I can't manage to get one decent sized LED. LED function in Lemur seems to be a bit funky. Using a ghost Pad to trigger Cubase from a switch seems to be a lot of work.

Anybody a suggestion which path to take?

Regards,

Martijn
Attachments
10us - Cubase template 0-2.jzml
Project file
(57.99 KiB) Downloaded 105 times
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: Switch needs to behave like pad

Post by oldgearguy »

You might be able to use the Pad's Hold attribute to freeze the current selection ON.
I'll take a look (unless someone beats me to it) in the next day or so, but a script something like

//script executes on expression x transitioning from low to high

Code: Select all

decl index, holdArray;

holdArray = stretch(0,4);
index = firstof(x);
holdArray[index] = 1;

setattribute(Pads, hold, holdArray); 
OR you might get away with simply:

Code: Select all

setattribute(Pads, hold, x);
might work (assuming 4 pads).
Post Reply