Hello, I'm using the java api to integrate an mvave chocolate. While I have it mostly working the way I want, I have a stretch goal I'd love to be able to accomplish. Is it possible to createLauncherCursorClip(1,1) and have it move it's window based on where I have clicked with my mouse in the UI? My goal here would be to select an empty spot, and then hit the switch with my foot to start recording into that slot, and then stop the recording. I'd need to have logic that checks to see if the track is record enabled, and make sure that the UI has exactly one spot selected, but that seems like it'd be relatively easy to do once I figure out how to get the status of the selection.
Thanks in advance for any advice!
How to get status of selection in clip launcher
-
- KVRer
- 3 posts since 16 May, 2025
- KVRAF
- 4888 posts since 13 May, 2004
Since Bitwig is running Java headless there is no way to get the mouse position. Only workaround would be to write your own C/C++ library to get it and integrate it via JNI.
-
- KVRer
- Topic Starter
- 3 posts since 16 May, 2025
Thanks for the feedback Moss. Your videos helped bootstrapped me into this process, so I really appreciate it.
Since there isn't a way to capture the state of the selection in the UI very easily, I might try adding a second midi device into the mix that can be responsible to moving the 1x1 cursor around.
Since there isn't a way to capture the state of the selection in the UI very easily, I might try adding a second midi device into the mix that can be responsible to moving the 1x1 cursor around.
-
- KVRer
- Topic Starter
- 3 posts since 16 May, 2025
AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
I ended up adding a macropad that runs the qmk firmware, which can produce midi messages. So I use a combination of that, and the follow cursor track stuff. If you are interested, I built it using kotlin and gradle https://github.com/whodevil/bitwig-exte ... /chocolate (https://github.com/whodevil/bitwig-extensions/tree/chocolate/src/main/kotlin/offthecob/chocolate)