Package jazzparser :: Package formalisms :: Package music_halfspan :: Package semantics :: Class PathCoordinate
[hide private]
[frames] | no frames]

Class PathCoordinate

source code

                           object --+            
                                    |            
base.semantics.lambdacalc.LogicalForm --+        
                                        |        
       base.semantics.lambdacalc.Terminal --+    
                                            |    
                               object --+   |    
                                        |   |    
         base.semantics.temporal.Temporal --+    
                                            |    
                         EnharmonicCoordinate --+
                                                |
                                               PathCoordinate

Simple subclass of EnharmonicCoordinate to store points on a path directly. Doesn't provide all of the fancy coordinate manipulation stuff provided by EC: use EC itself for that.

This is a special kind of semantics for storing results from backoff models.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Builds a basic logical form object.
source code
 
format_result(self)
In this case, we output the full harmonic coordinate
source code
 
copy(self)
This should be overridden by subclasses.
source code
 
__eq__(self, other)
This should be overridden by subclasses.
source code
 
to_enharmonic_coord(self) source code

Inherited from EnharmonicCoordinate: __add__, __repr__, __str__, __sub__, add_coord, get_start_time, harmonic_str, nearest, set_time

Inherited from base.semantics.lambdacalc.Terminal: alpha_convert, alpha_equivalent, beta_reduce, get_bound_variables, get_children, get_variables, replace_immediate_constituent, substitute

Inherited from base.semantics.lambdacalc.LogicalForm: __ne__, get_ancestor_bound_variables, get_instances, get_unbound_variables, replace_in_parent

Inherited from base.semantics.temporal.Temporal: get_literal_time_list, get_path_times, get_time_list, set_all_times, simultaneous

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

Static Methods [hide private]
 
from_enharmonic_coord(ec) source code

Inherited from EnharmonicCoordinate: from_harmonic_coord

Class Variables [hide private]

Inherited from EnharmonicCoordinate: delta, timed_object

Properties [hide private]

Inherited from EnharmonicCoordinate: X, Y, block_coord, harmonic_coord, x, y, zero_coord

Inherited from base.semantics.temporal.Temporal: duration, time

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Builds a basic logical form object.

Parameters:
  • delta - whether this represents a vector, rather than a point, in the tonal space. A delta coordinate will never show in roman numeral format
Overrides: object.__init__
(inherited documentation)

format_result(self)

source code 

In this case, we output the full harmonic coordinate

Overrides: EnharmonicCoordinate.format_result

copy(self)

source code 

This should be overridden by subclasses.

Overrides: base.semantics.lambdacalc.LogicalForm.copy
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 

This should be overridden by subclasses.

Overrides: base.semantics.lambdacalc.LogicalForm.__eq__
(inherited documentation)