powered by
Append two or more Sample objects or wav files.
appendSample(s1, s2, ...)
a Sample object with the samples played one after the other.
Sample objects, or the names of wav files.
Author: tools:::Rd_package_author("sound")
Maintainer: tools:::Rd_package_maintainer("sound")
If the samples have different sample parameters (bits, rate and channels), the command fitSampleParameters is called to adjust them before the samples are appended.
fitSampleParameters
cutSampleEnds to avoid cracks between two appended samples,
cutSampleEnds
sum.Sample for playing several samples at a time.
sum.Sample
if (FALSE) { s1 <- Sine(440,1) s2 <- Sine(550,1) s3 <- Sine(660,1) s4 <- Sine(880,1) play(appendSample(s1,s2,s3,s4)) }
Run the code above in your browser using DataLab