Hallo, Achim Bornhoeft hat gesagt: // Achim Bornhoeft wrote:
Can anybody help me to extend this patch from 4ch to 8ch? (I found it
somewhere...) Or is there an even easier (better) way to do the same. I already tried [vbap] but the objects [define_loudspeaker] and [matrix~] are not recognized by my PD-Extended 40.3 on Max OS 10.5. (see other attachment).
Attached is a cosine-panner that I built to pan sounds accross a 12x5 speaker matrix [1] (with help by Peter Plessas, thanks again!). If you want to pan to that many outputs, I highly recommend to use the iemmatrix objects, they make things much easier. Never use [matrix~] that object is nameclash-polluted, use [mtx_mul~] instead, an example is in the cospan help file.
Anway you can pan with just [*~] as well using [cospan], it's just a lot more patching work, more error prone and slower.
The basic idea is to create as many [cospan <index> <channels>] objects as you need. Say you want to pan over 4 channels left to right, you create these:
[cospan 0 4] [cospan 1 4] [cospan 2 4] [cospan 3 4]
and send each of them a position in degrees from 0-360. The left outlet of cospan will output the raw amplitudes of the respective channel, the right one will output messages for [mtx_mul~].
Now if you want two-dimennsional panning, you duplicate the setup for each the vertical or y-axis. See cospan16to9.pd for how I did it for the speaker wall (which is called "16:9" although it only has 12x5 speakers.)
HOTH
[1] this one: http://footils.org/cms/weblog/2008/jul/28/schusslig-17-beta/
Frank Barknecht Do You RjDj.me? _ ______footils.org__