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>
|
|
|
|
|
strip_input(string)
Pre-processes the input string, removing any allowed meaningless
characters, and returns the resulting string. |
source code
|
|
|
|
__package__ = None
hash(x)
|
|
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.
|