Homework 5:
Find a midi file of your choice (via CCARH archive, web or whatever).
Play it straight with timidity, e.g., the one I tried is called nitefunk.mid
timidity -Os -s 48000 /user/c/cc/220a/scm/stk/midi/nitefunk.mid
(a command line midi sampler , the CCRMA version is not compiled for jack output -- so this plays direct to Alsa soundcard driver)
nitefunk.mid has these instruments playing (General MIDI assignments)
Track name: Clavinet
Track name: SlapBass
Track name: Grand Piano
Track name: Pan Flute
Track name: Orch Hit
Track name: Ooh Choir
Track name: Rock Organ
Track name: Tenor Sax
Track name: SynStrings
Track name: Drums
Track name: Fretless Bass
Track name: Alto Sax
Next, we'll isolate one track from the midi file and convert it to Stk's skini format. I converted the SlapBass (track 2) of this guy to skini by evaluating the file
/user/c/cc/220a/scm/stk/niteFunkStkMandolin.scm
Copy it to your directory and read how it does this -- first it imports midi events, then separates by track and plays one on with an Stk instrument patch.
Stick with the (default) Mandolin or choose one of the patches below and try this with yours. Look at two files that are now in the zap directory.
/zap/StkInsList.h
/zap/StkBand.h
The first of the two gives a list of available Stk instrument patches, the second one is the list of patches being compiled into your synthesizer.
Stay tuned for Part 2... this will describe the rest of the assignment and what to turn in.