getting poly~ voices
apologies if this has been answered before – i tried searching, but please direct me to another thread if it has.
my question is this: is there a way for a patcher loaded into [poly~] can find out how many voices are loaded? e.g. to find out the "16" in [poly~ somepatch 16], in the same sort of way it can use [thispoly~] to find out it’s own voice number? (the reason for wanting to do this is so that i can set the phases of phasors for windowing relative to the number of voices in the subpatch, i.e. that the phase of each would be "voice number from [thispoly~] * (1/total number of voices)")
hope that makes sense.
the voice instance number is reported by the thispoly~ object out the left outlet when the object receives a bang…check out the manual page (link @ top right of help patcher) for thispoly~ : the mechanism is well explained,
sorry, i didn’t explain properly. i know [thispoly~] can get the voice number for that particular voice, but is there a way get the total number of voices for that poly object, like 16 voices or whatever?
this isn’t possible from thispoly~, although it sure would be useful.
two things you can do:
1– from wherever you are feeding your requested voice numbers dynamically directly also feed this number into the patch via ‘target 0’.
2– a nice little hack a few people use is this one: (this time courtesy of a nobuyasu sakonda patch, but you’ll see many people use it. in fact there is a version of this in the examples folder somewhere i think):
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 679.3ocyW1sjZBCEG+Z7oHCWasjDBJ8t9bzYmNHDWyVHwQhSc6Nae1axInBa YW4Kc1aLSNFB+O+x4ivKy77WqNxK8QeC8Cjm2Ky77.SVCdUy87KRNllmTBKy OUUTvkZ+4t+SyOpA6lEIJNTfjGJVy2iTaPBYoNQlZ19p0lKj7T0AI7.zJiaT RsLofCax22KRxOsbyNIj4bM7dwWLpNnOYMnx5tDc5Vg7wetmmpcdypUKBliH jP6PL09anwD5gZu2Rwef2Klr3zNIx.gnV+zWHQ9VauNal8m4cjOR9uMO7+gm 8mwge+b7fVcb76633.vywzX6PD34jfq64tcW+7Ntae78O+D0gR7ffBDT3OEG 4jq64wvYdXzf8bgM9F4uNQ9X6PX4DFYnQqQat0nILrV1.kLXx.HwflM4pDc6 rgMgrobnYM8tbA0E5vfzkHVWATcGmNgN9Ndxu5oKSZ0koWOcIZIjtvFa5Rsg 1BLvChOuW6F8VwkfCTy5KM5yPtwANQX.hAP0FLfIDMrWQNQCJkwjBZD4stvA g.wE3UPPBa30TcUL9nppzore6WQ3ESRBzGzo0xACMXPZDisfMJzzJRXed615 7dLFFbW13lzrkFNkMaMkM1oxe9u2G5rBZm3BPFao0VYyT1ywDEl45uOAn4po MUcZCF2UQZEJj5PAVAzR3MelCnLq8ljpTcXe5o2Q0k8litHuLdoVHSzBkr9h XMVzVQVFWVuyQgHamxbLVIBLdITt.GWwhSSPOz5AZmEabGDqoSbuD6H0jIAt C.rmZhDaQF1buVyP3xySFqVIcPqz6L+ncQSg2UMg6hldSlymh3LJ69pIVWzT zPh8IwUesKbAzlyvtFODJjd.yFagEqif6Bbw2M3RX2fC7pZwLhiwmmzPqlIu N6e.cn3ZgC -----------end_max5_patcher-----------
thanks pid – that’s a nice idea! good ol’ sakonda. where would granulation and stuff be without him?
Forums > MaxMSP