15.1.14 Preparing digital sound data: soundsec
The soundsec command prepares sound data in the form of a vector.
-
soundsec takes one mandatory argument and one
optional argument:
-
d, a real number (the duration).
- Optionally, f, a real number (the sampling frequency, by
default 44100).
- soundsec(d ⟨ f⟩) returns sound data
with duration d seconds, and with sampling frequency f. The
sound data is returned as a vector, whose ith element is the
time corresponding to index i.
Examples.