feat: spacebar advances concert morceau

This commit is contained in:
L'électron rare
2026-06-27 21:14:03 +02:00
parent a88fc5e643
commit c7f98c24af
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -583,8 +583,8 @@ class AppDelegate(NSObject):
LOG.debug("[key] raw=%r lower=%r", key, k)
if key == "\x1b":
NSApp().terminate_(self); return None
if key == " ":
self._scClient.send_message("/control/doScene", ["stop"])
if key == " ": # espace : morceau suivant (concert)
self._scClient.send_message("/control/concertNext", [1])
return None
# Cmd+F geree par macOS pour fullscreen ; on garde shift+F en raccourci
if key == "F":
+4
View File
@@ -220,6 +220,10 @@ OSCdef(\concertSeq, { |msg|
~concert[\seq] = (msg[1] ? 0) > 0;
("[concert] seq = " ++ ~concert[\seq]).postln;
}, '/control/concertSeq');
// /control/concertNext : avance (touche espace dans data_only_viz).
OSCdef(\concertNext, { |msg|
if(~concert[\running] == true) { ~concert[\next].() };
}, '/control/concertNext');
"[data-only/scene_concert] engine ready".postln;
)