ipytone.PyAudioNode#

class ipytone.PyAudioNode(**kwargs: Any)#

Bases: HasTraits

A Pure-Python audio node.

Although it provides the same interface than AudioNode, it is not a ipywidget.Widget. It is materialized in the front-end through its input and/or output nodes, which must correspond to AudioNode objects (maybe via some other PyAudioNode nested objects).

This class may be used as a base class to create custom nodes that don’t exist in Tone.js or high-level nodes that are straightforward to implement on top of audio nodes types already available in ipytone.

__init__(input_node, output_node, **kwargs)#

Methods

chain(*destinations)

connect(destination[, output_number, ...])

disconnect(destination[, output_number, ...])

dispose()

fan(*destinations)

to_destination()

Attributes

channel_count

An int trait.

channel_count_mode

An enum whose value must be in a given sequence.

channel_interpretation

An enum whose value must be in a given sequence.

disposed

input

name

A trait for unicode strings.

number_of_inputs

number_of_outputs

output

widget

Returns the wrapped audio node widget.

property widget#

Returns the wrapped audio node widget.