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

Re: [sc-users] cueSoundFile from last used frame?



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/