write.instrument {sequenceR} | R Documentation |
Write an instrument to file
Description
Write each sound sample of the instrument as a separate .wav or .mp3 file.
Usage
write.instrument(inst, dir = tempdir(), fmt = "wav")
Arguments
inst |
Instrument object. |
dir |
String, directory where files should be written. |
fmt |
String, 'wav' or 'mp3'. |
Value
nothing - writing function.
Examples
# Create an instrument
drumset <- instrument(samples=list(kick,snare,hiHat),notes=c('boom','tat','cheet'))
# Write to files (one per element)
write.instrument(drumset)
[Package sequenceR version 1.0.1 Index]