amads documentation#
This package collects together a variety of algorithms for symbolic music analysis.
The package is its very early stages. The API is subject to change, and many algorithms are not yet implemented, tested, or documented!
For the source code, visit the GitHub repository.
General algorithms#
Calculate the relative entropy of a distribution. |
|
|
Returns the number of notes in a musical score. |
|
Scale event timings in a score by a given factor. |
Salami slice algorithm for segmenting musical scores. |
|
Sliding window algorithm. |
Pitch#
Provides the hz2midi function. |
|
Provides the function ismonophonic |
|
Provides the ivdirdist1 function |
|
Provides the ivdist1 function |
|
Provides the ivdist2 function |
|
Provides the ivsizedist1 function |
|
NAME: Key Profiles (key_profiles_literature.py) |
|
Pitch class distribution analysis. |
|
This module provides the pcdist2 function. |
|
Basic functionality for transforming pitch lists expressed as integers (MIDI numbers or pitch classes) through transposition, inversion, retrograde, rotation, and more. |
Time#
Distribution of durations of notes in a Score. |
|
Distribution of duration pairs in a Score. |
|
This module implements various functions useful for analyzing swing in jazz and other genres. |
|
This module provides functions for analyzing tempo characteristics in musical performances. |
|
This module serves to map out metrical hierarchies in a number of different ways and to express the relationship between the notes in and the hierarchy of a metrical cycle. |
Harmony#
Melody#
|
Given a score, returns the following: (1) If score is not monophonic, we raise an exception (2) If score has notes, we return a a list of tuples containing note start and its corresponding strength, respectively |
|
Given a score, returns the following: (1) If score is not monophonic, we raise an exception (2) If score is monophonic, we return a 2-tuple of lists for clang boundary starts and segment boundary starts, respectively |
Calculates the Interpolation Contour of a melody, along with related features, as implemented in the FANTASTIC toolbox of Müllensiefen (2009) [1] (features 23–27). |
|
Calculates the Step Contour of a melody, along with related features, as implemented in the FANTASTIC toolbox of Müllensiefen (2009) [1] (features 20–22). |
|
This is a Python wrapper for the R package 'melsim' (sebsilas/melsim). |
Polyphony#
|
Finds the skyline of a musical score. |
Core#
Quick overview: The basic hierarchy of a score is shown here. |
IO#
|
Converts a Score to a piano roll display of a musical score. |