Lecture 1
Sound Perception and Analysis
Lecture Slides
A series of gif images of the lecture slides... (sorry, only accesible from within Stanford University)
Assignment
Using the sample code for the "Case of the Missing Fundamental", use CLM to create a simple melody of your choice with just higher harmonics (no fundamental). Hint: there is a function available to translate from pitch names or midi numbers to frequency in hertz... try evaluating "(pitch 'a4)" in the lisp listener... Browse through the CLM Manual.
Here are the examples: a CLM instrument that can be used to generate a sinewave of arbitrary frequency and amplitude (sine.lisp) and the file that was used to create the missing fundamental examples (missing-fundamental.lisp).
To recreate the example:
- Fire up the Lisp application (/LocalApps/Lisp.app)
- Save the files to your home directory (if you are using OmniWeb use the "Save As" command in the "Document" menu)
- Compile the instrument file (sine.lisp) by typing (compile-file "sine.lisp") in the Lisp interpreter
- Load the compiled instrument by typing (load "sine") in the Lisp interpreter
- Create the soundfile by copying the appropriate lines of lisp code from the "missing-fundamental" example into the lisp interpreter
References
- Andy Moorer: How a computer does music.