Skip to contents

Reads a MIDI file using mido

Usage

read_midi_file(midi_file)

Arguments

midi_file

a character string with the path to a MIDI file. Note that "~" does not work - you need to specify an absolute path!

Value

the MidiFile object read from the given file

Examples

if (FALSE) {
  remotes::install_github("AlgoCompSynth/eikossany") # example MIDI files
  reticulate::use_condaenv("mydough")
  midi_file_object <- mydough::read_midi_file(
    system.file("Eikosany-MIDI-Files", "eikosany-5-7-9-11.mid", package = "eikosany")
  )
  print(midi_file_object)
}