GetChar, Snd

Chien-Chung,

David Brainard forwarded to me your message reporting a new 'GetChar'
bug which also included a question about 'playsnd'.

I'm currently at work on 'GetChar'. In addition to the bug which you
report, there is also the problem that in earlier versions of Matlab
'GetChar' misses some keystrokes, apparently because Matlab steals
keystrokes form the Windows event queue. Because gathering subject
responses is fundamental to psychophysics experiments, fixing both of
these bugs is a priority.

As for "playsnd", the new function "snd" supersedes the earlier
psychtoolbox function, which in fact was named "SndPlay". Snd is
provided for both Mac and Windows versions of the Psychtoolbox,
though there are differences between these implementations, see "help
snd" in the current release of the Psychtoolbox (version 2.44) for the
most recent information.

I have just spent a few minutes comparing the Snd function on both
platforms. According to the help file, to play stereo sounds pass
waveforms as 2xN matrix. The Mac version acts accordingly. However,
the PC version wants an Nx2 matrix.

Because maybe others have an interest in these topics, I am copying
this message to the Psychtoolbox forum.

Allen




>Date: Mon, 2 Apr 2001 14:28:02 -0700 (PDT)
>From: Chien-Chung Chen <ppanthers@...>
>Subject: PsychToolbox bug report
>To: David Brainard <brainard@...>
>
>David,
>
>'getchar' is not compatible with MATLAB 6.0 (Release
>12). It hangs MATLAB. The 'screen' seems working fine
>so far. BTW. Is there any progress on "playsound" for
>Windows? I wrote a small utility to work around the
>problem, but I would be happy that it is in the
>toolbox so that I can make sure my codes work the same
>under Windows or Mac.
>
To avoid any possible confusion, I should make clear that the bugs in GetChar
mentioned in my earlier message are only in the Windows version of GetChar, not
the Mac version.

Allen


"Allen W. Ingling" wrote:

> Chien-Chung,
>
> David Brainard forwarded to me your message reporting a new 'GetChar'
> bug which also included a question about 'playsnd'.
>
> I'm currently at work on 'GetChar'. In addition to the bug which you
> report, there is also the problem that in earlier versions of Matlab
> 'GetChar' misses some keystrokes, apparently because Matlab steals
> keystrokes form the Windows event queue. Because gathering subject
> responses is fundamental to psychophysics experiments, fixing both of
> these bugs is a priority.
>
> As for "playsnd", the new function "snd" supersedes the earlier
> psychtoolbox function, which in fact was named "SndPlay". Snd is
> provided for both Mac and Windows versions of the Psychtoolbox,
> though there are differences between these implementations, see "help
> snd" in the current release of the Psychtoolbox (version 2.44) for the
> most recent information.
>
> I have just spent a few minutes comparing the Snd function on both
> platforms. According to the help file, to play stereo sounds pass
> waveforms as 2xN matrix. The Mac version acts accordingly. However,
> the PC version wants an Nx2 matrix.
>
> Because maybe others have an interest in these topics, I am copying
> this message to the Psychtoolbox forum.
>
> Allen
>
> >Date: Mon, 2 Apr 2001 14:28:02 -0700 (PDT)
> >From: Chien-Chung Chen <ppanthers@...>
> >Subject: PsychToolbox bug report
> >To: David Brainard <brainard@...>
> >
> >David,
> >
> >'getchar' is not compatible with MATLAB 6.0 (Release
> >12). It hangs MATLAB. The 'screen' seems working fine
> >so far. BTW. Is there any progress on "playsound" for
> >Windows? I wrote a small utility to work around the
> >problem, but I would be happy that it is in the
> >toolbox so that I can make sure my codes work the same
> >under Windows or Mac.
> >
>
>
> To Post a message, send it to: psychtoolbox@...
>
> To Unsubscribe, send a blank message to: psychtoolbox-unsubscribe@...
>
> psychtoolbox web site: http://color.psych.ucsb.edu/psychtoolbox/
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/