hi,
I'm a bit confused about the asynchronousity aspect of SND on Windows
2000, Matlab 5.3.
It seems that a call to 'getSecs' will not execute while a sound is
playing. However, a key press will be recorded using something like
'getChar'. For example, this code:
beep = makebeep(1500, 1);
t1 = getSecs;
snd('Play', beep);
g = getChar
t2 = getSecs;
RT = t2-t1
indicates the same RT regardless of the time the key was pressed at
(assuming the key press is in the duration of the beep), although it
still records which key was pressed. Any help on this would be much
appreciated.
Incidently, the duration parameter of MakeBeep is not in seconds (as
help file says), and the 'Open' and 'Quiet' options of SND do not
work.
Thanks - Lewis Bott
I'm a bit confused about the asynchronousity aspect of SND on Windows
2000, Matlab 5.3.
It seems that a call to 'getSecs' will not execute while a sound is
playing. However, a key press will be recorded using something like
'getChar'. For example, this code:
beep = makebeep(1500, 1);
t1 = getSecs;
snd('Play', beep);
g = getChar
t2 = getSecs;
RT = t2-t1
indicates the same RT regardless of the time the key was pressed at
(assuming the key press is in the duration of the beep), although it
still records which key was pressed. Any help on this would be much
appreciated.
Incidently, the duration parameter of MakeBeep is not in seconds (as
help file says), and the 'Open' and 'Quiet' options of SND do not
work.
Thanks - Lewis Bott