View source: R/class_instrument.R
instrument | R Documentation |
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)))
samples |
list of sound samples |
notes |
string vector, name given to each sample |
An object of class 'Instrument'.
drumset <- instrument(samples=list(kick,snare,hiHat),notes=c('boom','tat','cheet'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.