Skip to content

Instantly share code, notes, and snippets.

@ALOUT
Created June 5, 2014 08:56
Show Gist options
  • Save ALOUT/0acd2a664a70de2da7d6 to your computer and use it in GitHub Desktop.
Save ALOUT/0acd2a664a70de2da7d6 to your computer and use it in GitHub Desktop.
グラニュラーシンセシス
b = Buffer.read(s, "/Applications/SuperCollider/sounds/fools_gold.wav");
SynthDef("grain1", {
arg outBus= 0, gate = 1, amp = 0.5, pan = 0, sndbuf, envbuf = -1;
var env, freqdev, grain, out;
env = EnvGen.kr(
Env.linen(0, 0.1, 1/8, 0.3, \sine),
gate,
doneAction:2);
envbuf = EnvGen.kr(
Env.linen(0, 0.1, 1/2, 0.6, \sine),
doneAction:2);
grain = GrainBuf.ar(2,
Impulse.kr(8),
1/2,
b,
LFNoise1.kr.range(0, 10),
LFNoise2.kr(0.5).range(0, 10),
4,
pan,
-1);
out = grain;
out = out * 4;
out = out.softclip * amp;
Out.ar(outBus , out.dup * env)
}
).send(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment