| Trees | Indices | Help |
|
|---|
|
|
object --+
|
InputReader --+
|
Input --+
|
SegmentedMidiInput
Input wrapper for MIDI files with extra information about segmentation, in the form it's needed for the Raphael and Stoddard model and midi supertagging models: that is, offset (start of first bar) and bar length.
Each segment is a midi midi.EventStream. It also has the additional attribute
segment_start, giving the tick time at which the segment
begins in the original midi stream.
Optionally also stores a gold standard analysis in the form of a db annotated chord sequence: see AnnotatedDbInput.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
FILE_INPUT_OPTIONS = [ModuleOption('time_unit', filter= float,
|
|||
SHELL_TOOLS = Input.SHELL_TOOLS+ [tools.PlayMidiChunksTool(),
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
|
str(x)
|
Subclasses should provide a way of slicing (taking a subsequence of) the input that returns an input of the original type.
|
If the input includes a gold-standard analysis, this should return it. Otherwise, it will return None.
|
|
Creates a SegmentedMidiInput from a midi event stream.
|
|
|||
FILE_INPUT_OPTIONS
|
SHELL_TOOLS
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |