poly~ doesn't shift between subpatches
I’m quite new to Max and have just finished the Max and MSP tutorials and a few experiments.
I want to build a sampler, that plays a sample when you hit a button using the groove~ object. If you hit the button again BEFORE THE SOUND HAS FINISHED, the sampler should play the sound on top of it self, put with some modification (e.g. pitch-shift). And some more modification on the 3rd, 4th, 5th… triggering of the sound on top of itself. But if the sound finished it should just be trigged normally.
To me, it seems best to use the poly~ object – and make a subpatch which plays the sample, and modifies it, according to which instance of the subpatch is in use by the poly~ object. I’ve tried to make a simple system that works this way (se below), but it only uses the first instance of the subpatch in poly~, even though I have used the "mute 0, 1" / "mute 1,0" and thispoly~ exactly like in the "MSP Tutorial 21 – Using the poly~ Object".
Can anyone please help me, what I have done wrong?
A whole new patching approach is also welcome!
I’m running Max 5.0.4 (shouldn’t it have autoupdated itself?) in OSX 10.5.6.
----------begin_max5_patcher---------- 476.3oc2V10aCBBEF9Z8WAgq6ZDTas6t8aXWtzrfJqkMEMELqej1e6SQseZs zlNS2tA0C3g22GNPXkoAzOYNU.AOCdCXXrxzvPEpHfQ02FvXx7fHhPMLHcYH IXCrWYWoDYvTFex6ynAxxzf7r5a0CfbUObbqaAiq9GVnJQI9e9jccd3YwIYx HpTMIV6hx30AwEwVaZVzzSSwFSEBxDZ8rHoykkycJkCPsXBak3GVJ9AJ+30r EvMaATUzxPxEozxDCgaSxGIbImDq5.9xLFIBtWOB1RUOHTe2QtHugcBSraag EOPWnfb9WQEbKTYnm1Pw8uFT7yjxD9k2qW5drUcaSt26ZKI7I7I6HvAdAcCd gS+NWFmr9JnQ4tAXiurKKOJycTqtzpYWha0k8tg0Zb+61ojmAMeQWnyw7UPw sEnfZFJNmCJLtrfIm93NAIq6GjRShVrAHx7ekDmFQmAPCz.ZVJpgvNsUKMbz UVKIXS3EfX6a2Ibs+1MUJgQL9w2ZP41h3GxPQR1rfZAVuCAryugTgjwIRV94 L6MHmCFzTVXHku+MChYgoI4UDUh.LtwUTs0DRGMY0sZxQCMUThzgZ5noqYMY 28RBogjPcljPOfqbE283QSS3eaIk+wZyeHfbyGM -----------end_max5_patcher-----------
Subpatch (called "subSampler"):
----------begin_max5_patcher---------- 1138.3oc0YtrbihCEFds8SgJ1Lab6AIt26lkcUyxY2TSkBCxF0CH4xRjKSWc d1GcARrS.rbLMAmphwHDRm+OcjNGI+ikKb1vdDyc.eE72fEK9wxEKzEoJXQy 8KbpReLqLkqqlSFqpBSENqLOSfeTnKWTP3.dAqtLGHvkk.UA6YkOsB7PAlBH BfrBaITBu.mC1Wl9DgtSVKLfmVsuDCRo4.NVnpofAnL5W1TyepsiJITbFqlp 6M+lB2mJxJjMycGvYBiJBBBV6tBfh0WfAtpKgn0tf+o4kH4ZCls46eAFz17z 5JVsnDKzpzsozsLpflVg0uvebfjV5bzS3j+S+Dnr0esYHz1VApJ6mKWp9X0U h2+jkluIUBrpz+EyeAtFT+PAIq.H66M3C.1V.udilLFnuF7MPMGqem1JIAbV gr4v5A.AtZOS8h5QCxtee2AF6dbmnOnez66oYt+wjOJnaxGeq.9uQ+J3uNP1 sSRcCVzNpJtezv.Q7abPutqn9YlmlRPj4Rn9hme2LyatwrJLmmtC+NlUUKv. kdb5W3He2imfB02D2svQtcqbXSolhDOsGaZaGmWZkqCJnwFJvU.2AfR.TSCe jEPAFeCAkM0BAiNfx8C0qZ3knUN5kO6T4gWnxUKb9p5uZ29yKlDiX7rQL9et hghePZFuyakQw5N57iXl0rBhFTjntEIZPQt5shcF62ZyPcxrbjliKkpYv0pa EoqdAo.zPhL7CNR+YNJusjIaiyC.TjwWevQ4K0UW14ohOruNbcPR.LN5WsSB McuL4dwy.n6PAv7aXiI3tIG7dA0ktxmgTiIg9HNKlLnGfAMqHlzDJ+cHXytL VI6foxtqiCk+EspyuA6lb9WnKFgdQNXhCDdVZo9ItqStX2tlBKTdOmJ0H2f3 3Uc9MsTGOG11Lye97CTgHKBf49wPt5xLcJcYyNJOOfLw1BhGDPvqJ317BMD5 fgCglz6RNBN8FMz+SJI81NfmdON+NooHs96RExo1xTZLm3yhWfxBG0StqcKv pNzQ+.MNG8blZ3GDYQNS9Ayxjl1TucK9vyfmvb0+qeH89ADbTvQtJPn2fB16 lN+g918qqE9CMTBsNn+c8FcCso29xkhr64AWeoYY2l4G9C5t3coKvH6cpT5i 0xLiGVLGtldJ0Pro4.BLGTRT3fSktzf1MrY0XSIuQbe40xbvQmeqJsWfClA9 3bhh1jL3mPbngH3fS+hrmf9vaQBpUh9HpeyO8ilFpxOEqbV8gr1IIsGHK3Uf ji4BBMUPjg8esRvSqTAIOGSOFNUj78LYFxMFQOo+aqMoxT3r1DZZsI0YzN5b J.lnhP56Ea9wBLtombmYyLdg5Jpt4Z0QnM5HdZYKxFaJbZsIearIkgCmLaJw VSZ5vT3I.nGSxexMoyQojI0hrw8dZ8tQ13cileK5GMsljEVj2z5bCsIb8EZR MAWh8NJRi5lq0TgyuLKBsYH8Mdh+x8xrYHUke+byl7gSpMEYiIMstSd9yOaR 2cmKjL5ZV0RdyOW9+3Lo6FA -----------end_max5_patcher-----------
Hi Mr. M.
Welcome to the enchanted world of poly~.
I don’t have time now to give you a long answer, but I looked at your patch, and here are a few things to thing about:
-"busy" is not the same as "unmuted". These are two different things.
-To instantiate new voices, why not try the "note" message? With incoming bang, I don’t see how you intend to talk to different voices. If you use a "note" message, you will automatically use the next available voice (not busy).
there are two different working methods of voicing in poly~.
one is the automatic system which you can see in the helpfiles and the tutorials – the other method is to organize your own voicing system from outside the poly.
just as an example where you could start:
let your poly patcher react to 0 and 1 where 0 turns ot off and 1 turns it on. now you can turn voice 1 ON by "target 1", "1", and OFF by "target 1", "0".
the rest is your imagination / what your apps needs.
Thank you very much for the good answers!
It works like a charm, sending a "note 1"-mess to the poly~ instead of a bang!
But I’m still wondering, if the is a way to make a poly~-subpatcher say to the poly~: "I’m busy right now, please take the next subpatch"…? It could be useful under other conditions…