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

Module input

source code

Utilities for chord input processing

Various general utilities for processing input to the parser. These are for processing string chord input and date back to the days when all the parser's input was in that form.

DbInput: this class has moved to jazzparser.data.input, where it fits into a more general framework of input processing.


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

Functions [hide private]
 
assign_durations(string)
Computes the durations for each chord token in the string.
source code
 
strip_input(string)
Pre-processes the input string, removing any allowed meaningless characters, and returns the resulting string.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

assign_durations(string)

source code 

Computes the durations for each chord token in the string. Chords on their own get a duration of 1. Comma-separated sequences of chords get a duration of 1, split evenly between the members of the sequence.