fix: keep shared clock alive on scene stop

This commit is contained in:
clement
2026-06-28 17:00:13 +02:00
parent 53f9111ed8
commit 015374af38
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ MIDIIn.connectAll;
~midiFuncs.add(MIDIFunc.cc({ |val| ~melodyDrive = val.linlin(0,127, 0.5,5.0); ~debouncedReload.() }, 33));
~midiFuncs.add(MIDIFunc.cc({ |val| ~acidDrive = val.linlin(0,127, 0.5,5.0); ~debouncedReload.() }, 34));
~midiFuncs.add(MIDIFunc.cc({ |val| ~melodyBoost = val.linlin(0,127, 0.5,3.0); ~debouncedReload.() }, 35));
~midiFuncs.add(MIDIFunc.cc({ |val| TempoClock.default.tempo = val.linlin(0,127, 60,200) / 60 }, 36));
~midiFuncs.add(MIDIFunc.cc({ |val| ~setTempo.(val.linlin(0,127, 60,200)) }, 36));
// CC 49-56 = potards rangée 3 (wobble / sidechain)
~midiFuncs.add(MIDIFunc.cc({ |val| ~melodyWobbleRate = val.linexp(0,127, 0.5,32); ~debouncedReload.() }, 49));
+2 -1
View File
@@ -167,7 +167,8 @@
~concert[\stop] = {
~concert[\routine] !? { |r| r.stop };
~concert[\stopMorceau].();
~concert[\clock] !? { |c| c.stop };
// NE PAS stopper l'horloge : elle alias TempoClock.default (Lot C) et la
// Routine est deja stoppee. La stopper figerait tout le systeme.
~concert[\clock] = nil;
~concert[\running] = false;
// restore the master event-FX so a stop mid-squat/spin doesn't leave the
+2 -1
View File
@@ -156,7 +156,8 @@
stop: {
~bpEngine[\routine] !? { |r| r.stop };
~bpEngine[\pad] !? { |p| p.set(\gate, 0) };
~bpEngine[\clock] !? { |c| c.stop };
// NE PAS stopper l'horloge : alias TempoClock.default (Lot C),
// Routine deja stoppee. La stopper figerait tout le systeme.
~bpEngine[\clock] = nil;
~bpEngine[\running] = false;
"[bp] STOPPED".postln;