Help file for smf2: On a linux computer, you can type the command: wget http://museinfo.sapp.org/download/bin/linux-static/smf2 to save the file to your computer. You will probably also have to make the program executable with the following command: chmod 0755 smf2 ========================================================================== Here are the basic options for the smf2 command-line program: -o file.mid == save MIDI output into file.mid -C == don't store Humdrum comments in MIDI file as lyrics. -T == don't store spine data in MIDI file as lyrics. -0 == create a MIDI type 0 file (type 1 by default). --plus == store accidentals in bottom two bits of note volume. -v 64 == specify the default note velocity (1-127). -t 1.0 == tempo scaling (1.0 = original, 2.0 = twice as fast). -I == do not add instrument information into MIDI file. -c 0 == specify the MIDI channel (0-15). Here is a sample kern melody (Twinkle, Twinkle, Little Star): **kern *MM120 *M4/4 4c 4c 4g 4g =2 4a 4a 2g =3 4f 4f 4e 4e =4 4d 4d 2c *- The interpretation field "*MM120" means that the tempo is 120 quarter notes ber minute. You can change the tempo by changing this value, or by scaling the tempo with the -t option. To convert this file into MIDI, run the smf2 command like this: smf2 twinkle.krn -o twinkle.mid To minimize extra information being converted into lyrics in the MIDI file, use the -C and -T option: smf2 twinkle.krn -CT -o twinkle.mid To save as a type 0 (single track) midifile, use the -0 or -O option: smf2 twinkle.krn -CTO -o twinkle.mid By default, if you do not give the output filename with the -o option, then the MIDI contents will be printed in ASCII format. Here is the ASCII version of the MIDI file output for twinkle.krn: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Number of Tracks: 2 Time method: 1 (Absolute timing) Divisions per Quarter Note: 120 Track 0 +++++++++++++++++++++++++++++++++++++++++++++++++++ 0 0xff 81 3 7 161 32 10 0xff 81 3 7 161 32 1920 0xff 47 0 Track 1 +++++++++++++++++++++++++++++++++++++++++++++++++++ 0 0x90 60 64 120 0x80 60 64 120 0x90 60 64 240 0x80 60 64 240 0x90 67 64 360 0x80 67 64 360 0x90 67 64 480 0x80 67 64 480 0x90 69 64 600 0x80 69 64 600 0x90 69 64 720 0x80 69 64 720 0x90 67 64 960 0x80 67 64 960 0x90 65 64 1080 0x80 65 64 1080 0x90 65 64 1200 0x80 65 64 1200 0x90 64 64 1320 0x80 64 64 1320 0x90 64 64 1440 0x80 64 64 1440 0x90 62 64 1560 0x80 62 64 1560 0x90 62 64 1680 0x80 62 64 1680 0x90 60 64 1920 0x80 60 64 1920 0xff 47 0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++