I am trying to cross modulate the positions of 2 audio samples.
So channel 1 is sending to an Amplitude and when it goes beyond a certain threshold it changes the position of channel 2 (and retriggers of course). Channel 2 does the same, when it goes beyond a certain peak it changes the sample position of channel 1.
I can easily get one channel to work. The left channel changes the position of the right channel.
But I am having a difficult time figuring out how to do this for both channels. I tried creating 2 synthdefs and sending them to each other. No luck.
Any help is appreciated. Here is the working version of the file in the left speaker changing the file position of the right speaker.
I stopped using max msp years ago but strangely this is something that is done easier in max…first thing I have encountered.
var sig, amp, gate, trig,sig2;
amp = Amplitude.ar(sig, attackTime:0, releaseTime:0.0002,mul:2);
gate = amp > 0.13;
trig = Trig1.ar(HPZ1.ar(gate),0.001).poll;
sig2 = PlayBuf.ar(2,~br3,BufRateScale.kr(~br3)*1,trig,TRand.ar(0,~br3.numFrames,trig),1);