Acoular 16.5 documentation

Mixer

«  MaskedTimeInOut   ::   tprocess   ::   TimePower  »

Mixer

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.

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:

num : integer

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.

«  MaskedTimeInOut   ::   tprocess   ::   TimePower  »