Description Usage Arguments Value Examples
Creates drum sequence as named list. Emulates a 16-step drum sequencer.
1 | drum_machine(..., note_length = NULL, rep = 1)
|
hh |
(optional) Takes numbers from 1 to 16, which represent the hi-hat's positions in a 16-step sequence. |
kick |
(optional) Takes numbers from 1 to 16, which represent the kick's positions in a 16-step sequence. |
snare |
(optional) Takes numbers from 1 to 16, which represent the snare's positions in a 16-step sequence. |
A named list with notes in positions corresponding to the hits. This list has 'seq' as its class attribute, which means that it can be fed into the create_midi function to be converted into a hexadecimal MIDI sequence.
1 2 | drum_machine(hh = 1:16, kick = seq(1,16, by = 4),
snare = c(5, 13))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.