Description Usage Arguments Examples
Takes a hexadecimal MIDI sequence and writes it to the harddrive.
1 | write_midi(midi_hex, path)
|
midi_hex |
This is a hexadecimal string, output from the create_midi function. |
path |
The name of the file. |
1 2 3 4 | # Saves a MIDI sequence as a .mid file called example_midi.mid
drum_machine(hh = 1:16, kick = seq(1, 16, by = 4), snare = c(5, 13)) %>%
create_midi() %>% write_midi(., "example_midi.mid")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.