dhbw.dasp.signal module
- dhbw.dasp.signal.chirp(f0, f1, t)[source]
Returns a chirp signal in which the frequency alterates over the time.
- Parameters:
- f0float
Start signal frequency in hertz.
- f1float
End signal frequency in hertz.
- tarray
Timeline array.
- dhbw.dasp.signal.harmonic(f, t)[source]
Returns a sine wave of the specified frequency.
- Parameters:
- ffloat
Signal frequency in hertz.
- tarray
Timeline array.
- dhbw.dasp.signal.harmonics(f, n, t)[source]
Returns a harmonic wave including the specified amount of overtones.
- Parameters:
- ffloat
Fundamental signal frequency in hertz.
- nint
Number of additional overtones.
- tarray
Timeline array.
- dhbw.dasp.signal.noise(t, s=1)[source]
Returns a random white noise based on the truncated normal distribution.
- Parameters:
- tarray
Timeline array.
- sfloat, optional
Scale parameter between 0 and 1.
- dhbw.dasp.signal.sawtooth(f, t)[source]
Returns a sawtooth shaped wave of the specified frequency.
- Parameters:
- ffloat
Signal frequency in hertz.
- tarray
Timeline array.