Could someone please help me before my head ~explodes

dthomas86's icon

Hi,
I am having quite a lot of trouble with trying to simulate a polyphonic subtractive synthesiser. I have looked at endless ways of achieving polyphonic sounds with both poly~, poly and route and also looked at borax.
The trouble I have I want the user to be able to select what classic he/she wants from the radiogroup (at the moment I only have two selectable oscillators I want to have 4 in the future) and then the output being mixed and filtered using biquad. Also I want the user to be able to have a mix control to mix between the different oscillators.
The patch I had before this one using route and poly would allocate a voice to each oscillator say the user selected a sine and a saw the 1st voice would be the sine and the 2nd voice the saw, I do not want that I want the output of both oscillators to be summed. Is this the way to go so far.

2031.synthengine2.maxpat
Max Patch
Roman Thilenius's icon

[thispoly~] needs to reside in the poly patcher, not in the subpatcher, when i am
not wrong. or does it work for you? i cant test here.

the [r] objects for the synth will work, but i´d nevertheless recommend
to use [prepend target 0] and additional inlets to the poly patcher for
such synth parameters, you will see why when you need dozens of them.

p.s. instead of [poly] you could also use something like [cycle] or [counter]
to generate the "next target" number. this will mean you have only a
"steal voice" mode, but thats the normal way synths work.

the patch shows that there is not much knowledge about audio DSP but
it also shows that you are good in organizing and planning your project,

so i guess that you will able to find out yourself that in order to mix
different generators you have to use *~ and +~ instead of selector~.
:)

dthomas86's icon

Hi,
Roman thanks ever so much for your feedback. I used the selector~ object to allow the user to be able to select what waveform he/she wants and then want another patch for the the user to be able to do so again. I am having trouble with generating different voices in the poly~ object. I want it to be able to be polyphonic and up to 5 voices where different waveforms can be summed (up to 4 selectable waveforms) the trouble I am having is being able to sum these waveforms as well as making it polyphonic, I do not want each waveform to be allocated to each separate voice just want there to be an overall sum of each waveform that can be mixed using a mix control. (If that makes sense, I am pretty rubbish at explaining things).
Thank you once again.

Ps would solving my problem by putting multiple selectable waveforms (using selector~) in a sub-patch and using a mix control in that subpatch then using poly to convert to polyphonic?

dthomas86's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Solved part of the problem but don't see how I am going to get polyphonic voices is this the best way to go. I really appreciate the help and sorry for posting again: