Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Have you tried <a href="http://cran.r-project.org/web/packages/sound/sound.pdf" rel="noreferrer"><code>appendSample(s1, s2, ...)</code></a> with <a href="http://cran.r-project.org/web/packages/sound/sound.pdf" rel="noreferrer"><code>saveSample(s, filename, overwrite)</code></a> in <a href="http://cran.r-project.org/web/packages/sound/index.html" rel="noreferrer">sound</a> package (CRAN) ?</p> <p><strong>appendSample:</strong></p> <pre>Description: Append two or more Sample objects or wav files. Usage: appendSample(s1, s2, ...) Arguments: s1, s2, ... Sample objects, or the names of wav files. Details: If the samples have different sample parameters (bits, rate and channels), the command fitSampleParameters is called to adjust them before the sample are appended. Value: a Sample object with the samples played one after the other.</pre> <p><strong>saveSample:</strong></p> <pre>Description: Save a Sample object to disk as a wav file. Usage: saveSample(s, filename, overwrite=FALSE) Arguments: s a Sample object. filename a string giving the path and the name of the destination file. overwrite logical. If FALSE and filename already exists, an error will be reported. Otherwise the old file will be deleted.</pre> <hr> <p>Example commands:</p> <pre><code>&gt; sample = appendSample('/home/grzegorz/file1.wav', '/home/grzegorz/file2.wav') &gt; saveSample(sample, '/home/grzegorz/output.wav', overwrite=FALSE) </code></pre> <p>I downloaded two <a href="http://freewavesamples.com/" rel="noreferrer">sample wav</a> files and it works (wavs are concatenated). Of course you need to install sound library to do that.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload