home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / audio-video / reaper / reaper174-install.exe / Effects / Guitar / tremolo < prev    next >
Text File  |  2005-06-24  |  479b  |  20 lines

  1. // This effect Copyright (C) 2004 and later Cockos Incorporated
  2. // License: GPL - http://www.gnu.org/licenses/gpl.html
  3.  
  4. desc: Tremolo
  5. slider1:4<0,100,1>frequency (Hz)
  6. slider2:-6<-60,0,1>amount (dB)
  7. slider3:0<0,1>stereo seperation (0..1)
  8.  
  9. @slider
  10.   adv=$pi*2*slider1/srate;
  11.   sep=slider3*$pi;
  12.   amount=2 ^ (slider2/6);
  13.   sc=0.5*amount; amount=1-amount;
  14.  
  15. @sample
  16.  
  17. spl0=spl0*((cos(pos) + 1) * sc + amount);
  18. spl1=spl1*((cos(pos+sep) + 1) * sc + amount);
  19. pos+=adv;
  20.