home *** CD-ROM | disk | FTP | other *** search
- Path: cs.vu.nl!sun4nl!xs4all!marketgraph!rvg
- From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
- Subject: Re: MIDI + C + AMIGA ??
- Message-ID: <3115obf60.alamito@marketgraph.xs4all.nl>
- Date: Thu, 1 Feb 96 14:21:49 CET
- References: <4eh5vv$7e7@bright.ecs.soton.ac.uk> <4ell2i$t35@sullivan.ucc.hull.ac.uk>
- Reply-To: rvg@marketgraph.xs4all.nl
- X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
-
- In <4ell2i$t35@sullivan.ucc.hull.ac.uk> "J.E.Hollingsworth"
- <j.e.hollingsworth@computer-science.hull.ac.uk> wrote:
-
- >ars94r@ecs.soton.ac.uk (Andrew Smith) wrote:
- >
- >>Hi, I'm trying to get a start writing MIDI programs for my amiga 500, and
- >>was wondering if anyone has written (or knows of anyone who has written)
- >>code to implement calling midi events from C. I have heard of Bill Bartons
- >>midi library but can't get that to work with SAS/Lattice C (don't know
- >>why!). I'm prepared to switch compiler if it means getting access to a
- >>ready made set of routines. If anyone knows what packages etc. are needed
- >>(either commercial or on the net) then I'd be glad to hear from you!!
- >
- >I had problems programming MIDI using SAS C as it didn't seem to wait
- >for MIDI messages to finish being sent before continuing.
-
- Probably did a BeginIO() instead of a DoIO(). If so, you could do a WaitIO(),
- which returns when the bytes have been sent. Besides, why would you.
-
- > I haven't tried
- >using the midi.library yet, but I'm currently programming a complex MIDI
- >program in E and have had no problems.
- >
- >Its dead easy: filehandle:=Open('SER:',OLDFILE)
- > Out(filehandle,byte)
- > .........
- > Close(filehandle)
- > where byte would be a single byte of the MIDI message.
-
- Don't forget to set the port prefs to MIDI speed (31250). And this works for
- both in & output? Better to use serial.device directly; much more flexible.
-
- >
- >Hope this helps,
- >
- > James.
- >
-
- --
- Ruud van Gaal
- MarketGraph Visual Automation
- E-Mail : rvg@marketgraph.xs4all.nl
- DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- "...Works fascinates me. I could sit and watch it for hours..."
-
-