[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] [commit] PanAz.kr, Pan4.kr



Hi,

to enable kr methods for PanAz and Pan4,
I committed the minimal changes below.

Does it make any sense to have kr methods on the
Ambisonics Panners too?
PanB, PanB2, BiPanB2 have (broken) kr methods,
DecodeB2 just has an ar method.

best,
adc

diff -p -r1.14 Pan.sc
*** Pan.sc      17 Feb 2004 06:10:08 -0000      1.14
--- Pan.sc      9 Dec 2004 14:27:26 -0000
*************** Pan4 : Panner {
*** 45,52 ****
        }
        init { arg ... theInputs;
                inputs = theInputs;
! channels = [ OutputProxy(\audio,this, 0), OutputProxy(\audio,this, 1), ! OutputProxy(\audio,this, 2), OutputProxy(\audio,this, 3) ];
                ^channels
        }
  }
--- 45,52 ----
        }
        init { arg ... theInputs;
                inputs = theInputs;
! channels = [ OutputProxy(rate,this, 0), OutputProxy(rate,this, 1), ! OutputProxy(rate,this, 2), OutputProxy(rate,this, 3) ];
                ^channels
        }
  }
*************** PanAz : Panner {
*** 161,167 ****
        }
        init { arg numChans ... theInputs;
                inputs = theInputs;
! channels = Array.fill(numChans, { arg i; OutputProxy(\audio,this, i) });
                ^channels
        }
  }
--- 161,167 ----
        }
        init { arg numChans ... theInputs;
                inputs = theInputs;
! channels = Array.fill(numChans, { arg i; OutputProxy(rate,this, i) });
                ^channels
        }
  }

--
--
Alberto de Campo
Bergstrasse 59/33
A-8020 Graz, Austria
e-mail : decampo@xxxxxx
--