[comp.sys.mac.programmer] DA/Application communication

dce@Solbourne.COM (David Elliott) (05/06/89)

I have a MIDI sequencing application called Vision.  One of the
features it has is the ability to store MIDI System Exclusive data, and
this data can be taken as text from the clipboard.

What I am planning to do is to create some instrument editors and
librarians as desk accessories, and instead of having them talk MIDI
(at least not until the MIDI Manager is available), they would simply
talk to Vision via the clipboard.

In addition, I would like to write a single application that would
talk to the MIDI interface.  It would have an input window attached
to the MIDI OUT port, and an output window attached to the MIDI IN
port.  Anything placed in the input window (either entered directly
or pasted) would be interpreted and sent to MIDI OUT.

This all seems fairly straightforward, but I'd like to be able
to have a DA send data to the application without having to
make the DA inactive and pasting into the application window.
That is, I'd like to be able to have a button for "Send", which
would result in my application getting the data immediately and
sending it to MIDI OUT.

Is this feasible?  Can I put an application in a loop and have
it look for new data in the clipboard, or do I need to have a
special type of communication link?

-- 
David Elliott		dce@Solbourne.COM
			...!{boulder,nbires,sun}!stan!dce