[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] [ supercollider-Bugs-2914390 ] Stuck synths using Pdef and Pmono
Bugs item #2914390, was opened at 2009-12-14 20:56
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474248&aid=2914390&group_id=54622
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SC Language
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Stuck synths using Pdef and Pmono
Initial Comment:
When using Pdef with Pmono, redefining the Pdef quickly will lead to stuck synths on the server that were never released by the PmonoStream. Example:
Pdef(\foo, Pmono(\default, \dur, 1/8, \degree, Pseq([1,2,3,4,5],inf))).play;
fork { 15.do { Pdef(\foo, Pmono(\default, \dur, 1/8, \degree, Pseq([5,4,3,2,1],inf))); 0.2.wait;}};
I've tried this on several different releases (up to the curent 3.3.1) and the results are always the same (stuck synths). A preliminary investigation suggests this may have something to do with the way transitioning between patterns is implemented in the EvenPatternProxy class. When the Pdef is redefined, it changes its stream into a Pseq consisting of the original pattern (which is time limited by Pfindur) and the new one. However, the cleanup function used in PmonoStream doesn't appear to get called if the Pdef is redefined before that transition has had a chance to complete...the resulting recursive structure is no longer a PmonoStream but a regular Stream and therefore fails to release the synth upon completion. This is my initial hypothesis, not being especially familiar with these classes, but it's worth looking into.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474248&aid=2914390&group_id=54622
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/