powered by
Creates a new instance of an 'instrument' object. An instrument is a named list of sound samples (all with the same sampling rate).
instrument(samples, notes = as.character(1:length(samples)))
An object of class 'Instrument'.
list of sound samples
string vector, name given to each sample
drumset <- instrument(samples=list(kick,snare,hiHat),notes=c('boom','tat','cheet'))
Run the code above in your browser using DataLab