Skip to content

Code for the project "Melody squares"

Notifications You must be signed in to change notification settings

bacor/melody-squares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Melody squares

Data and code for the project Melody squares, visualizing which melodic motifs can be found in a collection of melodies.


Abstract. Melody squares visualize the melodic movements in melodies. It breaks down a melody into overlapping motifs of three notes which form two pitch intervals, and plots the first interval horizontally and the second vertically. A melody square, differently put, shows the frequency of pitch interval bigrams. This way of representing melodic motifs immediately highlights differences between corpora, but also suggests some interesting generalizations.


Repository structure

To do

Setup

You can find the Python version used in .python-version and all dependencies are listed in requirements.txt. If you use pyenv and venv to manage python versions and virtual environments, do the following:

# Install the right python version
pyenv install | cat .python-version

# Create a virtual environment
python -m venv env

# Activate the environment
source env/bin/activate

# Install dependencies
pip install -r requirements.txt

About

Code for the project "Melody squares"

Resources

Stars

Watchers

Forks