Package jazzparser :: Package data :: Package db_mirrors :: Class ChordSequence
[hide private]
[frames] | no frames]

Class ChordSequence

source code

object --+
         |
        ChordSequence

A chord sequence in the corpus.

Chords in the sequence are stored in a linked list structure (implemented by Chord). The start of the list is given by first_chord.

You can also iterate over a ChordSequence instance, which will iterate over its chords.

Instance Methods [hide private]
 
__init__(self, name=None, key=None, bar_length=None, first_chord=None, notes=None, analysis_omitted=None, omissions=None, source=None, id=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__unicode__(self) source code
 
_get_string_name(self) source code
 
iterator(self) source code
 
__iter__(self) source code
 
_get_number_annotated(self) source code
 
_get_percentage_annotated(self) source code
 
_get_fully_annotated(self)
True if every chord in the sequence is annotated.
source code
 
_get_length(self) source code
 
__len__(self) source code

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

Properties [hide private]
  string_name
  number_annotated
  percentage_annotated
  fully_annotated
True if every chord in the sequence is annotated.
  length
  time_map

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None, key=None, bar_length=None, first_chord=None, notes=None, analysis_omitted=None, omissions=None, source=None, id=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

_get_fully_annotated(self)

source code 

True if every chord in the sequence is annotated. This should usually be a bit quicker than checking percentage_annotated.


Property Details [hide private]

string_name

Get Method:
_get_string_name(self)

number_annotated

Get Method:
_get_number_annotated(self)

percentage_annotated

Get Method:
_get_percentage_annotated(self)

fully_annotated

True if every chord in the sequence is annotated. This should usually be a bit quicker than checking percentage_annotated.

Get Method:
_get_fully_annotated(self) - True if every chord in the sequence is annotated.

length

Get Method:
_get_length(self)

time_map

Get Method:
unreachable.time_map(self)