[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] cueSoundFile from last used frame?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] cueSoundFile from last used frame?
- From: Dan Stowell <danstowell@xxxxxxxxx>
- Date: Sun, 10 May 2009 20:16:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=W6hOJr8UA9g7ZkdJgxL0w6t7XcqAaCK69gqdkVNnniQ=; b=uIwStt/hF8DviLE1jTY/tU+rsmLwgEHo10JahNh1cmxPRbnKoEK1XjiaPItoWahf9k IFcWVmdP+LblYg6vBx/7huwhcEC6ai+J2Gby4P/Yk32qSow2R17dUTrshEt5NXkDT/pf 5d/LQ98Hl+AuNWXUirD4r+P8qUk5zefKY3wAk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jzQWjd7CYHbzoyxpcWKSBrhqEDJmiYxSfH5UN2Vah7XOZ2rc82JI6w2ovwBi+nnn2j In1yYPfQ91NmOSKRH3iSKpQ6krBHvbxrIXFNgAa6g5nMvg6UXAyNOHJAPwlKIOIUBbga LWchTbE9haa1ozMbmyre/CVd0u1IbgmLa0epo=
- In-reply-to: <d3c4e9f20905090610s726c2f80lcb3c65e34db6ef4b@xxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <d3c4e9f20905090610s726c2f80lcb3c65e34db6ef4b@xxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
I don't believe there's a convenient way to re-cue it from the middle,
when starting a new synth. But you can achieve the same effect by
"pausing" the synth rather than freeing it.
x= Synth("Diskin", [\bufnum, b])
x.run(false);
x.run(true);
x.free;
Dan
2009/5/9, Martin . <blindmanonacid@xxxxxxxxx>:
> 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
>
--
http://www.mcld.co.uk
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/