Xref: utzoo comp.sys.mac.hypercard:1326 comp.sys.mac.programmer:3432
Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!dan
From: dan@Apple.COM (Dan Allen)
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer
Subject: Re: Reaction Time stacks : can I do this?
Message-ID: <21792@apple.Apple.COM>
Date: 6 Dec 88 23:28:26 GMT
References: <6012@mva.cs.liv.ac.uk>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 19

In article <6012@mva.cs.liv.ac.uk> phil@mva.cs.liv.ac.uk writes:
>1) is it possible to write an XCMD/XFCN to await a keypress and to time
>more accurately than 1/60th of a second, and return this info to a script.

Yes, an XCMD can measure event timing to finer intervals.  You would
need to write some tricky code to use one of the VIA internal
millisecond timers.

>2) One of the reaction timing stacks is supposed to play a sound on a
>background of white noise.  Can an XCMD/XFCN play noise + a simple tone and
>do (1) above?

This may be possible, but I am not sure.  Sound and the VIA timers are
somewhat esoteric stuff that unfortunately is not documented as well as
it could be: lots of munging is required to get things working right.
At least that's what I would have to do...

Dan Allen
Apple