🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #6551

Re: MIDI Help

#6551
From: Mark O'Bryan
Date: Tue, 05 Dec 1989 18:55
36 lines
2100 bytes
In article <8911270801.AA22825@ucbvax.Berkeley.EDU>, AD0834@ALBNYVMS.BITNET writes:
> 
>  I am trying to write a patch librarian for a 520STFM and a Roland D-10
> keyboard. I am having problems because the input buffer on the ST isn't
> large enough to hold the 256 byte blocks that the D-10 sends, and
> unfortunately, I don't seem to be able to write a program which will
> snag data from the buffer fast enough to prevent it overflowing.
> 
> Basically, my problem is this: I need to change the size of the MIDI
> input buffer on the ST from the default 128 bytes to 256 (or more)
> bytes. Does anyone know how to do this?!? Better yet, does anyone know
> of PD MIDI librarians?

A call to the XBios routine IoRec for device 2 (MIDI) will return a
pointer to the parameter block that contains all the information which
controls the buffering of input data.  The first item is a long pointer
to the input buffer.  So you set up your own area, then redirect the
input there by resetting that pointer.  This is followed by a buffer
size word, which you need to set, then a pair of head and tail indices.
Setting them to the same value will 'empty' the input buffer.

When you're all done, you'll want to put things back the way they
were, before your program exits.  Otherwise, you'll probably have a
nasty crash.

The above is from memory.  If you need details, I can look up the
specifics.

As for PD MIDI librarians, there are things like STMIDIEX, but they
won't be useful with Roland gear due to their need for handshaking
and timing constraints.

-- 
Mark T. O'Bryan                 Internet:  obryan@gumby.cc.wmich.edu
Western Michigan University
Kalamazoo, MI  49008
Technical Details
Message-ID: <924@gumby.cc.wmich.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!shadooby!gumby!obryan
References: <8911270801.AA22825@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!shadooby!gumby!obryan
From: obryan@gumby.cc.wmich.edu (Mark O'Bryan)
Newsgroups: comp.sys.atari.st
Subject: Re: MIDI Help
Message-ID: <924@gumby.cc.wmich.edu>
Date: 5 Dec 89 18:55:22 GMT
References: <8911270801.AA22825@ucbvax.Berkeley.EDU>
Organization: Western Michigan University, Kalamazoo, MI
Lines: 36