I have two versions of code running. One is a polled I/O mode which supports both MIDI input and output. This works just fine. I have it running in a simple loop-through mode removing the MIDI active sensing bytes from the stream. I also have a version that runs with interrupt driven MIDI input into a buffer and polled MIDI output. I also have it running in a simple loop-through mode and it works well but occasionally I get one bad note. I haven't been able to track it down as I cannot use debug mode at all with interrupts enabled. I'll have to figure out a way to determine what is being sent to the synthesizer and see if I can track it backwards. This took a lot more time than it should of. So many items are not documented well. Thanks to all, especially Grant, who offered suggestions and insight. I still seem to have issues with variables that are bytes. Manipulating these bytes seem to clobber the bytes next to them. It all works fine if I make them all words. Anyone else seen this? I'll keep playing with this but will post the code if someone else wants to start messing with it. Dave
Message
Interrupt driven MIDI working (almost)
2004-04-12 by djbrow54
Attachments
- No local attachments were found for this message.