Patterns in a sound file ???
It is possible in SuperCollider?
I don-not know what I’m doing bad, because it doesn’t works.
Here the code.
PS: I’m not still a Genius in SC.
(
SynthDef.new(\guitar, {
arg amp=1, freq=4, dur=100;
~buf1 = Buffer.read(s, "/home/wrtrg789675/Musik/123.wav");
~buf2 = Buffer.read(s, "/home/wrtrg789675/Musik/457.wav");
});
{PlayBuf.ar(1, ~buf1)}.play;
{PlayBuf.ar(1, ~buf2)}.play;
)
(
~tempo=XLine.kr(10, 150, 10);
Pbind(
\instrument,\guitar,
\dur,Prand([0.25,0.5, 1/3, 1, 0.125],inf),
\amp,0.2,
\freq,Pseq([
Pseq([[60,61,62],[63,120,50,37]]),
Pseq([100, 63, 40, 56, 23],8),
Prand([20, 59, 37, 70, 124, 80],5)
].midicps,inf),
).play(TempoClock(~tempo/60));
)