home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2574 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

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