Package jazzparser :: Package data :: Package corpora :: Module temperley
[hide private]
[frames] | no frames]

Module temperley

source code

Corpus file handling for David Temperley's corpora.

David Temperley has various corpora that he has used in his books:

He evaluates his own techniques and others' on this data, so it is an important comparison for me. It's also an important source of annotated data, aside for my own small corpus.

This module provides utilities for reading in the corpus files and representing the data internally.

The data formats are described in Temperley's documentation for the programs that make up Melisma.

Note: This implementation is not intended to be complete. It may not handle all types of input that Temperley describes. I'm just implementing things as I need them.

Author: Mark Granroth-Wilding <>

Classes [hide private]
Superclass of all events that occur in the data.
Tonal pitch-class note, found in TPC files and chord files.
A beat identifier, giving a time of occurrence and a beat level.
A chord, identified just by its start time, end time and root.
Data structure to store a list of events read in from a corpus file.
Functions [hide private]
Creates a new DataSequence to represent the data in a file.
source code
Variables [hide private]
  _EVENTS = {'Beat': <class '
  __package__ = ''
Function Details [hide private]

Static Method

source code 

Creates a new DataSequence to represent the data in a file.

  • infile (str or open file object) - filename or file object. Filename may be the path to the file or the path within the corpus.

Variables Details [hide private]


{'Beat': <class ''>,
 'Chord': <class ''>,
 'TPCNote': <class ''>}