Article View: comp.sys.atari.st
Article #32716Re: MIDI problem
From: Leo de Wit
Date: Sat, 04 Jun 1988 13:49
Date: Sat, 04 Jun 1988 13:49
18 lines
1387 bytes
1387 bytes
In article <14252@pbhya.PacBell.COM> gdr@pbhya.PacBell.COM (Guy Ridley) writes: >A program I wrote creates a string of 256 notes and sends them out the MIDI >port one at a time. The problem is, it never gets through the whole string. >I don't think it's a software error because: 1) It never stops at the same >place, sometimes it gets through 150 notes, sometimes only 5, and 2) there is >no random function in the program that could explain this. > [rest of message deleted] Which method do you use writing the notes to the MIDI port? It seems you're not using the standard way, because you explicitly say: one at a time. The xbios call, Midiws (xbios 12), lets you write a complete string to the MIDI port. Note that's not a C-style string: you must supply a count (number of bytes to send minus one; a 2-byte integer) and the start address. The random function you spoke of could be the value of the start pointer on the stack if you thought this function had only one parameter X-). Hope this helps? Leo (the high C).
Technical Details
Message-ID:
<492@philmds.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!philmds!leoReferences:
<14252@pbhya.PacBell.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.sys.atari.st Subject: Re: MIDI problem Message-ID: <492@philmds.UUCP> Date: 4 Jun 88 13:49:29 GMT References: <14252@pbhya.PacBell.COM> Reply-To: leo@philmds.UUCP (L.J.M. de Wit) Organization: Philips I&E DTS Eindhoven Lines: 18