Previous Up Next

5.24.2  Reading WAV files from disk : readwav

readwav takes a string containing the name of a WAV file as its only argument and loads the file. The return value is an audio clip object.

For example, assume that the file example.wav is stored in the directory sounds. Input:

s:=readwav("/path/to/sounds/example.wav"):; playsnd(s)

Previous Up Next