A four-dimensional coordinate. Stores the coordinate (x,y) within an
enharmonic (4x3) block, and the coordinate (X,Y) that locates the
enharmonic block within the infinite space.
Note that if x and y are set outside the range, they'll just be taken
mod 4 and 3 respectively. If you want to set x,y and X,Y from a 2D
coordinate, use from_harmonic_coord or the + operator.
This is used in the semantics as a tonic point.
|
|
__init__(self,
coord=(0, 0),
block=(0, 0),
time=None,
duration=None,
delta=False,
*args,
**kwargs)
Builds a basic logical form object. |
source code
|
|
|
|
|
|
|
format_result(self)
When displaying LFs for results, the enharmonic block has no meaning
and is just confusing. |
source code
|
|
|
|
|
|
|
|
|
|
harmonic_str(self)
A string representation of the coordinate that's like the normal
__str__, but displays the harmonic coordinate, rather than the
enharmonic 4-tuple. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_coord(self,
coord=(0, 0),
delta=False)
Returns an enharmonic coordinate that results from adding the 2D
harmonic coordinates to this enharmonic coordinate. |
source code
|
|
|
|
__add__(self,
other)
Define addition for 2D coordinates (same as add_coord) and EnharmonicCoordinates. |
source code
|
|
|
|
__sub__(self,
other)
Define subtraction for 2D coordinates and
EnharmonicCoordinates. |
source code
|
|
|
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__
|