Poly~ and ADSR~

Michael Gary Dean's icon

I have a simple patch that contains a poly~ abstraction. The poly component works fine. My problem is in the adsr~ object. I seem to get inconsistent results with it, and never a proper envelope with attack, decay, sustain and release. Sometimes I'll get the attack, but no release, or various combinations like that. Any ideas?

Thanks in advance.

Michael

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

Main Patch:

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

Poly Abstraction:

Chris Muir's icon

I have an example, called StupidSynth, that shows using adsr~ in a poly~. It can be found here:
http://www.xfade.com/max/examples/

Chris Muir's icon

Looking at your top level patch, I wonder why you are using poly in addition to poly~?

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

Here's an untested simplified version of your top level patch:

Michael Gary Dean's icon

Thanks for the reply.

I followed the same method used in the MSP tutorial on . is used with the target attribute of to route messages to a specific voice of . Maybe what I'm doing is unnecessary. I'll try to do another method of polyphony without it, since it seems odd to have that to you. Maybe the on/off velocities from the MIDI is being allocated to different voices or something, thus creating problems in the envelope. Thanks for the input and looking at my patch. Always appreciated.

I appreciate another example too. Thanks for posting that.

Michael Gary Dean's icon

Ok. Got it. Here's the working patch - might be helpful for someone else. Obviously you'll have to connect some of the broken patch cords after you paste it.

Thanks to Chris for noticing the oddity of using the poly object.

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

Main Patch:

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

Poly~ Patch:

Peter McCulloch's icon

Also, send/receive is a good tactic for this, since you want to make sure all copies are getting the same info.

M4RS Music's icon

TLDR: (just because this thread didn't solve the problem for me lest I load the patches)
When sending a value into poly~ for adsr~ (and quite a few other things I'd assume) you need to send that value via the message "target 0, $1" so that poly~ knows to apply this value to all voices. I hope this info can help someone <3