beat {drumr} | R Documentation |
Play a drum sound
Description
beat
plays a drum beat.
Usage
beat(drum = "snare", kit = "acoustic", expr = NULL)
Arguments
drum |
character string or number specifying which drum is to be played by specifying one of the built in sounds. The default is "snare". Every kit includes at least four pieces:
If |
kit |
character string specifying which kit is to be used. The default is "acoustic." Possible kits are:
If |
expr |
An optional expression to be executed before the sound. |
Examples
# Play a "snare" sound from the "acoustic" kit
beat()
# Play a bass sound from the hiphop kit.
beat(drum="kick", kit="hiphop")
[Package drumr version 0.1.0 Index]