Package jazzparser :: Package misc :: Package raphsto :: Module midi :: Class InputSourceFile
[hide private]
[frames] | no frames]

Class InputSourceFile

source code

object --+
         |
        InputSourceFile

File reader to get midi input files listed in a single file format. The format is CSV, each row containing a midi filename (relative to the source file's location) and the parameters to use to process the midi data as input:

filename,time_unit,tick_offset,remove_drums

See MidiHandler for the meaning of these parameters.

Once the file's loaded, the (parsed) files and parameters are available in the list obj.inputs. You can also get directly at a list of MidiHandlers using get_handlers.

Instance Methods [hide private]
 
__init__(self, filename)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_handlers(self)
Generator to get MidiHandlers, one for each line of the input file.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 

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

Parameters:
  • filename (str) - filename of the file to read from
Overrides: object.__init__