GenericSignalGenerator¶
- class acoular.signals.GenericSignalGenerator¶
Bases:
SignalGenerator
Generate signal from output of
SamplesGenerator
object.This class can be used to inject arbitrary signals into Acoular processing chains. For example, it can be used to read signals from a HDF5 file or create any signal by using the
acoular.sources.TimeSamples
class.- source = Instance(SamplesGenerator)¶
Data source;
SamplesGenerator
or derived object.
- amplitude = Float(1.0)¶
Amplitude of the signal. Defaults to 1.0.
- num_samples = Property()¶
Number of samples to generate. Is set to source.num_samples by default.
- loop_signal = Bool(True)¶
Boolean flag, if ‘True’ (default), signal track is repeated if requested
num_samples
is higher than available sample number
- signal()¶
Deliver the signal.
- Returns:
- array of floats
The resulting signal as an array of length
num_samples
.