Programming sounds

[From Rick Marken (2002.10.09.1620)]

Bill Powers (2002.10.09.1530 MDT)--

To all programmers and linguists:

I have found that there is an incredibly easy way to play .WAV sound files
using Delphi

This is great! I did download Praat a couple days ago. They have a Mac version
that works great, though I haven't made any recordings. But, being on a Mac, I
guess I will have to try to figure out how to play the WAV files using Java or
possibly Visual Basic.

But it would be even more fun to consult (or kibbitz, it costs you less;-)) on
this research project. I think Bruce Nevin, who has the linguistic and programming
expertise, should take the lead on this one, as you suggest.

Best regards

Rick

···

---
Richard S. Marken, Ph.D.
The RAND Corporation
PO Box 2138
1700 Main Street
Santa Monica, CA 90407-2138
Tel: 310-393-0411 x7971
Fax: 310-451-7018
E-mail: rmarken@rand.org

[From Bill Powers (2002.10.09.1530 MDT)]

To all programmers and linguists:

I have found that there is an incredibly easy way to play .WAV sound files
using Delphi

Using Praat, the phonetics program Bruce Nevin told us about, it's easy to
make voice recordings and then cut and paste them to create any desired
kinds of sound segments. Then when editing is done, the result can be
output to files in several kinds of formats, among them the .WAV format.

In Delphi, playing a .WAV file named 'ding.wav' requires only the following
procedure:

Uses MMSystem { Add this to "uses" list}

Var s: array[0..79] of char;

procedure playding;
begin
  strcopy(s,'ding.wav');
  sndPlaySound(s,0)'
end;

So it would be possible to pre-record a number of sound segments, store
their file names in string variables, and then switch rapidly back and
forth between them with user interaction, in a way similar to Rick Marken's
experiments with hierarchical perception.

Best,

Bill P.