I'm writing a sequencer that will read the input of a guitar hero controller (read as a joystick using a USB adapter) and output the corresponding notes to the ALSA MIDI system. I've gotten the Input to work just fine, but am having trouble finding documentation on MIDI output. Basically I need to be able to call two things:

seq_out( n_note );
n_note should be a MIDI number, such as 60 and should remain on until seq_off() is called.
Any help is appreciated.