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

Class ChordInputFile

source code

         object --+    
                  |    
HarmonicalInputFile --+
                      |
                     ChordInputFile

Type of harmonical input file that simply specifies a list of chords, with durations, defined by a list of tonal space points.

For documentation of the file syntax, see http://jazzparser.granroth-wilding.co.uk/HarmonicalChordInput.

Instance Methods [hide private]
 
__init__(self, tone_matrix, midi_file=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
render(self)
Subclasses must provide a way of building an audio signal.
source code
 
render_midi(self)
Subclasses may provide a way of building a tuned midi file.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
from_data(data, directives)
Subclasses must provide this method to create an instance from the lines of data read in from a file.
source code

Inherited from HarmonicalInputFile: from_file, process_global_directives

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tone_matrix, midi_file=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

render(self)

source code 

Subclasses must provide a way of building an audio signal.

Overrides: HarmonicalInputFile.render
(inherited documentation)

render_midi(self)

source code 

Subclasses may provide a way of building a tuned midi file.

Raises:
  • NotImplementedError - if this input format doesn't support midi generation.
Overrides: HarmonicalInputFile.render_midi
(inherited documentation)

from_data(data, directives)
Static Method

source code 

Subclasses must provide this method to create an instance from the lines of data read in from a file. Should take a second argument which will be a dictionary of the global directive values.

Overrides: HarmonicalInputFile.from_data
(inherited documentation)