ipytone.Panner3D#
- class ipytone.Panner3D(**kwargs: Any)#
Bases:
AudioNodeA spatialized panner audio node that provides equal power or HRTF panning.
For more details about the 3D spatial reference system, see
Listener.- __init__(position=(0, 0, 0), orientation=(0, 0, 0), **kwargs)#
Public constructor
Methods
chain(*nodes)Connect the output of this audio node to the other audio nodes in series.
connect(destination[, output_number, ...])Connect the output of this audio node to the input of another node.
disconnect(destination[, output_number, ...])Disconnect the ouput of this audio node from a connected node.
dispose()Dispose and disconnect this audio node (as well as its input/output).
fan(*destinations)Connect the output of this audio node to the
destinationsaudio nodes in parallel.set_orientation(x, y, z)Convenient method to set the x-y-z coordinate orientation of the source.
set_position(x, y, z)Convenient method to set the x-y-z coordinate position of the source.
Convenience method to directly connect the output of this audio node to the main output (speakers) node.
Attributes
channel_countAn int trait.
channel_count_modeAn enum whose value must be in a given sequence.
channel_interpretationAn enum whose value must be in a given sequence.
angle inside of which there is no volume reduction (degrees)
angle outside of which volume is reduced to a constant (degrees)
gain value outside of the cone outer angle
Returns True if the node was disposed (i.e., disconnected and web audio node freed for garbage collection).
distance model for source volume reduction
Returns the input node, or None if this node is a source.
logA trait whose value must be an instance of a specified class.
max distance between the source and listener (beyond, no volume reduction)
nameA trait for unicode strings.
Returns the number of input slots for the input node (0 for source nodes).
Returns the number of output slots for the output node (0 for sink nodes).
source orientation x-coordinate.
source orientation y-coordinate.
source orientation z-coordinate.
Returns the output node, or None if this node is a sink.
panning model
source position x-coordinate.
source position y-coordinate.
source position z-coordinate.
reference distance for source volume reduction
controls the amount of source volume reduction with distance
- chain(*nodes)#
Connect the output of this audio node to the other audio nodes in series.
- cone_inner_angle#
angle inside of which there is no volume reduction (degrees)
- cone_outer_angle#
angle outside of which volume is reduced to a constant (degrees)
- cone_outer_gain#
gain value outside of the cone outer angle
- connect(destination, output_number=0, input_number=0)#
Connect the output of this audio node to the input of another node.
- disconnect(destination, output_number=0, input_number=0)#
Disconnect the ouput of this audio node from a connected node.
- dispose()#
Dispose and disconnect this audio node (as well as its input/output).
- property disposed#
Returns True if the node was disposed (i.e., disconnected and web audio node freed for garbage collection).
- distance_model#
distance model for source volume reduction
- fan(*destinations)#
Connect the output of this audio node to the
destinationsaudio nodes in parallel.
- property input#
Returns the input node, or None if this node is a source.
- max_distance#
max distance between the source and listener (beyond, no volume reduction)
- property number_of_inputs#
Returns the number of input slots for the input node (0 for source nodes).
- property number_of_outputs#
Returns the number of output slots for the output node (0 for sink nodes).
- property output#
Returns the output node, or None if this node is a sink.
- panning_model#
panning model
- ref_distance#
reference distance for source volume reduction
- rolloff_factor#
controls the amount of source volume reduction with distance
- set_orientation(x, y, z)#
Convenient method to set the x-y-z coordinate orientation of the source.
- set_position(x, y, z)#
Convenient method to set the x-y-z coordinate position of the source.
- to_destination()#
Convenience method to directly connect the output of this audio node to the main output (speakers) node.