Re: [SynthModules] MIDI input and output code working!
2004-04-13 by Andrew Scheidler
"PSIM's limits" = oxymoron of the year Also, I agree with John's assesment of your extreme rockingness! Andrew >>> jmahoney@gate.net 04/12/04 11:19 PM >>> Dave, First of all, you rock! Nice work. (Never mind that I was soon going to post something like, "MIDI in *would* be nice but I'll settle for MIDI out -- if it includes MIDI Clock out." ;-) Second, a really dumb question: Where'd your MIDI interface come from? -- john P.S. Brice, the PSIM's limits keep expanding!
Show quoted textHide quoted text
----- Original Message ----- From: "djbrow54" <davebr@earthlink.net> To: <SynthModules@yahoogroups.com> Sent: Monday, April 12, 2004 11:45 PM Subject: [SynthModules] MIDI input and output code working! > It's working!!! > > I was bound and determined to figure out the occasional glitches with > the interrupt-driven MIDI input. I'm used to assembly language > stack-based machines. I was using the same variables in the > interrupt service routine so I had problems with stepping on the > variables in the main code during an interrupt. I had to change to > local variables where possible in the interrupt service routine and > disable interrupts in the main code when checking or manipulating > these variables. This also corrects the issue I was having with byte > variables. For some reason setting the variables to words greatly > reduced the frequency of collision. > > I merged the polled and interrupt modes with a compile option. You > can compile for either polled MIDI input or interrupt MIDI input. > The MIDI output is always polled. > > I'll upload the code later tonight. > > Dave > Be sure to check out the primary Web site at: http://www.SynthModules.com Yahoo! Groups Links