Package jazzparser :: Package formalisms :: Package music_halfspan :: Module harmstruct
[hide private]
[frames] | no frames]

Module harmstruct

source code

Harmonic structure from semantics.

Functions for converting a logical form to trees representing the harmonic structure. This is a list of trees of the dependencies in the logical form.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Classes [hide private]
  SemanticsToTreesError
  SemanticsToDependenciesError
Functions [hide private]
 
semantics_to_dependency_trees(sems)
Converts the given Semantics (logical form) to a tree representation of the dependencies in it.
source code
 
lf_to_depedency_tree(lf, bound_var=None) source code
 
semantics_to_dependency_graph(sems)
Converts the semantics to a jazzparser.data.dependencies.DependencyGraph of the dependencies in it.
source code
 
_reorder_nodes(arcs, node_times, root_arc, shift=0) source code
 
lf_to_depedency_arcs(lf, start_index=0, bound_var=None) source code
Variables [hide private]
  __package__ = 'jazzparser.formalisms.music_halfspan'
Function Details [hide private]

semantics_to_dependency_graph(sems)

source code 

Converts the semantics to a jazzparser.data.dependencies.DependencyGraph of the dependencies in it. Returns this graph and a mapping from the indices of the graph to the timings in the semantics.