Skip to contents

Intended for use in a dplyr style pipe. Adds a track_name message to a meta header.

Usage

add_meta_track_name(
  meta_df,
  i_track = 0,
  type = "track_name",
  name = "",
  time = 0,
  ...
)

Arguments

meta_df

midi_df to add

i_track

integer, default = 0

type

character, default = "track_name"

name

character, default = ""

time

integer, default = 0

...

send additional args to dplyr::add_row

Value

a new row

Examples

if (FALSE) {
new_midi_df <- create_empty_midi_df() %>%
  add_meta_track_name(name = "bass")
}