Acoular 19.02 documentation


«  MaskedTimeInOut   ::   tprocess   ::   TimePower  »


class acoular.tprocess.Mixer

Bases: acoular.tprocess.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.


validates if sources fit together


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

num : integer

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

Samples in blocks of shape (num, numchannels).

The last block may be shorter than num.

«  MaskedTimeInOut   ::   tprocess   ::   TimePower  »