Yahoo Groups archive

SynthModules

Index last updated: 2026-04-28 23:14 UTC

Thread

Interrupt driven MIDI working (almost)

Interrupt driven MIDI working (almost)

2004-04-12 by djbrow54

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

Re: Interrupt driven MIDI working (almost)

2004-04-12 by grantrichter2001

Hi Dave,

Congratulations!

Please do pass the code along. The whole idea behind the PSIM
(and the reason I agreed to participate in developement) is the 
public domain code to run on it.

If I make any tweaks or change it into something else, I will of 
course post it back to everyone.

Gary Chang had the idea of using the PSIM with a MIDI 
sequencer as a control voltage recorder/playback unit. What 
Subotnick called the "ghost electronics". If it works out, I'll pass it 
along.

--- In SynthModules@yahoogroups.com, "djbrow54" 
<davebr@e...> wrote:
> 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
Show quoted textHide quoted text
> 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

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.