Node

class supriya.tools.nonrealtimetools.Node(session, session_id, duration=None, start_offset=None)[source]

A non-realtime node.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=1, group=0, label=object, shape=box]; } subgraph cluster_nonrealtimetools { graph [label=nonrealtimetools]; "supriya.tools.nonrealtimetools.Group.Group" [color=2, group=1, label=Group, shape=box]; "supriya.tools.nonrealtimetools.Node.Node" [color=black, fontcolor=white, group=1, label=<<B>Node</B>>, shape=box, style="filled, rounded"]; "supriya.tools.nonrealtimetools.RootNode.RootNode" [color=2, group=1, label=RootNode, shape=box]; "supriya.tools.nonrealtimetools.SessionObject.SessionObject" [color=2, group=1, label=SessionObject, shape=oval, style=bold]; "supriya.tools.nonrealtimetools.Synth.Synth" [color=2, group=1, label=Synth, shape=box]; "supriya.tools.nonrealtimetools.Group.Group" -> "supriya.tools.nonrealtimetools.RootNode.RootNode"; "supriya.tools.nonrealtimetools.Node.Node" -> "supriya.tools.nonrealtimetools.Group.Group"; "supriya.tools.nonrealtimetools.Node.Node" -> "supriya.tools.nonrealtimetools.Synth.Synth"; "supriya.tools.nonrealtimetools.SessionObject.SessionObject" -> "supriya.tools.nonrealtimetools.Node.Node"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=3, group=2, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=3, group=2, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.nonrealtimetools.SessionObject.SessionObject"; }

Bases

Attribute summary

add_group([add_action, duration, offset])
add_synth([add_action, duration, synthdef, ...])
delete()
duration
get_parent([offset])
get_parentage([offset])
inspect_children([offset])
move_node(node[, add_action, offset])
require_offset(function)
session
session_id
set_duration(new_duration[, clip_children])
split([split_occupiers, split_traversers, ...])
start_offset
stop_offset
__eq__(expr) Is true when ID of expr equals ID of Supriya object.
__format__([format_specification]) Formats Supriya object.
__getitem__(item)
__hash__() Hashes Supriya object.
__repr__()
__setitem__(item, value)

Read-only properties

Node.duration
(SessionObject).session
Node.session_id
Node.start_offset
Node.stop_offset

Methods

Node.add_group(add_action=None, duration=None, offset=None)[source]
Node.add_synth(add_action=None, duration=None, synthdef=None, offset=None, **synth_kwargs)[source]
Node.delete()[source]
Node.get_parent(offset=None)[source]
Node.get_parentage(offset=None)[source]
Node.inspect_children(offset=None)[source]
Node.move_node(node, add_action=None, offset=None)[source]
Node.set_duration(new_duration, clip_children=False)[source]
Node.split(split_occupiers=True, split_traversers=True, offset=None)[source]

Class & static methods

(SessionObject).require_offset(function)

Special methods

(SupriyaObject).__eq__(expr)

Is true when ID of expr equals ID of Supriya object. Otherwise false.

Returns boolean.

(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

Node.__getitem__(item)[source]
(SupriyaObject).__hash__()

Hashes Supriya object.

Required to be explicitely re-defined on Python 3 if __eq__ changes.

Returns integer.

Node.__repr__()[source]
Node.__setitem__(item, value)[source]