Visualizing waveforms : plotwav

### 5.26.9 Visualizing waveforms : plotwav

plotwav accepts an audio clip as its first argument and optionally a range in form range=[m,n] or range=a..b as its second argument, where m, n are integers and a, b are real numbers. The command displays the waveform on the specified range (by default in its entirety). It is assumed that the values m, n are in sample units and a, b in seconds.

For example, assume that the directory sounds contains two files, example1.wav (a man speaking, stereo) and example2.wav (guitar playing, mono). Input :

clip1:=readwav("/path/to/sounds/example1.wav"):;
plotwav(clip1)

Output :

Input :

clip2:=readwav("/path/to/sounds/example2.wav"):;
plotwav(clip2)

Output :

Input :

plotwav(clip2,range=0.5..0.52)

Output :