home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February / PCWorld_2008-02_cd.bin / audio-video / reaper / reaper2028-install.exe / Effects / Utility / chanmix2 < prev    next >
Text File  |  2007-12-03  |  572b  |  23 lines

  1. desc:channel mixer 2
  2.  
  3. slider1:0<-120,12,1>left volume (dB)
  4. slider2:-1<-1,1,0.01>left pan (-1..1)
  5. slider3:0<0,1,1{normal,invert}>left phase
  6. slider4:0<-120,12,1>right volume (dB)
  7. slider5:1<-1,1,0.01>right pan (-1..1)
  8. slider6:0<0,1,1{normal,invert}>right phase
  9.  
  10. @slider
  11.  
  12. llv=(2^(slider1/6))*min(1-slider2,1);
  13. lrv=(2^(slider4/6))*min(1-slider5,1);
  14. rlv=(2^(slider1/6))*min(1+slider2,1);
  15. rrv=(2^(slider4/6))*min(1+slider5,1);
  16.  
  17. slider3?(llv=-llv; rlv=-rlv;);
  18. slider6?(lrv=-lrv; rrv=-rrv;);
  19.  
  20. @sample
  21. s0=spl0; s1=spl1;
  22. spl0=s0*llv+s1*lrv; spl1=s0*rlv+s1*rrv;
  23.