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

Class TPCNoteEvent

source code

object --+    
         |    
     Event --+
             |
            TPCNoteEvent

Tonal pitch-class note, found in TPC files and chord files. A tonal pitch-class is a note as notated - i.e. it distinguishes all differently named notes. They are represented as a position on the line of fifths:

...-2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 ... ... Ab Eb Bb F C G D A E B F# C# G# D# A#...

They are also redundantly represented as a midi note value.

Nested Classes [hide private]

Inherited from Event: __metaclass__

Instance Methods [hide private]
 
__init__(self, start, end, note, pitch_class)
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 = 'TPCNote'
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, note, pitch_class)
(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