Skip to contents

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

Usage

add_meta_tempo(
  meta_df,
  i_track = 0,
  type = "set_tempo",
  time = 0,
  tempo = 5e+05,
  ...
)

Arguments

meta_df

midi_df to add

i_track

integer, default = 0

type

character, default = "set_tempo"

time

integer, default = 0

tempo

integer, default = 500000

...

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") %>%
  add_meta_tempo(tempo = 500000)
}