First you will need to get familiar with the basics of Common Lisp, start Jack and set up Qsynth with the default soundfont (you can use other soundfonts if you like), open Portmidi from the Common Lisp environment and send scores to the synth using functions that include the "process" Common Music macro.
/usr/share/soundfonts/FluidR3_GM.SF2