problem poly~ polyphonic...
hey all,
working on a sampler synth using poly~. recording samples and audio in.
i have done the tutorials etc, but i just seem to have hit a wall making it into polyphonic, rather than just pressing one key at a time being monophonic and less cool.
i am using [groove~], [buffer~] and [waveform~]. i was using [play~] or [wave~]. but prefer [groove~] all in all.
any ideas or links to results? im not wanting a full blown patch etc, just an idea to make it into polyphonic.
i just cant think at the moment, might be all this crack smoking and no eating :)
cheers...
[lewis]
Poly~ is a shit to get your head around but it's worth persevering. Can you post a simplified version of your patch up here so that we can have a look at it? Its normally something very small but significant thats making the whole thing not work. Making sure that you are sending information to the right instance of poly~, making sure that you are freeing them up when they are not being used and targeting all instances with the "target 0, $1" message are all things that have tripped me up in the past. In fact I have just finished wrestling with a fairly mammoth poly~ patch myself, it made me want to kill kittens.
aye sorry, slipped my mind
main patch
[poly~] patch named 'sample-rbrain~'
I haven't looked at your patch, but I have a couple simple poly~ examples here:
http://www.xfade.com/max/examples
See PollyWannaAllocate and StupidSynth.
aye, i had looked at stupidsynth as that does use [poly~] in a good way.
but that just seems to be with tones from [cycle~], rather than samples. it is still a great example patch. but with what i am doing, it does not seem to apply. unless i am just doing it COMPLETELY wrong, which is most likely :)...
I wouldn't say completely wrong, but there were some issues. :-)
Save as sample-rbrain2~.maxpat
Top level patch:
AH HA. so you basically need more than one [buffer~] when needing polyphonic sample playing. unlike with the example from stupidsynth, which is driven by [cycle~], and can be put into polyphonic mode easier.
lovely, thanks a lot...
i have looked and messed with the patch. but is it possible for the sample to keep on playing when re-pressing the midi key, much like many samplers. when pressing the keys, you cant press them again, until the sample has played through.
i will keep searching for an answer, but if someone does know, it will help a lot...
You don't really need more than one buffer, but you had individual buffers in your original patch, so I just carried that through.
While I'm not quite sure what you're asking with the re-trigger question, I'm going to go out on a limb here and say that it is probably possible. Care to restate the question?
BTW, the key things I did to enable polyphony are to use the midinote message for allocation, manage the busy state properly, and to give a number of voices argument to poly~
aye sorry for the vagueness.
what i mean is say, when you play a sampler like kontakt 3/4. when you play the sample with the key, let go and then press again, you can still hear the sample from the previous press of the key. the ringing or resonance or sustain of the sample is still going from the previous one when pressing a second time.
even like when playing a piano, it does not cut it off when pressing a key, it still has some sound from the previous note.
i hope that cleared it up...