diff --git a/sound_algo/data_only/boot.scd b/sound_algo/data_only/boot.scd index a6011cf..32a1144 100644 --- a/sound_algo/data_only/boot.scd +++ b/sound_algo/data_only/boot.scd @@ -105,6 +105,10 @@ Routine({ // Boot le serveur (idempotent : si deja boot, retourne immediatement) Server.local.options.numOutputBusChannels = 2; + // Output-only patch: don't open an input device. Avoids the mic TCC + // prompt and "AudioDeviceStart failed" when the default input is + // unavailable (e.g. an iPhone Continuity mic in the device list). + Server.local.options.numInputBusChannels = 0; Server.local.options.memSize = 65536; "[data-only/boot] booting scsynth...".postln; diff --git a/sound_algo/data_only/scene_pose_action.scd b/sound_algo/data_only/scene_pose_action.scd index 1b308b4..f93eed1 100644 --- a/sound_algo/data_only/scene_pose_action.scd +++ b/sound_algo/data_only/scene_pose_action.scd @@ -93,8 +93,8 @@ var hf = ~handFeat; var hasL, hasR, ys, height, openMax, spdMax; // toutes les vars en premier (regle sclang) if (hf.notNil and: { hf[\ly].notNil }) { - hasL = (hf[\lx] + hf[\ly]) > 0.001; - hasR = (hf[\rx] + hf[\ry]) > 0.001; + hasL = ((hf[\lx] ? 0) + (hf[\ly] ? 0)) > 0.001; + hasR = ((hf[\rx] ? 0) + (hf[\ry] ? 0)) > 0.001; if (hasL or: { hasR }) { // main la plus haute = y minimal ; height = 1 - min(y) ys = [];