[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] wooh-kiki-woohwooh - Sequencing from text, using BufRd and Phasor



hi andrew,

The problem with the code below is that the elements (beep, columbia, this) are looping:

here's how i did a similar thing using playbuf cut off by an envelope. stripped down code from the drummachine posted here 21 dec.
(
s= Server.local;
s.boot.waitForBoot({
SynthDef("playbuf-segment", {arg out= 0, bufnum= 0, offset= 0.0, length= 0.5, rate= 1.0;
		Out.ar(out,
			EnvGen.kr(Env.linen(0.005, length, 0.01), doneAction: 2)
			*
PlayBuf.ar(1, bufnum, BufRateScale.ir(bufnum)*rate, 1, BufFrames.ir(bufnum)*offset);
		)
	}).load(s);
})
)

b= Buffer.read(s, "sounds/a11wlk01.wav");

//\length in seconds and \offset in percent but that should be easy to change Synth.grain("playbuf-segment", [\bufnum, b.bufnum, \offset, 0.46, \length, 0.85, \rate, 0.8]) //"houston over"

7f0


  #|
     fredrikolofsson.com     klippav.org
  |#