Package jazzparser :: Package harmonical :: Module input
[hide private]
[frames] | no frames]

Module input

source code


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Classes [hide private]
  HarmonicalInputFile
Base class for input files to the harmonical.
  ChordInputFile
Type of harmonical input file that simply specifies a list of chords, with durations, defined by a list of tonal space points.
  ChordDictionaryFile
Rather like the ChordInputFile format, but specifies a list of chords with names.
  HarmonicalInputFileReadError
Functions [hide private]
 
_get_duration(tokens)
Get a 'for' duration specification out of a line's tokens.
source code
 
_qn_to_seconds(duration)
Converts from quarter note duration to number of seconds.
source code
 
_get_root(tokens)
Get a 'at' root specification out of a line's tokens.
source code
 
_read_coord(token)
Parse a 3D coordinate string.
source code
 
_get_pitch(point)
Get the pitch of a point in the space.
source code
 
_get_volume(tokens)
Reads a volume specifier.
source code
Variables [hide private]
  INPUT_TYPES = {'chord': <class 'jazzparser.harmonical.input.Ch...
  __package__ = 'jazzparser.harmonical'
Function Details [hide private]

_get_duration(tokens)

source code 

Get a 'for' duration specification out of a line's tokens. Returns duration in quarter notes.


Variables Details [hide private]

INPUT_TYPES

Value:
{'chord': <class 'jazzparser.harmonical.input.ChordInputFile'>,
 'chord-vocab': <class 'jazzparser.harmonical.input.ChordDictionaryFil\
e'>}