Description Usage Arguments Value Examples
Takes sequence produced by drum_machine function and shifts notes in this sequence.
1 2 | drum_shifter(seq_arg = NULL, shift = NULL, prob = 1,
position = "all", track_apply = NULL, ...)
|
seq_arg |
The sequence to be modified. This should be the output of the drum_machine function. |
shift |
The note to shift to. This should be a capital letter for the note and a number for the octave (e.g "C3"). |
prob |
(default = 1) The probability a note in the sequence will be shifted |
position |
(default = "all") The position of items in the sequence to be shifted |
track_apply |
An integer or vector of integers indicating which tracks (hh, kick, snare) to apply the shift to. |
A modified MIDI sequence to be entered into the create_midi function.
1 2 3 4 | # Shifts notes in the first track (hh, or hi-hat) of drum sequence to "G#1" with .5 probability.
drum_machine(hh = 1:16, kick = seq(1, 16, by = 4), snare = c(5, 13)) %>%
drum_shifter(., shift = "G#1", prob = .5, track_apply = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.