[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] cueSoundFile from last used frame?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] cueSoundFile from last used frame?
- From: "Martin ." <blindmanonacid@xxxxxxxxx>
- Date: Sat, 9 May 2009 15:10:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=tUmbhh9iLRRBPjYfZV5Ukam7VsA/Nnanz6QBD/nhBGw=; b=mUVHOVO6AZn3kmRZBWVhjmhynRgBocuoe9jJHuVe264fHw2q8UimZt+klbTTq4MDyd /RnFa7x1MWVfJb/tVLibrQ6NbSsciYBiCtPvEGrYPtiEPruHnyjLKAFYvJhpQLU4qHFk JHsAXhPMfdkLWHm1xWUy5fRrLGeV+sT+nizNY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RRas0+HUbw3Fx5hXnx6ADQoLzETI03xrSGPQAkBQPzsiZGeYEthgNkFKBkvBn8zxQ+ YyI0xVttwLR0vqqC98KOEt1YShLcKJ5HI7K7c0Uv969o7VegtKfjTJN/ueSIIYMcTcFX WMP5J1TFUH5ILv59HTNGAY8JU2ecPd1mO4YZ4=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hello List!
When restarting a synth which has been freed from playing a DiskIn ugen it picks up where it stopped in the soundfile, but glitches slightly (because it has to cue the file again..?). Is there a convenient way to cue the file from where it stopped when it was last played?
SynthDef("Diskin", { arg bufnum = 0;
Out.ar(0, DiskIn.ar(1, bufnum, 1));
}).send(s)
b= Buffer.cueSoundFile(s, "sounds/a11wlk01-44_1.aiff", 0, 1);
x= Synth("Diskin", [\bufnum, b])
x.free;
x= Synth("Diskin", [\bufnum, b])
x.free;
many thanks,
martin