Sequence¶
- class aud.Sequence
This sound represents sequenced entries to play a sound sequence.
- add()
- add()¶
Adds a new entry to the sequence.
- Parameters:
sound (
Sound
) – The sound this entry should play.begin (double) – The start time.
end (double) – The end time or a negative value if determined by the sound.
skip (double) – How much seconds should be skipped at the beginning.
- Returns:
The entry added.
- Return type:
SequenceEntry
- channels
The channel count of the sequence.
- distance_model
The distance model of the sequence.
See also
- 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()
- remove()¶
Removes an entry from the sequence.
- Parameters:
entry (
SequenceEntry
) – The entry to remove.
- setAnimationData()
- 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.