JMSL Tutorial: JScore
JMSL Score instruments, part 2

Midi

You do not need to write any Java code to play MIDI from JMSL Score. You can create a Midi instrument directly from the JMSL Score Orchestra Menu.  Then edit, change its name, and set its midi program change and midi channel values to the values you want.

However, since this is a programmer's tutorial, we will use the JMSL Score API to create a new Orchestra, add a MidiScoreInstrument to it, and add some notes to a staff. 
 

Source for this example is here
 


  (C)  Nick Didkovsky and Phil Burk, All Rights Reserved
  JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.