An experimentation with animating a melody as a graph.
Including a self loop on the graph gets the timing right, however, the first edge is dropped.
# key packages used
library(pyramidi) # midi wrangling
library(tidygraph) # graph creation
library(ggraph) # graph plotting
library(gganimate) # animation
library(tidyverse) # r tools
# other packages
library(zealot)
library(gt)
library(jpeg)
library(grid)
ffmpeg
timidity
Raw midi file sourced from wikipedia's page on The Art of Fugue.
See step-by-step for each step of the process, from wranging midi, to plotting a graph, to animation.
Written to outputs/, but not all files are there as some of the intermediary files are too large to push to Git.