Performs phase modulation of a series.
MODPM(s, fc, pdev, p0)
s |
- |
A series or table, the input series to modulate. |
fc |
- |
Optional, a real. The center frequency of the phase modulated result. Defaults to -1, estimate the center frequency using the FFT. |
pdev |
- |
Optional, a real. The phase deviation.
Defaults to π |
p0 |
- |
Optional, a real. The initial phase. Defaults to 0.0. |
A series, the phase modulated output.
W1: gtriwave(1000,.001, 4)
W2: modpm(w1)
W3: demodpm(w2)
The triangle series of W1 is phase modulated between 0 and π/2 radians in W2. W3 recovers the modulated series.
W1: gtriwave(1000,.001, 4)
W2: modpm(w1, 200, pi/3, pi/20)
W3: demodpm(w2, 200, pi/3, pi/20)
Same as above except the series is phase modulated at a center frequency of 200 Hz between 0 and π/3 radians with an initial phase of π/20 radians.
The center frequency, fc, should be less than rate(s)/2.
See DEMODPM to demodulate a phase modulated series.
See MODFM to frequency modulate a series.