How to get parameter ID of device on/off? (Java)

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,
I am new to the Bitwig world, coming from Ableton Live, but drawn by the infinitely better development tools available for writing controller scripts with Bitwig. In the process of converting my Python scripts to Java there is just one thing (so far...) that I can't get my head round - how do I turn on/off a (VST3) device? There is no way to grab the parameter ID of it through the UI, and it doesn't seem to default to parameter 0, neither is there a method on the SpecificDevice class, so I am stumped for the moment.

Can anyone point me in the right direction?

Regards,
- Paul

Post

Yo Paul.. .check out the Device Class. All the stuf you are looking for is there. There is a method that returns a value for that isEnabled(). be sure to mark interested or observe it.
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post

Thanks so much Kirkwood - got it now! I hadn't even thought of looking at that class^^ Guess I have a little way to go :)

Post

PB-fr wrote: Sat Jun 15, 2024 12:29 pm Thanks so much Kirkwood - got it now! I hadn't even thought of looking at that class^^ Guess I have a little way to go :)
You'll get there! Most of the Bitwig objects use a proxy pattern and you have to either mark interested or observe the values of those objects. All of that has to happen in init() and then there is flush() on some scheduler which gets called after something you are watching updates. Feel free to drop more questions. there are a few of us on the Polaritys Bitwig Server in #controllerism.
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”