powered by
Write each sound sample of the instrument as a separate .wav or .mp3 file.
write.instrument(inst, dir = tempdir(), fmt = "wav")
nothing - writing function.
Instrument object.
String, directory where files should be written.
String, 'wav' or 'mp3'.
# Create an instrument drumset <- instrument(samples=list(kick,snare,hiHat),notes=c('boom','tat','cheet')) # Write to files (one per element) write.instrument(drumset)
Run the code above in your browser using DataLab