You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on an integration with REAPER which has some global configuration options that can be set via OSC. I would like to emit these commands once immediately after the OSC backend's connection is initialised (and, ideally, as they should only need that single invocation, never again).
Currently, I have to map an input to this setting, and remember to set that input correctly before my integration will work as expected.
The text was updated successfully, but these errors were encountered:
A generic mechanism for this could be to enable configuring a Python function as an init hook, and have that emit all the setup events I would need. So something like this could work for my use case:
Hi @OddBloke, thanks for your in-depth report! Both programming backends (lua and python) support initially setting channels at load time by directly calling the respective output(channel, value) API in the global scope.
For example, in Python you could (as a minimized example) do
importmidimonstermidimonster.output("test", 1.0)
This will output 1.0 on the test channel once the translation is starting up. You could also replace that by a call to an init_hook function :)
I'm currently working on an integration with REAPER which has some global configuration options that can be set via OSC. I would like to emit these commands once immediately after the OSC backend's connection is initialised (and, ideally, as they should only need that single invocation, never again).
Currently, I have to map an input to this setting, and remember to set that input correctly before my integration will work as expected.
The text was updated successfully, but these errors were encountered: