Acoular 24.05 documentation


«  SineGenerator   ::   signals   ::   sources  »


class acoular.signals.GenericSignalGenerator

Bases: SignalGenerator

Generate signal from output of SamplesGenerator object.

source = Trait(SamplesGenerator)

Data source; SamplesGenerator or derived object.

sample_freq = Delegate('source')

Sampling frequency of output signal, as given by source.

numsamples = Property()

Number of samples to generate. Is set to source.numsamples by default.

loop_signal = Bool(True)

Boolean flag, if ‘True’ (default), signal track is repeated if requested numsamples is higher than available sample number


Deliver the signal.

array of floats

The resulting signal as an array of length numsamples.

«  SineGenerator   ::   signals   ::   sources  »