Acoular 24.05 documentation

Mixer

«  SpatialInterpolatorConstantRotation   ::   tprocess   ::   TimePower  »

Mixer

class acoular.tprocess.Mixer

Bases: TimeInOut

Mixes the signals from several sources.

source = Trait(SamplesGenerator)

Data source; SamplesGenerator object.

sources = List(Instance(SamplesGenerator, ()))

List of additional SamplesGenerator objects to be mixed.

sample_freq = Delegate('source')

Sampling frequency of the signal as given by source.

numchannels = Delegate('source')

Number of channels in output as given by source.

numsamples = Delegate('source')

Number of samples in output as given by source.

validate_sources()

Validates if sources fit together.

result(num)

Python generator that yields the output block-wise. The output from the source and those in the list sources are being added.

Parameters:
numinteger

This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block).

Returns:
Samples in blocks of shape (num, numchannels).

The last block may be shorter than num.

«  SpatialInterpolatorConstantRotation   ::   tprocess   ::   TimePower  »