Sequence¶
-
class
aud.
Sequence
¶ This sound represents sequenced entries to play a sound scene.
-
add
()¶ Adds a new entry to the scene. :arg sound: The sound this entry should play. :type sound:
Sound
:arg begin: The start time. :type begin: float :arg end: The end time or a negative value if determined by the sound. :type end: float :arg skip: How much seconds should be skipped at the beginning. :type skip: float :return: The entry added. :rtype:SequenceEntry
-
channels
¶ The channel count of the sequence.
-
distance_model
¶ The distance model of the sequence.
-
doppler_factor
¶ The doppler factor of the sequence. This factor is a scaling factor for the velocity vectors in doppler calculation. So a value bigger than 1 will exaggerate the effect as it raises the velocity.
-
fps
¶ The listeners’s location in 3D space, a 3D tuple of floats.
-
muted
¶ Whether the whole sequence is muted.
-
rate
¶ The sampling rate of the sequence in Hz.
-
remove
()¶ reomve()
Adds a new entry to the scene. :arg entry: The entry to remove. :type entry:
SequenceEntry
-
setAnimationData
()¶ Writes animation data to a sequence.
Parameters: - type (int) – The type of animation data.
- frame (int) – The frame this data is for.
- data (sequence of float) – The data to write.
- animated (bool) – Whether the attribute is animated.
-
speed_of_sound
¶ The speed of sound of the sequence. The speed of sound in air is typically 343.3 m/s.
-