28.2.6 Audio clip properties
The about,
channels,
bit_depth,
samplerate and
duration commands
find properties of an audio clip.
-
about, channels, bit_depth, samplerate and
duration each take one argument:
A, an audio clip.
- about(A) prints the information pertinent to A
(bit depth, number of channels, sample rate, length in samples, duration in seconds,
the peak dB level, associated file name) and returns A.
- channels(A) returns the number of channels in A.
- bit_depth(A) returns the number of bits reserved
for each sample value (8, 16, or 24) in A.
- samplerate(A) returns the number of samples per
second in A.
- length(A) and size(A) both return the
length of A in samples.
- duration(A) returns the duration of A in seconds.