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

[sc-users] cueSoundFile from last used frame?



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