Polyphonic [function] envelopes through [line~]

Matthew Mitchelll's icon

So I've recently graduated from using adsr~ to using function and line~ to create all of my envelopes. I know how to make adsr work polyphonically but I am having trouble figuring out how to make my envelope coordinate with my polyphonic signal. Does anyone have any examples of SIMPLE polyphonic synth patches or some type of explanation / tips or tricks for how to make an envelope for the amplitude of my polyphonic synth using function and line~?

Thank you for your patience

brendan mccloskey's icon

Hi
is the function+line~ combination unique to each voice, or is your function outside the poly~ addressing independent line~ objects? Either way, you must be familiar with the "target $1" message to poly~. Sorry not to be more specific but your question framing is a little broad.

Best
Brendan

Matthew Mitchelll's icon

Lol, sorry, I'm still really new so it's sort of difficult for me to frame my questions effectively .

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

That's the patch that I am using for the poly~ object. The patch is called "fmsynthfirst"

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

This is what the main patch looks like

Matthew Mitchelll's icon

Turns out I'm an idiot and forgot to add the ~ to my [out 1] object, which is why I was never getting any sound. I am having a new problem that I can't figure out where the modulator of my FM synth is only targetting one voice at a time as opposed to hitting all of them.

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

Hopefully there is a quick and easy fix that I am somehow missing. Thank you for being patient with my newbishness

brendan mccloskey's icon

Patience is the gift we always pass on to others.

(I should work for f*ckin Hallmark!!)