CCRMA

CM & CLM, topics and links

All about arguments in functions (a must-read, find out what types of arguments you can pass to functiond and how to pass them)

A VERY simple CLM instrument (a dissection, detailed piece by piece analysis of a very simple CLM instrument)

CLM stuff you should look up

  • definstrument (how to define a CLM instrument)
  • oscil (a sinewave oscillator)
  • env (a piecewise linear envelope)
  • outa (basic one channel output)
  • locsig (static signal spatial location)
  • with-sound (how to get everything working)
  • the run loop
  • reverberation (look for reverb instruments in the list of example instruments, we used "nrev" in the class examples).
  • stereo (and more - see outa and locsig above)
  • CLM, Lisp, C (?!)

CM stuff you should look up

Here is the dictionary where all of Common Music functions and macros are documented.

If you want to drive CLM instruments from more familiar "musical" parameters you can use the following three CM functions to convert from note names to frequency, rhytmic values to seconds (at a certain tempo) and musical volume to amplitude numbers:

  • hertz (converts from anything to frequencies)

    If you supply a quoted note name, hertz will convert that to a frequency in hertz, if you supply an integer hertz will interpret it as a midi note number and translate that, again, to a frequency in hertz.

  • rhythm (converts rhythms and tempo to seconds)
  • amplitude (converts ppp's and fff's to amplitude values)

A few more useful conversion functions:

  • keynum (converts from anything to key numbers)
  • note (converts anything to note names)
  • pick (pick a random argument - and see pickl as well)

Last modified: Tue Jan 18 09:01:43 PST 2005

©2000-2005 Fernando Lopez-Lezcano. All Rights Reserved.
nando@ccrma.stanford.edu