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.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!
Bitwig 3.2.5 API 12 Released
- KVRAF
- 4898 posts since 13 May, 2004
-
andersskibsted andersskibsted https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=470837
- KVRer
- 8 posts since 20 Jul, 2020
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
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
- KVRAF
- 4898 posts since 13 May, 2004
Use ControllerHost.createAction.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
