music.mix_many_with_offsets

music.mix_many_with_offsets(*args)[source]

Mix any number of sonic vectors, each at its own offset.

Where mix_with_offset() takes two sounds and one offset, this takes as many as it is given: each sound is mixed into the result built so far, delayed by the offset that follows it.

Parameters:
*argssonic vectors, each optionally followed by a scalar

A sequence of sonic vectors, each a sequence of PCM samples, or a sequence alternating the sonic vectors and their offsets in seconds. A vector with no scalar after it is mixed at offset 0.

Parameters:

args (ArrayLike)

Return type:

NDArray[float64]

See also

mix_with_offset

two sounds and a single offset.

mix_many

a list of sounds aligned at their starts or their ends.