Interactive Arc Diagram Generator

279 views
Skip to first unread message

Craig

unread,
Mar 29, 2017, 3:35:57 PM3/29/17
to starstarhug
Hello **HUGers,

One of my students from Music 254 at Stanford last year has put up his final project for the class, which is an interactive tool for form analysis:


The tool visualizes repeated melodic/rhythmic patterns in a musical piece, both within a single voice, and repeated patterns across multiple voices.

Humdrum and MIDI files can be dragged from your desktop onto the box on the main page to load the data into the tool.

Note the options on the right side of the homepage for selecting features for the resolution of the analysis.

Source code for the website is viewable on Github:

The visualizations are implemented with D3:


If Google Groups allows inline images (didn't seem to work when sent directly from email in my last message), here is an example of Chopin's mazurka in C major op. 24.2:




The orange color represents the right hand and the blue represents music in the left hand.


The plot is showing that the form of the music is A B A C A.  The A sections are highlighted in green in this image of the score:



The yellow highlighting is the music represented by the tall skinny arc, where the intro returns near the end of the piece.  The red highlighted segment is not shown in the plot because it is showing exact-pitch matching.  If you select relative-pitch from the homepage options, the red section would also link to the yellow section.


The slider underneath the arc diagram controls the minimum length of the match, which you can use to filter out small inconsequential matches as desired.



If you want to try the interface with this particular piece, you can download data from humdrum extras with the command:

      humcat h://chopin/mazurkas/mazurka24-2.krn > mazurka24-2.krn


Or you can go to VHV via this link:

    http://verovio.humdrum.org/?file=chopin/mazurkas/mazurka24-2.krn

and then type "alt-s" to save the file to your Downloads folder.






-=+Craig


Reply all
Reply to author
Forward
0 new messages