Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!daffy!cat27.cs.wisc.edu!carter From: carter@cat27.cs.wisc.edu (Gregory Carter) Newsgroups: comp.sys.atari.st.tech Subject: Re: MIDI input problems (C or assembler programming) Message-ID: <1991Feb6.151810.986@daffy.cs.wisc.edu> Date: 6 Feb 91 15:18:10 GMT References: <3901@ryn.mro4.dec.com> Sender: news@daffy.cs.wisc.edu (The News) Organization: U of Wisconsin CS Dept Lines: 30 miskinis@aisg.enet.dec.com (John Miskinis) Writes: ... This method allows application freedom, as MIDI input will happen in the background. BUT I STILL LOSE DATA WHEN I MOVE THE MOUSE, AND VERY INFREQUENTLY WHEN I DON'T. Does anyone know how to get around this? Someone must, since there seems to be a lot of sequencing packages available for the ST. I've noticed that some of them mess up, but some seem to be VERY stable. ------------------------------------------------------------------------------ Well what do you know, finally someone asks a question up my alley! John, I wrote some networking software for the midi port and ran into the same problem, the Bcon calls are too slow to retrieve information fast enough(In TOS 1.0 they are anyway, TOS 1.4/1.6 its a little better) from the input buffer. Solution? In increase your buffer size to about 4K, for really TAXING operations, increase to 16K. I use an 8K buffer and don't have any problems at all. Real time sequencing might be a different problem though. An example in Mark Williams C that shows you how to do this is in there, but it is used with the aux: port instead of the midi: port. --Good luck, --Gregory ------------------------------------------------------------------------------ OK OK OK, I know I am suppose to be at class right now, but gosh I love reading news OK. ------------------------------------------------------------------------------