Polyphonic synth with ratios

Luca Pusch's icon

Luca Pusch

Sep 1, 2020, 4:14 PM

Hey!
Beginner here. I want to create a patch that is basically a polyphonic synthesizer whose pitch is not controlled by MIDI but by frequency ratios (3/2, 5/4 etc.)

Somehow the patch is acting weird: when selecting a new frequency two voices change, one of them often just jumps to a random (?) value. I'm using the poly and route object.
Can anyone point me to the mistake?

Any help is appreciated!

Thank you!

polysynth_ratios.maxpat
Max Patch


Source Audio's icon

Source Audio

Sep 2, 2020, 8:51 AM

I think your problem is timing of calculation.
the right coll outputs it's value earlier than the left one.
That makes it trigger previous left coll's value,
which gives wrong division out.
After that left coll's value gets out and triggers division again.
I would precalculate divisions and put them into coll.
If you need 2 separate incoming values to scale the frequency,
than you must take care to output only when all 3 input values
get calculated.
And you need initial division set to avoid again sending wrong
frequencies.
------
You don't need poly for this, you can cycle throug 3 voices using other
objects, like counter or a gate

Max Patch
Copy patch and select New From Clipboard in Max.


Luca Pusch's icon

Luca Pusch

Sep 2, 2020, 8:59 AM

Great, that solved it. Thanks!

Luca Pusch's icon

Luca Pusch

Sep 2, 2020, 1:13 PM

Precalculation of the values and using only one coll object works, but still: what would be the solution for both coll objects to output at the same time? This doesn't seem to work in your version of the patch either...

Source Audio's icon

Source Audio

Sep 2, 2020, 1:56 PM

patch I uploaded works.
This morning I uploaded a patch that had a mistake in, but replaced it few minutes later.
Maybe you reload it again, in case you got the older version.
If for whatever reason del 0 is not enough, try del 5 or del 10.
The purpose of it is to only pass last calculated division.