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'
-
miditapyrcan be used to load the midi filemidi_ininto amido.MidiFile. The chain down tomidi_outshows, 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. -
mfshows the structure of aMidiFramesobject and how its fields are related to the low-level functions. Have a look here to see howMidiFramescan be used in python. - The
pyramidisubgraph 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
MidiFramerobject (for clarity not included in the graph). - The
MidiFramermethodupdate_nodes_wide()can be used to modify the fielddf_notes_wide. The red arrows and borders show the other fields of theMidiFramerobject that are automatically updated when using this method.