# SourceMixer¶

class acoular.sources.SourceMixer

Mixes the signals from several sources.

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

List of SamplesGenerator objects to be mixed.

sample_freq = Trait( SamplesGenerator().sample_freq )

Sampling frequency of the signal.

numchannels = Trait( SamplesGenerator().numchannels )

Number of channels.

numsamples = Trait( SamplesGenerator().numsamples )

Number of samples.

validate_sources()

Validates if sources fit together.

result(num)

Python generator that yields the output block-wise. The outputs from the sources in the list 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). Samples in blocks of shape (num, numchannels). The last block may be shorter than num.