save_wav | R Documentation |
Saves object to a wav file by converting to the wave
representation
and then writing to a wav file.
save_wav(
x,
file,
amplitude = 0.1,
bit_depth = 16L,
length_sec = 1,
fade_length = 0.1,
rise_length = 0.1,
end_pad = 0.05,
...
)
x |
Object to save; currently only individual chords are supported.
Chords are coerced to a |
file |
(Character scalar) Output file. |
amplitude |
(Numeric scalar) The wave is multiplied by this number before exporting. The resulting wave should fall completely within the range [-1, 1]. |
bit_depth |
(Integer scalar) The bit depth of the exported audio. |
length_sec |
(Numeric scalar) Length of the output wave, in seconds. |
fade_length |
(Numeric scalar) Chord fade-out time (seconds). |
rise_length |
(Numeric scalar) Chord fade-in time (seconds). |
end_pad |
(Numeric scalar) Duration of silence (seconds) appended to the end of the audio file, used to avoid clicks and other artifacts. |
... |
Arguments passed on to
|
save_wav_sox
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.