|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
GrainBuf crashhi all,
GrainBuf segfaults, when the used buffer is freed: ( var winenv; b = Buffer.read(s, "sounds/a11wlk01-44_1.aiff"); // a custom envelope winenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]); z = Buffer.sendCollection(s, winenv.discretize, 1); SynthDef(\buf_grain_test, {arg gate = 1, amp = 1, sndbuf, envbuf; var pan, env, freqdev; // use mouse x to control panning pan = MouseX.kr(-1, 1); env = EnvGen.kr( Env([0, 1, 0], [1, 1], \sin, 1), gate, levelScale: amp, doneAction: 2); Out.ar(0, GrainBuf.ar(2, Impulse.kr(10), 0.1, sndbuf, LFNoise1.kr.range(0.5, 2), LFNoise2.kr(0.1).range(0, 1), 2, pan, envbuf) * env) }).send(s); ) // use built-in env x = Synth(\buf_grain_test, [\sndbuf, b, \envbuf, -1]) // crash b.free maybe a check could be added to verify that the buffer is still valid? best, tim -- tim@... http://tim.klingt.org Cheat your landlord if you can and must, but do not try to shortchange the Muse. It cannot be done. You can't fake quality any more than you can fake a good meal. William S. Burroughs _______________________________________________ Sc-devel mailing list Sc-devel@... http://lists.create.ucsb.edu/mailman/listinfo/sc-devel |
|
|
Re: GrainBuf crashI'll check into this later today... are you using the most recent
realizedsound build or an SVN checkout? Josh On May 4, 2008, at 9:31 AM, Tim Blechmann wrote: > hi all, > > GrainBuf segfaults, when the used buffer is freed: > > ( > var winenv; > b = Buffer.read(s, "sounds/a11wlk01-44_1.aiff"); > // a custom envelope > winenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]); > z = Buffer.sendCollection(s, winenv.discretize, 1); > > SynthDef(\buf_grain_test, {arg gate = 1, amp = 1, sndbuf, envbuf; > var pan, env, freqdev; > // use mouse x to control panning > pan = MouseX.kr(-1, 1); > env = EnvGen.kr( > Env([0, 1, 0], [1, 1], \sin, 1), > gate, > levelScale: amp, > doneAction: 2); > Out.ar(0, > GrainBuf.ar(2, Impulse.kr(10), 0.1, sndbuf, LFNoise1.kr.range(0.5, 2), > LFNoise2.kr(0.1).range(0, 1), 2, pan, envbuf) * env) > }).send(s); > > ) > > // use built-in env > x = Synth(\buf_grain_test, [\sndbuf, b, \envbuf, -1]) > > // crash > b.free > > > maybe a check could be added to verify that the buffer is still valid? > > best, tim > > -- > tim@... > http://tim.klingt.org > > Cheat your landlord if you can and must, but do not try to shortchange > the Muse. It cannot be done. You can't fake quality any more than you > can fake a good meal. > William S. Burroughs > > _______________________________________________ > Sc-devel mailing list > Sc-devel@... > http://lists.create.ucsb.edu/mailman/listinfo/sc-devel ****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ “Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ _______________________________________________ Sc-devel mailing list Sc-devel@... http://lists.create.ucsb.edu/mailman/listinfo/sc-devel |
|
|
Re: GrainBuf crash> I'll check into this later today... are you using the most recent
> realizedsound build or an SVN checkout? thanks, i am more or less using an svn checkout ... tim -- tim@... http://tim.klingt.org A paranoid is a man who knows a little of what's going on. William S. Burroughs _______________________________________________ Sc-devel mailing list Sc-devel@... http://lists.create.ucsb.edu/mailman/listinfo/sc-devel |
|
|
Re: GrainBuf crashOK... I'll have it fixed today.
Josh On May 4, 2008, at 9:36 AM, Tim Blechmann wrote: >> I'll check into this later today... are you using the most recent >> realizedsound build or an SVN checkout? > > thanks, i am more or less using an svn checkout ... > > tim > > -- > tim@... > http://tim.klingt.org > > A paranoid is a man who knows a little of what's going on. > William S. Burroughs > > _______________________________________________ > Sc-devel mailing list > Sc-devel@... > http://lists.create.ucsb.edu/mailman/listinfo/sc-devel ****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ “Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ _______________________________________________ Sc-devel mailing list Sc-devel@... http://lists.create.ucsb.edu/mailman/listinfo/sc-devel |
|
|
Re: GrainBuf crashI just committed a fix to SVN
Josh On May 4, 2008, at 9:36 AM, Tim Blechmann wrote: >> I'll check into this later today... are you using the most recent >> realizedsound build or an SVN checkout? > > thanks, i am more or less using an svn checkout ... > > tim > > -- > tim@... > http://tim.klingt.org > > A paranoid is a man who knows a little of what's going on. > William S. Burroughs > > _______________________________________________ > Sc-devel mailing list > Sc-devel@... > http://lists.create.ucsb.edu/mailman/listinfo/sc-devel ****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/ “Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ _______________________________________________ Sc-devel mailing list Sc-devel@... http://lists.create.ucsb.edu/mailman/listinfo/sc-devel |
| Free Forum Powered by Nabble | Forum Help |