split_midi_frame | R Documentation |
Unnested midi frame with time data from tab_measures()
is split into 3 parts:
df_meta: Consisting of all the meta events in the midi data.
df_not_notes: Containing all midi events that are not meta
and not note_on
or note_off
.
df_notes_wide: All note_on
or note_off
events and furthermore transformed to wide format by pivot_note_wide
.
split_midi_frame(dfm)
dfm |
result of |
df_meta, df_not_notes & df_notes_wide
Other Split/merge meta/notes/non-note events:
merge_midi_frames()
## Not run:
mid_file_str <- system.file("extdata", "test_midi_file.mid", package = "pyramidi")
mido_mid_file <- mido$MidiFile(mid_file_str)
dfc <- miditapyr$frame_midi(mido_mid_file)
ticks_per_beat = mido_mid_file$ticks_per_beat
df <- dfc %>%
miditapyr$unnest_midi()
## End(Not run)
## Not run:
dfm <- tab_measures(df, ticks_per_beat)
split_midi_frame(dfm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.