From 03fd9c85d6b8a19e1e6f153dfa130d9440e58c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Wed, 15 May 2024 17:32:58 +0200 Subject: [PATCH] Clean mess --- test.scd | 40 ---------------------------------------- test_granular.scd | 44 -------------------------------------------- 2 files changed, 84 deletions(-) delete mode 100644 test.scd delete mode 100644 test_granular.scd diff --git a/test.scd b/test.scd deleted file mode 100644 index efe9ef8..0000000 --- a/test.scd +++ /dev/null @@ -1,40 +0,0 @@ -( -p = ProxySpace.push(s.boot, p); -"abcde".do { |k| p[k.asSymbol].ar }; -m = ProxyMixer(p, 8); -m.parent.alwaysOnTop_(true); // show mixer in front of IDE -) - -( -p = ProxySpace.push(s.waitForBoot({ - ~a = { - SinOsc.ar([199, 201, 199/1.75] * [1, 8, 2, 4].choose) * SinOsc.ar( - LFNoise2.kr(1 /4).range(1,8) - ).range(0.01, 0.125); - }; - ~a.play; -}), p); -) - -Boot() - -( -~a = { - SinOsc.ar([200, 400] ! 2) * 0.125 -}; -) - -~a.play; - - -( -~b.fadeTime = 4; -~b => [ - i: "Panalog", pat: "0 2 3 4", octave: 6, -]; -~b.play; -) - -p.gui - - diff --git a/test_granular.scd b/test_granular.scd deleted file mode 100644 index 1e5e486..0000000 --- a/test_granular.scd +++ /dev/null @@ -1,44 +0,0 @@ -Boot( - samplePath: "/Users/bubo/.config/livecoding/samples" -) - -( -~test +=> [ - sp: "casio", nb: [0, 2, 4].pseq(inf), amp: 1, - grain: {SinOsc.ar(1/4).range(1,20)}, - pos: {LFNoise2.kr(1/8).range(0, 0.25)}, - rate: Pwhite(1, 2, inf) -]; -~test.play; -~test.fx(100, 0.5, { - arg in; MiVerb.ar(in, time: 0.5); -}) -) - -~test ++> []; - - -/* -* Granular Sampler -*/ -( - z = SynthDef('grainSampler', { - arg out, buf; - var sound = GrainBuf.ar( - numChannels: buf.numChannels, - trigger: Impulse.kr(\grain.kr(4)), - dur: 1, sndbuf: buf, - rate: \rate.kr(4), - pos: \pos.kr(0.0), - interp: 2, - pan: \pan.kr(0.0), - envbufnum: \env.kr(-1), - ); - sound = sound * Env.perc( - \attack.kr(0.1), \release.kr(0.5) - ).kr(2); - sound = sound * \amp.kr(-6).dbamp; - OffsetOut.ar(out, sound); - }).add; - d.grainPlayer = z; -)