midi_to_object() could be refactored to allow setting of ticks_per_beat.
Suggestion to use pyramidi::MidiFramer$new()
#Initialize new pyramidi object
new_pyramidi_object <- pyramidi::MidiFramer$new()
# update ticks per beat
new_pyramidi_object$ticks_per_beat <- 96L
Then, import a midi file into the MidiFramer object. This should allow the ticks_per_beat to be set, and updated across the internal elements.