to POLY~ or not to POLY~
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.)
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.
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
To poly~.
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?
Hi,
first read http://en.wikipedia.org/wiki/Thread_(computing) , then read https://cycling74.com/articles/event-priority-in-max-scheduler-vs-queue/ .
Cheers,
Ádám
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.
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
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:
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.
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:
can you post 'pitchfieldplayer-test' things inside poly~ don't get copied automatically.
Sorry. Here is the sub patch:
Here is the main patch:
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.
I am not sure where in the path to put the "target $1". I tried it in several places and it doesn't work.
'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.
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:
Main patch:
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:
And there's a tenuously-related but fun video tutorial here too, if you own Gen:
Brendan
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.