Previous Up Next

15.1.2  Reading wav files from disk: readwav

The readwav command loads a wav file.


Example.
(Assuming that the file example.wav is stored in the directory sounds)
Input:

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

You can now play the audio clip object s:
Input:

playsnd(s)

Output:
The sound of the audio file example.wav.


Previous Up Next