The following diagram depicts the structure of the pyramidi package and its python counterpart miditapyr.
Hover over nodes to see additional information. Many of the nodes are also clickable for further information.
#> Error in python_config_impl(python) :
#> Error running '/home/runner/.virtualenvs/r-reticulate/python': No such file.
#> The Python installation used to create the virtualenv has been moved or removed:
#> '/opt/hostedtoolcache/Python/3.11.8/x64/bin'
-
miditapyr
can be used to load the midi filemidi_in
into amido.MidiFile
. The chain down tomidi_out
shows, how miditapyr’s functions can be used to transform the data into different formats and finally save it to a new midi file. Have a look here to see in detail how this can be done. -
mf
shows the structure of aMidiFrames
object and how its fields are related to the low-level functions. Have a look here to see howMidiFrames
can be used in python. - The
pyramidi
subgraph illustrates how the functions in this package work. Starting from the dataframemidi_frame_unnested
, the data is transformed to different formats, finally resulting in the same format. - The dashed borders of the nodes in the graph depict the fields that
are in a
MidiFramer
object (for clarity not included in the graph). - The
MidiFramer
methodupdate_nodes_wide()
can be used to modify the fielddf_notes_wide
. The red arrows and borders show the other fields of theMidiFramer
object that are automatically updated when using this method.