Bitwig 3.2.5 API 12 Released

RELATED
PRODUCTS

Post

andersskibsted wrote: Thu Jul 30, 2020 5:22 am Hi,
I'm trying to enable my clickable knob as a min to max toggle for a device/vst parameter (in Java).
If I use the createHardwareButton and the pressedAction and addBinding, I can't bind it to the Parameter I create for my vst's.
If I use the AbsoluteHardwareKnob the parameter goes to maximum when I push down and goes back to zero when I releases the clickable knob, as my midi controller sends 127 on push down, and then 0 on release. But what I want is a toggle between maximum and minimum on each press down (and nothing on each of the releases).
Is there any way to bind a "parameter toggle" or something like that to the pressAction()?
Or should I look into something else?
I'm new to Java so I might be overlooking something obvious...
Thank you Moss for the tutorials and the help provided so far. It's very much appreciated!
I don't think that you can directly map a button to a continuous value. What you need to do is create an action and then call "set minimum or maximum" on pressed event.

Post

Thank you for your reply.
I'm still struggling a bit, but it's probably mostly due to being new to Java and OOP.
How do I create another action. I guess it has to be a HardwareActionBindable for me to be able to bind it to a HardwareAction.
What should I read up on to understand the actions and how I create new ones? I guess this more of a Java question than an Bitwig API question, I hope it's ok. Feel free to direct me to another thread if I'm too of topic here.

Thanks again
Anders

Post

andersskibsted wrote: Sun Aug 02, 2020 7:16 pm Thank you for your reply.
I'm still struggling a bit, but it's probably mostly due to being new to Java and OOP.
How do I create another action. I guess it has to be a HardwareActionBindable for me to be able to bind it to a HardwareAction.
What should I read up on to understand the actions and how I create new ones? I guess this more of a Java question than an Bitwig API question, I hope it's ok. Feel free to direct me to another thread if I'm too of topic here.

Thanks again
Anders
Use ControllerHost.createAction.

Post Reply

Return to “Controller Scripting”