Skip to content

softloud/digmus

Repository files navigation

digmus

An experimentation with animating a melody as a graph.

Unsolved problem

Including a self loop on the graph gets the timing right, however, the first edge is dropped.

Packages used

r

# 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)

bash

ffmpeg
timidity

Midi

Raw midi file sourced from wikipedia's page on The Art of Fugue.

Code

See step-by-step for each step of the process, from wranging midi, to plotting a graph, to animation.

Outputs

Written to outputs/, but not all files are there as some of the intermediary files are too large to push to Git.

About

Animating a melody as a mathematical graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published