appendSample: Append Sample Objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sound.R

Description

Append two or more Sample objects or wav files.

Usage

1
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 samples are appended.

Value

a Sample object with the samples played one after the other.

Author(s)

Author: Matthias Heymann <mail@MatthiasHeymann.de>

Maintainer: Stefan Langenberg <langenberg@uni-bonn.de>

See Also

cutSampleEnds to avoid cracks between two appended samples,

sum.Sample for playing several samples at a time.

Examples

1
2
3
4
5
6
7
8
## 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)

sound documentation built on May 2, 2019, 2:10 a.m.

Related to appendSample in sound...