create_midi: Create MIDI sequences.

Description Usage Arguments Value Examples

View source: R/create_midi.R

Description

Converts musical sequences into hexadecimal MIDI sequences.

Usage

1
create_midi(notes_arg, tempo = 120)

Arguments

notes_arg

The sequence to be turned into hexadecimal MIDI. This is the output of the drum_machine function or a modified drum sequence.

Value

A hexadecimal MIDI sequence to be entered into the write_midi function.

Examples

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)) %>%
create_midi()

datadiarist/midiR documentation built on April 1, 2020, 4:29 a.m.