Skip to content

02 Next steps

Gene Boggs edited this page Apr 11, 2025 · 18 revisions

Playing a MIDI file

> timidity -Od ex-01-04.pl.mid
> timidity -Od -c ~/timidity.cfg ex-01-04.pl.mid
> cat ~/timidity.cfg
# https://timtechsoftware.com/general-midi-soundfont-download/
#soundfont /Users/you/Music/GeneralUser_GS_SoftSynth_v144.sf2
# https://member.keymusician.com/Member/FluidR3_GM/index.html
soundfont /Users/you/Music/FluidR3_GM.sf2
  • On the command-line with fluidsynth (on my mac):
> fluidsynth -a coreaudio -m coremidi -g 2.0 ~/Music/soundfont/FluidR3_GM.sf2 ex-01-04.pl.mid

Using subroutines for tracks, and playing them simultaneously

Using filthy globals: Example 1

With proper variable passing: Example 2

Clone this wiki locally