CSC354: Spring, 2007, Lab1

  1. Try finding Winsound in the Programs folder. Copy it into your H: drive, and then it will be easier to use.
  2. Note that the Toots Tutorial, by Dr. Richard Boulanger, is available at This link and it contains all of the toot .orc and .sco files.
  3. You can save the files below on your network H: drive
  4. Download or cut and paste the toot01.orc and toot01.orc orchestra and score files.
    Open Csound (winsound).
    Use the O and S buttons to browse for the orc and sco files.
    Choose a filename for the output. Then hit render.
  5. Modify the f statement in the toot01.sco file to include .5 and .25 on two additional harmonics (integer multiples of the fundamental frequency) of the sine wave. Note: Use wordpad for this, not word! Also, do save-as and put the name in quotes: "toot01.sco" or else wordpad will add a .txt extension to the file name.
  6. Go back into cSound and generate the resulting file. You can add more harmonics.
  7. Place the file in a web page using hwtemplate.html Place this template in your public_html directory of your computer science account.

    Important! After you copy the hwtemplate.html file into your public_html, execute the chmod command:
    chmod a+r hwtemplate.html
    Also, you will need to do this for every file you place in this directory. Test your web files out in a web browser completely to make sure they are accessible.
  8. Download toot02.sco and toot02.orc.
    Toot02 shows how to pass parameters, called p-fields.

    Add another instrument that uses more harmonics in the oscillator. Add some notes to the score that uses this instrument.
  9. Place the resulting rendered sound file in your web page.
  10. After we talk about toot01 and toot02, download toot03.sco and toot03.orc.
    to experiment with envelopes (to shape the amplitude of the sound).
  11. Download toot04.sco and toot04.orc.
    Toots04 shows how to use more than one oscillator. It's important to scale down the output of the oscillators when you add two or more together so the volume does not become too loud.
    1. Change the start times and/or durations to make the notes overlap a little.
    2. Change the pitches so they are in octave 11 instead of 10.
  12. Download toot05.sco and toot05.orc.
    Toots05 shows how to add vibrato by using an oscillator with a controlled delay. The extra oscillator dynamically varies the frequency of the main oscillators to give the vibrato effect. This change in frequencies occurs at the control rate.
    1. Try changing the vibrato freqeuncy (p8 or vbdpt) and listen to what happens.
    2. Add some other notes to the score at different frequencies
  13. Download or cut and paste toot7.orc and toot7.sco (the crossfade example).
    We have two sets of oscillators as before (main frequency with two slightly detuned added in) and these are also affected by vibrato. Then, using another amplitude envelope, we fade from one waveform to the other and back again.
    Furthermore, we change the waveform (using GEN10) so that it is different for each note in the score (first it is sine and sawtooth, second it is square and pulse)
    1. Make the notes last longer so you can hear the crossfading better.
  14. Download or cut and paste toot8.orc and toot8.sco.
    toots08 uses soundin to make a wavetable that is a recording rather than a waveform generated by GEN10. Furthermore, this recording is not oscillated. Rather, reberberation (reverb) affects are added to it, and different `notes' start at different times within the recording.
    You can download hellorcb.aif here.
    1. Add crossfading here between an instrument that uses reverb and one that doesn't. You can uses a different sound file (.aif or .wav) if you want to. You can even use an output file (.wav) from an earlier toot example.