Stuck learning Polyphony in Max, Help!

free horses's icon

Hi there,

I've been following along on MaxMSP tutorials, and so far the granular synth patch works great as a monophonic pitched keyboard, but having a hard time understanding how to change this so that it can play more than one note at the same time on the Kslider? It would look as if it's working but it's not... I can see the numbers change after each mtof box when each key is pressed.
Would anybody be able to help me with this? I would greatly appreciate it as I'm struggling a little.

Thanks so much if anybody is willing to help, happy to send parts of the patch if needed.

s and r

Inside the p grains_parameters

outlet to

Jean-Francois Charles's icon

A first thing: you should certainly connect the second outlet of [notein] to the right inlet of [kslider], otherwise, you don't have note offs.

free horses's icon

Bumping :(

Jean-Francois Charles's icon

Also, I'm not sure which tutorial you are referring to, but most often, a granular synthesizer is meant to play many grains at the same time, i.e. there is already a polyphony of grains, but not necessarily a polyphony of pitches. Often, the pitch is "fixed" with some amount of detuning - in this patch see "variation_pitch".
So, here, the mc construct is meant to carry different grains.
To make the patch "polyphonic", you need an additional layer of abstraction (could be poly~), or work on the structure of the patch itself: you could tell different grains to play around different pitch values (for instance, 20 grains around a specific pitch, 20 other grains around another pitch) - that might be the easier route.

free horses's icon

Thank you Jean-Francois, I'll have a further look into how I can make this work, much appreciated

Jean-Francois Charles's icon

I would suggest you try to make a polyphonic synth that's not a granular one first (MSP Polyphony Tutorials in Max Help, if you want to get started with poly~, and/or see the guide "MC Wrapper Polyphony" in the Reference as well). Then you can graduate to the granular one (again, the reason it's more complex is that a "monophonic" granular synth is already a polyphony of grains).