semeios
Semeios manages all forms of musical representation including visualization, notation, plotting, animation, and multimedia output.
Visualization
- klotho.semeios.visualization.plot(obj, **kwargs)[source]
Universal plot dispatcher for Klotho objects.
Returns a
KlothoPlotfor types that support animation (Lattice, CPS, RhythmTree, TemporalUnit, CompositionalUnit). Jupyter renders the static figure automatically via_repr_html_. Call.play()on the result to trigger animated playback with audio.For types without animation support, the figure is displayed immediately via
IPython.display.displayandNoneis returned.- Parameters:
obj (object) – Object to plot. Supported types include
Tree,RhythmTree,CombinationSet,CombinationProductSet,DynamicRange,Envelope,Lattice,Scale,Chord,Voicing, and graph-like objects.**kwargs – Keyword arguments forwarded to the type-specific plotting function.
- Returns:
A
KlothoPlotwrapper for animatable types, otherwiseNone.- Return type:
KlothoPlot or None
- Raises:
TypeError – If the object type is not supported for plotting.