[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Routing bug?



Hello,

I'm in the process ( have been for some time, but it took a back burner for
3 years and i'm remembering why) of making a polyphonic 8 operator fm synth.
It mostly works but there is one thing I really cant fix.
When chords are played or sequential notes, 90% of the time there isn't a
problem. But sometimes the new note uses the same busses as already active
synths and thus the timbre gets glitchy. Which is sort of nice but I want to
give away something that works. 
What I have done in the code is put the note number in the first available
slot in an array, 

while({synTestArray[synTest]>0},{synTest=synTest+1});
			synTestArray.put(synTest,num);

When the synth is released by using the MIDI number I clear that spot in the
array. 

Routine({1.do{ reltime.wait;
				noSynths = noSynths - 1;
				synTestArray.do{|i,o| case{i==num}{synTestArray.put(o,0)}};
				synTestArray.postln;
			}}).play;

The code is here https://www.dropbox.com/s/341mn90x5wxzv5c/FM8.scd?dl=0
The bug only appears when the notes are triggered fast. I'm beginning to
think its an SC problem
because when played slowly it behaves as you would wish. If I know which
sets of busses are free I can use that as a multiplier to give the synths
their unique ins and outs, and it mostly does it.

Anyway I'm about to give up and release it as is. Its good fun, I'll make a
video on how to use my 'special' features. To run it you just need to
highlight all the code and press go

All the best 

Paul





--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Routing-bug-tp7629814.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/