-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refresh solo button on OSC Message (#7438)
The solo button is non-local and so requires a rebuild when it changes. The various mechanisms we have do this but OSC did not. So start a list of param types which when OSC set push a rebuild and add solo, mute, and scenesel all to them. Closes #7417
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from osc4py3.as_eventloop import * | ||
from osc4py3 import oscbuildparse as obp | ||
from osc4py3.oscmethod import * | ||
import time | ||
|
||
def set_solo(val): | ||
print("Setting solo to ", val) | ||
msg = obp.OSCMessage("/param/a/mixer/osc1/solo", ",f", [val]) | ||
osc_send(msg, "oscout") | ||
osc_process() | ||
|
||
### config | ||
ip = "127.0.0.1" | ||
surgeOSCInPort = 53280 #Surge XT default OSC in port | ||
|
||
osc_startup() | ||
osc_udp_client(ip, surgeOSCInPort, "oscout") | ||
|
||
for i in range(40): | ||
set_solo(False) | ||
time.sleep(2) | ||
set_solo(True) | ||
time.sleep(2) | ||
|
||
set_solo(False) | ||
|
||
|
||
osc_terminate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters