Forums > MaxMSP

to POLY~ or not to POLY~

November 19, 2012 | 6:43 pm

I am building a patch that will play back a number of sound files simultaneously but asynchronously. I am in essence building a pitch or harmonic field based off those samples. I need them to playback at different times with the ability to manipulate each file independently of the other. e.g. pitch shift one w/o affecting the other.

SHould I use poly~ to do this (which I don’t fully grasp) or should I implement a different player for each sound file (possibly up to 10 players.)



dtr
November 19, 2012 | 7:49 pm

I’d say bite the bullet and learn poly. It’s really powerful and you can surely do what you want. You just need to address the correct voice numbers for controlling your sounds individually. It also makes it a lot easier to change the number of sounds along the way.


November 19, 2012 | 8:26 pm

Hi,

additionally, you could try the [dynamicdsp~] object from Alexander Harker’s externals ( http://www.alexanderjharker.co.uk/Software.html ). It’s an ‘upgraded’ version of [poly~] with some extra features.

Cheers,
Ádám


November 19, 2012 | 9:21 pm

To poly~.


November 20, 2012 | 1:41 am

I am sorting my way through this. One thing that I have not come across though is threading. I can’t find it in the tutorials or defined anywhere. Can someone help me understand that concept?



November 20, 2012 | 5:14 pm

Here is what I am working with right now.
I want to be able to have multiple sound files that I can play and will continue to play even after the next files is triggered. I also want to be able to manipulate the pitch/speed of the file so i do not know if what I have will do the trick or if it will affect each file that is being played at the moment.

– Pasted Max Patch, click to expand. –

November 20, 2012 | 6:32 pm

target messages are your friend in poly~ world. these determine which voice you are controlling. a good starting point is to look for some pre-built patches, then take apart. there are tons available. i would give you a list right now, but im just a wee bit busy at the mo’.

if you look on the forum for sharing patcghes and also around the cycling site, you will find patches or sites to patches.
hope this helps you a wee bit more.

poly can be a bitch, but it can pay off in the greatest of ways. either in max or msp or jitter patches

leed
——
smokingbunny.co.uk


November 20, 2012 | 8:10 pm

I’ve not seen your patch but there is a great PAD on making a polyphonic sampler. I think this explains the easiest way of using poly~ pretty well:

http://www.youtube.com/watch?v=Sm1uWS1yuFk&feature=plcp


November 23, 2012 | 4:16 pm

Here is where I have gotten so far. Why am I not getting the buffer to play from polybuffer? I keep getting the message:

"groove~: no buffer~ pitchfield-F1"

Also, I don’t thjnk I am using target correctly.

– Pasted Max Patch, click to expand. –

November 24, 2012 | 12:51 am

O.k., I am making some progress here. Disregard that last patch. I did some searching on the forums and came up with this which seems to work just a tad bit more for me. But I find I am not getting the samples to play indefinitely. I get one or two samples to play and then silence even though the metro object keeps sending info into the poly~. Here is the patch for any advice:

– Pasted Max Patch, click to expand. –

November 24, 2012 | 1:12 am

can you post ‘pitchfieldplayer-test’ things inside poly~ don’t get copied automatically.


November 24, 2012 | 1:19 pm

Sorry. Here is the sub patch:

– Pasted Max Patch, click to expand. –

Here is the main patch:

– Pasted Max Patch, click to expand. –

November 24, 2012 | 2:17 pm

First I think you probably want your polybuffer in the main patch. Secondly, you have no target message to your poly~ object. The message should look like this ‘target $1′ where $1 is the required destination all subsequent messages will then be sent to this target until you send a different target message.


November 24, 2012 | 11:15 pm

I am not sure where in the path to put the "target $1". I tried it in several places and it doesn’t work.


November 25, 2012 | 1:12 am

‘target n’ goes into any of poly~’s inlets. These messages are not passed through the inlet to the patch inside but used by poly~’s internal voice management. It’s all in the help file and documentation.


November 29, 2012 | 2:01 am

I have made some progress here but I am still not comfortable poly~. I decided to abandon the sampler I had been working on because of dissatisfaction of results so I have instead started working with some basic synths out of the tutorials to work on what I am trying to achieve. I have noticed that in using the FM synth that poly~ doesn’t seem to behave properly. The synth stops playing after a while. Not sure why. And also I notive that the carrier frequency doesn’t change sometimes as it receives an integer. What am i missing here?

Subpatch:

– Pasted Max Patch, click to expand. –

Main patch:

– Pasted Max Patch, click to expand. –

November 29, 2012 | 1:06 pm

Hi
I glanced briefly at your patch, but am unable to decipher it (as I’m knackered!); first thoughts: you appear to have trigger/control sources both outside AND inside your poly~ patch – this isn’t usually good practice and makes troubleshooting more difficult. have a look here: 10 minutes and you’ll have a much better understanding of the (initially) confusing world of polyphony in MSP:

http://cycling74.com/2011/05/05/polyphonic-synthesizer-video-tutorial/

And there’s a tenuously-related but fun video tutorial here too, if you own Gen:

http://www.youtube.com/watch?v=_hO4AggFwrg

Brendan


November 29, 2012 | 4:17 pm

Thanks. Will take a look. I think you’re right as I’ve thought about it I need to shift some things out of the poly~ and into the main patch.


Viewing 19 posts - 1 through 19 (of 19 total)