issue with ADSR and *~

LordBlythe's icon

Was wondering if anyone would be able to help explain why this isn't working? It stopped outputting sound once the ADSR was introduced but now the whole patch doesn't seem to want to work even when I take it out and restore it to an older version...

FM-SynthWork-PROBLEMS.maxpat
Max Patch

TFL's icon

Your selectors (two in the [gen~] and a [selector~] in the main patch) are closed by default. You need to open them all by sending them a non-zero value for your synth to work. You can make them to be open by default by enabling "Initial Enable" in the [live.tab] connected to them.

You also need to replace [+~] (the one at which is connected your [adsr~]) by [*~] for your envelop to work.

Finally you'll probably want to scale your triangle and saw generators from the range 0. to 1. to a proper -1. to 1.

LordBlythe's icon

Thanks for the help! I gave that a go and still no luck... I'm probably missing something very obvious here.

TFL's icon

In addition to all the changes I told you , for your synth to make sound, you need to make sure that:

  • the svf filter frequency is not set to 0

  • the adsr has at least a bit of attack and/or decay (otherwise the envelop would remain null)

  • if you're using the [kslider] instead of a MIDI input, make sure to connect [s gate] to the left outlet of [kslider]. Additionally you can send the velocity from your MIDI input to the [kslider] so that both options will work.