appendSample | R Documentation |
Append two or more Sample objects or wav files.
appendSample(s1, s2, ...)
s1 , s2 , ... |
Sample objects, or the names of wav files. |
If the samples have different sample parameters (bits, rate and channels), the command fitSampleParameters
is called to adjust them before the samples are appended.
a Sample object with the samples played one after the other.
Author: Matthias Heymann [aut], Stefan Langenberg [cre] (<https://orcid.org/0000-0001-5817-5469>)
Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>
cutSampleEnds
to avoid cracks between two appended samples,
sum.Sample
for playing several samples at a time.
## Not run:
s1 <- Sine(440,1)
s2 <- Sine(550,1)
s3 <- Sine(660,1)
s4 <- Sine(880,1)
play(appendSample(s1,s2,s3,s4))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.