Hi everybody,
I’m using PanAZ to project sound on 6 speakers. I want the movement to go from speaker 1 to 6, clockwise, and anti-clockwise. The code below works, now that I have an horizontal setup of speakers, and sound projection is ok; but I’m simulating the final set up, which will be the speakers being positioned in vertical, in a spiral fashion, and no longer in horizontal.
I’ll be doing an installation into a tower, and wanting to place this 6 speakers, one each floor.
I’m asking you guys if PanAZ will do the job, and sound projection will still be perceivable as an ascending and then descending motion, or I should use PanX, for example, or some other Ugens.
Many many thanks
Leo
(
~toPan_bus = Bus.audio(s,1);
~panNumChans = 6;
)
(
SynthDef(\sirena, {
arg fMin, fMax, rate = 0.66, amp = 0.25;
var scatto, freqSirena, sirena;
scatto = LFPulse.kr(rate, iphase: 0, width: 0.5);
freqSirena = Select.kr(scatto, [fMin, fMax]);
sirena = LFTri.ar(freqSirena)*amp;
Out.ar(~toPan_bus, sirena);
}).add;
SynthDef(\pan_sirena_clock_antiClock, {
arg speed = 0.05, amp = 0.4, wid = 2;
var sig, pos, panned;
sig = In.ar(~toPan_bus, 1); //PinkNoise.ar(amp);
pos = (LFTri.kr(speed, iphase: 1) * -1).linlin(-1, 1, 0.0, 1.666);
panned = PanAz.ar(
numChans: ~panNumChans,
in: sig,
pos: pos,
level: amp,
width: wid,
orientation: 0
);
Out.ar(0, panned);
}).add;
)
(
c = Synth(\sirena, [\fMin, 467, \fMax, 620], addAction: \addToHead);
d = Synth(\pan_sirena_clock_antiClock, addAction: \addToTail);
)