Package jazzparser :: Package data :: Package corpora :: Module temperley :: Class ChordEvent
[hide private]
[frames] | no frames]

Class ChordEvent

source code

object --+    
         |    
     Event --+
             |
            ChordEvent

A chord, identified just by its start time, end time and root. The root is a position on the line of fifths.


See Also: TPCNoteEvent

Nested Classes [hide private]

Inherited from Event: __metaclass__

Instance Methods [hide private]
 
__init__(self, start, end, root)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
to_line(self)
Generates a string representation suitable for writing out to a line of a file.
source code
 
_get_sort_key(self) source code

Inherited from Event: __cmp__, __str__

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

Static Methods [hide private]
 
from_line(line)
Creates an instance of the appropriate event type given a line of an input file.
source code
Class Variables [hide private]
  EVENT_NAME = 'Chord'
The identifier that begins the line of an input file for this event.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start, end, root)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

from_line(line)
Static Method

source code 

Creates an instance of the appropriate event type given a line of an input file.

All subclasses should define a from_line that creates an instance of them given the list of string arguments from a line of an input file.

Overrides: Event.from_line
(inherited documentation)

to_line(self)

source code 

Generates a string representation suitable for writing out to a line of a file.

Overrides: Event.to_line
(inherited documentation)

_get_sort_key(self)

source code 
Overrides: Event._get_sort_key