here I gate sidechained channel 10 to channel 11 and it wont play 11 unless 10 goes below -33.6 db
I tried using Amplitude.ar to get a similar result but only managed using .linlin to reduce volume but not to zero ( or at least a volume so low that cannot be heard)
and i cannot get the volume to go 100% when sidechain (10) is low enough
Compander’s control signal input is the sidechain input. (“Control” as in “controls the volume,” not “control rate” – it should be audio rate.)
Also, to use Compander as a gate, set slopeBelow to a high number, and slopeAbove to 1.
after multiple testings it is still not working I am starting to wonder if Compander might not be the right tool to use, it works well sidechaining signal like kicks or short length noise but not for using longer note sidechained to other signals
I ll use an example, Amplitude based, given by James early this year.
(
{
var samp = Decay.ar(Impulse.ar(1),0.1)*WhiteNoise.ar(1);
var osc = SinOsc.ar([400,401]);
(osc-Compander.ar(osc,samp,0.01,12,1,0.01,0.2))+samp
}.play;
)
but this is better:
(
{
var samp = Decay.ar(Impulse.ar(1),0.1)*WhiteNoise.ar(1);
var osc = SinOsc.ar([400,401]);