Sequence

class aud.Sequence
class Sequence(channels=2, rate=48000.0, fps=30.0, muted=False)

This sound represents sequenced entries to play a sound sequence.

Parameters:
  • channels (int) – The number of channels.

  • rate (double) – The sample rate in Hz.

  • fps (float) – The frames per second of the sequence.

  • muted (bool) – Whether the sequence is muted.

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.

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.