[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Re: Routing bug?
Thanks James,
So I've got to the bottom of what is happening but not got a solution. The
error is occuring when the same not is pressed yet the preceding synth is
not dead yet. The test array will look like this [45,45,0,0,0 etc
and the function that clears the dead notes will also clear the note that is
still active.
So how do I go through the array only as many times as is necessary to clear
the first of the duplicate notes?
{
Routine({1.do{ reltime.wait;
synTestArray.do{|i,o| case{i==num}{synTestArray.put(o,0)}}; // here is
the problem, when more than one instance of num appears then both get
cleared.
synTestArray.postln;
}}).play;}
Also, what is the alternative to 1.do, I deleted it n then it just didn't
get evaluated.
Ah and in answer to your question, yes rel time is the longest release time
in the array done thus.
reltime =
8.collect{|i|(~envtimes[i][3]-~envtimes[i][2])*~times[i]};
reltime = reltime.maxItem;
Probably not the most slick way to do it.. but it works.
Thanks again.
Paul
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Routing-bug-tp7629814p7629829.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/