Midi driver interface
|Reported by:||SF/chuzwuzza||Owned by:|
This patch is my attempt at making the midi code a little cleaner. It contains all the midi initialisation and actual outputting of midi data to the devices in a new struct called MidiDriver If compiled in windows, the windows midi driver will be used. If not in windows, the user is able to select between the timidity driver, or the sequencer device driver at run time with the options -t or -s respectively. With the sequencer driver, the linux sequencer device (/dev/sequencer) is used to output midi to either the external midi port, or the internal synth. You can select which one by passing a number to the -s option (eg, -s1 for the internal synth).
NOTE: I am a beginner coder =). I have no doubt that this code probably has glaring bugs, or things that will make you go "why did he do that?". I'm learning c++ here =) Also, I have no idea if this *works* in windows. I have tested it in linux with the timidity driver, and the sequencer driver using an external midi device and an internal synth
please make comments with regards to this patch
Ticket imported from: #484202. Ticket imported from: patches/25.