fix(sound): squat empty-skel + stop restore
CI build oscope-of / build-check (push) Has been cancelled

This commit is contained in:
L'électron rare
2026-06-27 20:01:20 +02:00
parent 031bb16e0f
commit cdee717d51
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ var meanY = { |a, b| (((a ? ())[\y] ? 0.5) + ((b ? ())[\y] ? 0.5)) * 0.5 };
~ccGestureAdd.((name:\squat, family:\fx, hold:0.6, cooldown:0.2,
detect: { |pose, prev|
var s = pose[\skel];
s.notNil and: { meanY.(s[\hipL], s[\hipR]) > (meanY.(s[\kneeL], s[\kneeR]) - 0.10) } },
(s[\hipL].notNil and: { s[\kneeL].notNil }) and: {
meanY.(s[\hipL], s[\hipR]) > (meanY.(s[\kneeL], s[\kneeR]) - 0.10) } },
fire: { ~ccMaster[\filterTo].(450, 1.0) },
release: { ~ccMaster[\filterTo].(20000, 1.5) }));
+4
View File
@@ -178,6 +178,10 @@
~concert[\clock] !? { |c| c.stop };
~concert[\clock] = nil;
~concert[\running] = false;
// restore the master event-FX so a stop mid-squat/spin doesn't leave the
// mix muffled / stuttering for the next set
~ccMaster !? { ~ccMaster[\filterTo].(20000) };
~ccStutter !? { |st| st.set(\mix, 0) };
"[concert] STOPPED".postln;
};