home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / SoundAndMusic / resample / testscript < prev    next >
Text File  |  1991-06-26  |  1KB  |  36 lines

  1. #!/bin/csh -f
  2. if ( ! -e i.snd ) then
  3.     echo ln ../sounds/i.snd .
  4.           ln ../sounds/i.snd .
  5. endif
  6. set s=sweep
  7. echo     playscore -w $s.snd $s.score
  8.     playscore -w $s.snd $s.score
  9. echo     tomono $s.snd testr.snd
  10.      tomono $s.snd testr.snd
  11. echo    sndtrim testr.snd test.snd
  12.     sndtrim testr.snd test.snd
  13. echo    redefine 'original signal' as mono, trimmed version
  14. echo    cp test.snd $s.snd
  15.     cp test.snd $s.snd
  16. echo    make first comparison work
  17. echo    cp $s.snd testr_prv.snd
  18.     cp $s.snd testr_prv.snd
  19. foreach factor (1.1111111 0.9 1.5 0.6666667 2.0 0.5 3.0 0.3333333 32.0 0.03125)
  20.     echo $factor
  21. echo     /bin/time ./resample -by $factor test.snd testr.snd
  22.      /bin/time ./resample -by $factor test.snd testr.snd
  23. echo     sndplay i.snd testr_prv.snd i.snd testr.snd
  24.      sndplay i.snd testr_prv.snd i.snd testr.snd
  25. echo     /bin/mv test.snd  testr_prv.snd
  26.     /bin/mv test.snd  testr_prv.snd
  27. echo     /bin/mv testr.snd test.snd
  28.     /bin/mv testr.snd test.snd
  29. end
  30.  
  31. echo    /bin/rm testr_prv.snd
  32.     /bin/rm testr_prv.snd
  33. echo    Final comparison is $s.snd \(original\) versus test.snd \(final\)
  34. echo     sndplay i.snd $s.snd i.snd test.snd
  35.      sndplay i.snd $s.snd i.snd test.snd
  36.