adsr~ sustain and release

marlon brando's icon

Hi,

When using adsr~ controlling amplitude in a monophonic synth, it does not behave the way im used to.
When releasing the key, adsr~ does not fade the sound out like i`m used to in with the adsr module in G2 modular and Reaktor.

Could someone please explain ?

(I know I ideally should use function~ and line~ instead)

Cheers

Chris Muir's icon

Quote: marlon brando wrote on Tue, 20 January 2009 14:34
----------------------------------------------------
> Could someone please explain ?
>
> (I know I ideally should use function~ and line~ instead)
----------------------------------------------------

It works more or less as I expect. Perhaps you should post a patch that illustrates what doesn't work as expected?

Also, if what you want is a simple envelope, I don't think that there's anything wrong with using the simpler adsr~

- C

marlon brando's icon

Thanks Chris,

Its just a very simple patch sending velocity out of stripnote, through a message with value 1 to the leftmost inlet of adsr~,then the leftmost outlet to a signal multiplier, multiplying an oscillator.

The patching I described here does not work as expected.
Should I send through a message with value 1 to the adsr~ inlet?

Cheers

Chris Muir's icon

On Jan 21, 2009, at 10:08 AM, marlon brando wrote:

> Its just a very simple patch sending velocity out of stripnote,
> through a message with value 1 to the leftmost inlet of adsr~,then
> the leftmost outlet to a signal multiplier, multiplying an oscillator.
>
> The patching I described here does not work as expected.
> Should I send through a message with value 1 to the adsr~ inlet?

How do you turn the note off? There are no note-offs passed through
stripnote.

I have an example, called StupidSynth, on my examples page: http://xfade.com/max/examples/

The Max5 version of the StupidSynth example uses adsr~ and shows using
velocity to scale the envelope and turn the envelope off properly.

- C

Chris Muir
cbm@well.com    
http://www.xfade.com

marlon brando's icon

Cool,

I will check your Stupidsynth

Is it a good idea to scale the output of notein velocity outlet 0 127 0 1 to set the initial value of adsr~?

Is this common?