[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Memory leak in Pattern:render
A little bit of isolation testing shows that problem is in
ScoreStreamPlayer:makeScore. If you execute these one at a time, it
happens on the fourth:
a = { Pbind(
\dur, Pseq(({ rrand(0.125, 8.0) } ! 1024).normalizeSum * 30, 1),
\freq, Pseq({ rrand(50.0, 4000.0) } ! 1024, 1),
\amp, Pseq({ rrand(-48.dbamp, -12.dbamp) } ! 1024, 1),
\attack, Pseq({ exprand(0.001, 0.2) } ! 1024, 1),
\release, Pseq({ exprand(0.001, 0.2) } ! 1024, 1),
\legato, Pseq({ [exprand(0.1, 1.0), exprand(1.0, 2.0)].choose } ! 1024, 1)
)} ! 8;
b = Ppar(a);
c = ScoreStreamPlayer.new;
d = c.makeScore(b.asStream, 30);
--
Tim Walters | The Doubtful Palace | http://doubtfulpalace.com
_______________________________________________
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/