Ali Rustamov
2014-09-05 18:41:16 UTC
I want Routine to wait until Pattern stops playing, and then free some
Synths. Here is what I have for now. What is more elegant solution?
r = Routine({
~f[\chords1Res] = Synth.new(\Res);
~f[\chordsRes] = Synth.new(\Res1);
a = Pfindur(24, ~f[\chords]).play;
while({a.isPlaying}, {
1.wait;
});
~f[\chords1Res].free;
~f[\chordsRes].free;
});
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Synths. Here is what I have for now. What is more elegant solution?
r = Routine({
~f[\chords1Res] = Synth.new(\Res);
~f[\chordsRes] = Synth.new(\Res1);
a = Pfindur(24, ~f[\chords]).play;
while({a.isPlaying}, {
1.wait;
});
~f[\chords1Res].free;
~f[\chordsRes].free;
});
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/