Skip to contents

This function converts a MIDI time dataframe to a MIDI track dataframe, given a specific channel and velocity. It subsequently writes note on/off, time, and note number messages.

Usage

matrix_to_midi_track(midi_time_df, split_meta_list, channel = 0, velocity = 64)

Arguments

midi_time_df

A dataframe containing MIDI time information.

split_meta_list

A list of two data frames, the first contains metadata for the start of the MIDI track and the second contains metadata for the end of the MIDI track.

channel

Integer value representing the MIDI channel. Default is 0.

velocity

Integer value representing the velocity of the MIDI notes. Default is 64.

Value

An updated MIDI track data frame which includes note on/off, time, and note number messages.