Latest News: Bitwig updates Bitwig Studio to v5.1
Use a keyboard shortcut to trigger a function in a script
-
- KVRist
- Topic Starter
- 54 posts since 18 Apr, 2019
Hey.. does anyone know a simple way to have a java script function be triggered by a keyboard shortcut in bitwig.. for example 'SHIFT+CONTROL+"D"
I was trying to figure out if there's some way to have an observer notify the script that a key combination has been pressed or something.. I may be missing something obvious, I couldn't find anything in the API documentation
I was trying to figure out if there's some way to have an observer notify the script that a key combination has been pressed or something.. I may be missing something obvious, I couldn't find anything in the API documentation
- KVRAF
- 4145 posts since 13 May, 2004
No, that is currently not possible.Edrec wrote: ↑Fri Nov 08, 2019 3:18 am Hey.. does anyone know a simple way to have a java script function be triggered by a keyboard shortcut in bitwig.. for example 'SHIFT+CONTROL+"D"
I was trying to figure out if there's some way to have an observer notify the script that a key combination has been pressed or something.. I may be missing something obvious, I couldn't find anything in the API documentation
-
- KVRist
- Topic Starter
- 54 posts since 18 Apr, 2019
Ah I thought that would be the case.. would be a nice feature to be added to the API
I saw there is now some basic image rendering into a window available in the latest API version.. maybe we will be able to create simple GUIs for custom scripts that can manipulate note data, perform custom functions etc..
I saw there is now some basic image rendering into a window available in the latest API version.. maybe we will be able to create simple GUIs for custom scripts that can manipulate note data, perform custom functions etc..
- KVRAF
- 4145 posts since 13 May, 2004
The intention of this is only for supporting graphics displays of controllers. The window is only intended for debugging. Proper GUI support will hopefully come in the future.
-
- KVRist
- 138 posts since 20 Oct, 2015
I think you are better served using the hotkeys editor inside bitwig, there a lot of actions you can map to...
-
- KVRer
- 6 posts since 10 Nov, 2005
Can you explain why this is not possible?
If stuff can be triggered from hardware, why isnt is possible to trigger it with "emulated" hardware for example? There must be some workaround to do this maybe?
For example I saw its possible to insert notes in a clip from a hardware controller at specific 16th note (sequencer style workflow was shown), so this must somehow be possible with keyboard shortcuts (and some hacking) I was hoping?
If stuff can be triggered from hardware, why isnt is possible to trigger it with "emulated" hardware for example? There must be some workaround to do this maybe?
For example I saw its possible to insert notes in a clip from a hardware controller at specific 16th note (sequencer style workflow was shown), so this must somehow be possible with keyboard shortcuts (and some hacking) I was hoping?
- KVRAF
- 8828 posts since 6 Jan, 2017 from Outer Space
All scripts talk to an API (application programming interface). You can only access whats in the API. But feel free to send a feature request to support@bitwig.com, they might add this in future versions. But I would rather have something like an accessible trigger in the keyboard shortcuts list, or there would be the danger of a clash between the two... (check if the function you want is already listed, the keyboard shortcut list is a bit like the script for the keyboard anyway...)
-
- KVRist
- Topic Starter
- 54 posts since 18 Apr, 2019
> accessible trigger in the keyboard shortcuts list
Yes this would be ideal I think, maybe a bank of 8 keyboard shortcuts in the shortcut list, that could be 'observed' from within a script.
Yes this would be ideal I think, maybe a bank of 8 keyboard shortcuts in the shortcut list, that could be 'observed' from within a script.
-
- KVRer
- 10 posts since 5 Jul, 2022
Maybe something like Div's midi utils could help out here? obviously kind of a hack, but could work. I'm still working on getting my own script (that's a simpler version of what Moss is doing) working, but i've been meaning to look into something like this too.
I'll try to report back here if I get to doing this. I'm keen to hear if anyone's trying this.
I'll try to report back here if I get to doing this. I'm keen to hear if anyone's trying this.