clip_wave_single | R Documentation |
Clip and copy a single wave files to a given length. See clip_wave()
for
processing multiple files.
clip_wave_single(
path_in,
path_out,
clip_length,
start_time = 0,
wave_length = NULL,
overwrite = FALSE
)
path_in |
Character. Path to the wave file to clip. |
path_out |
Character. Path to copy the new clipped wave file to. |
clip_length |
Numeric. Length of new clip in seconds. |
start_time |
Numeric. Time in seconds where new clip should start. Default 0. |
wave_length |
Numeric. Length of the clipped wave file in seconds (if
|
overwrite |
Logical. Whether to overwrite existing files when creating
new clipped wave files. Default ( |
TRUE if successful
# Create test wave file
f <- temp_wavs(1)
# Clip file and check it out
clip_wave_single(f, "new_file.wav", clip_length = 1)
tuneR::readWave("new_file.wav")
unlink("new_file.wav")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.