CCRMA

Getting your CLM instruments running

  1. From the lab's main web page save the instruments' files in your home directory (use Netscape's Save As... function under the File menu).
  2. Fire up xemacs either from the mouse menu (under CCRMA->Editor->xemacs) or from a shell terminal typing:
    xemacs &
    
  3. Type Control-x l to start running Emacs Lisp interactive listener.
  4. To compile and load pulse.ins type on the Lisp Listener:
    :cl pulse.ins
    

    This will compile the file and start up the GUI to control the program.
  5. To run the program type:
    (with-psound (:srate 44100)(pulse))
    
    After hitting return the real-time pulse generator will start running and you can use the sliders in the GUI to control Amplitude and Frequency of the pulse train.
  6. To stop the program just click on the ON/OFF button on the upper right corner of the GUI
    To turn the instrument on again, click on the ON/OFF button and then go back to step 5.

Note: to run file-wave.ins just follow the same steps as before. The Lisp command line to run the program (step 5) should be now:

(with-psound (:srate 44100) (file-wave "your-file.snd"))

you must replace "your-file.snd" with the name of the file you want to loop with the program, for example for the file /zap/test.snd the command line should be:
(with-psound (:srate 44100) (file-wave "/zap/test.snd"))

For pulse-env.ins you just have to compile and load the file using the :cl Lisp command and then run the program with any of the example calls in pulse-env.clm.
The best way to do this is to split the Xemacs frame into two windows (using Control-x 2), and then once on the top window open the file pulse-env.clm in the editor (after having it saved from the wave page using Netscape, of course). For this you can use the Open... command under the File menu or type Control-x f and the name of the file.
Once the file is open you can either paste (with-sound ...) calls from the file window to the Lisp Listener, or click at the begining of a command line in the file and type Control-c Control-e, this will pipe the command to the listener directly without pasting.



©1998 by Juan Pampin,
juan@ccrma.stanford.edu