spmviz.datasets.load_melodies#

spmviz.datasets.load_melodies(unit='phrase')[source]#

Melodies of 13 well-known public-domain songs as note sequences.

unit="phrase" makes every phrase a sequence (song title as attribute), unit="song" concatenates the phrases. Notes are letter names; a suffix 3 or 5 marks the octave below or above. Pitches only — rhythm is left out.

Examples using spmviz.datasets.load_melodies#

Word trees around a pivot

Word trees around a pivot

Sequence logos

Sequence logos

Arc diagram of a melody

Arc diagram of a melody