Article View: comp.sys.atari.st
Article #41241Real Time Programming
From: polivka al 60047
Date: Fri, 23 Feb 1990 18:51
Date: Fri, 23 Feb 1990 18:51
53 lines
2605 bytes
2605 bytes
I want to write a program for the ST that involves acurate timing and
therefore needs access to the internal clock or timers in the ST. I
would like a few suggestions.
In particular, I want to continuously read events comming in via the
midi-in port and note the time at which they were received to a
(user-selectable) accuracy of about 1 to 10 milliseconds.
I will also need to be able send out messages over the midi-out port
by reading them from a file that contains all of the messages to be
sent along with the time at which each message is to be sent out (with
similar timing accuracy).
My questions are:
1. What language/compilers are recommended for doing this sort of thing?
1a. i.e. Do certain compilers provide commands or routines for
easily getting access to Atari's internal clock and/or timers?
1b. How does the efficiency (in terms of memory and CPU utilization)
for such real time routines compare between the various
candidates (particularly in comparison with code compiled with
Personal Pascal or Megamax C)?
2. Does the "Personal Pascal" compiler in particular allow such real
time programming (I already own it and am familiar with it)?
2a. If so, how (what commands/routines need to be used for accessing
the clock and/or timers)?
2b. There is a "clock" command in Personal Pascal but it only has 2
second accuracy to my understanding.
3. Does anyone have any sample source code for this sort of thing that
they'd be willing to share?
Those of you familiar with midi may realize that I am trying to
understand how to write the real time aspects of a "sequencer"
program for the ST.
Thanks,
Al
--
------------------------------------------------------------------------
Al Polivka arpa: apolivka@x102a.ess.harris.com
Mail Stop 102-4858 usenet: uunet!x102a!apolivka
Harris Corporation phone: 407-729-2983
Government Aerospace Systems Div. Bldg: 102 Room: 3433
P.O. Box 94000
Melbourne, FL 32902
------------------------------------------------------------------------
Technical Details
Message-ID:
<APOLIVKA.90Feb23135159@x102a.harris-atd.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!nosc!logicon.arpa!trantor.harris-atd.com!trantor!apolivkaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!nosc!logicon.arpa!trantor.harris-atd.com!trantor!apolivka From: apolivka@x102a.harris-atd.com (polivka al 60047) Newsgroups: comp.sys.atari.st Subject: Real Time Programming Message-ID: <APOLIVKA.90Feb23135159@x102a.harris-atd.com> Date: 23 Feb 90 18:51:59 GMT Sender: news@trantor.harris-atd.com Organization: Harris Gov't Aerospace Systems Division Lines: 53