'{$STAMP BS2}
' Simple MIDI out: pin 9
HIGH 15 ' power LED on
' declare variables:

main:

SEROUT 9, 12, [144, 69, 64] 'note on middle c medium velocity
PAUSE 500
SEROUT 9, 12, [144, 69, 0] ' note on middle c 0 velocity (same as note off)

GOTO main