Polyphonic sampler for Max for Live

Daniel Beck's icon

I've been working on a patch for MIDI controlled polyphonic sample playback in Max for Live. I've really struggled though to find a good explanation about how the poly and poly~ objects should be used together to generate polyphonic playback. Pitch and Velocity is working pretty much as it should be but I'm unsure how to connect the voice number info generated by poly to my poly~ object in order to generate polyphonic playback.

Any help or advice on another way of doing things would be very much appreciated... i feel like I'm close but at a dead end with my search for the answer.

This is the main patch...

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

and the poly~...

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

Daniel Beck's icon

I'm still stuck on this, any poly experts out there?

bt.soundmaker's icon

I'm no expert but have you checked out 'Polyphony Tutorial 1: Using the poly~ Object' in the max reference?
open the help file provided there, and then double click on the poly_using_target patch

it shows how to use [poly] to target a voice in poly~
I sometimes use a counter instead for the target voices but I don't know what would be more efficient

I'm not sure, but I think thats what you mean by how to connect the voice number? I think that is the way to do it.

Daniel Beck's icon

Thanks @BXNE I missed this when looking for the poly/~poly connections. Using target though is causing me more problems at the moment. I have poly setup to have up to 16 voices, using a target message from poly I just get a note on/off change every 16th message... effectively I get an output every 16 notes instead of on every note. Also seems to just break adsr~ within poly. Still a bit stumped.

latest patch

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

poly~

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

Daniel Beck's icon

Bumping as I'm still having trouble getting the outcome I want from poly in this patch. Using target from poly I'm getting a continuous loop of the full file on every 16th note on/off rather than a triggered note for each note on. Looking at the patch I can't see anything that's out of place but the patch is slightly more complicated on account of using waverform to set loop points. If I set a target message to x poly voice as described in the poly tutorial (thanks @BXNE) this breaks adsr.

Latest patch...

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

with poly~...

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