comnum.fm_modulate#

comnum.fm_modulate(m, fs, deviation_hz)#

The complex envelope of the frequency modulation of the message m (sampled at fs) with the peak deviation deviation_hz for |m| = 1: the phase sums 2π Δf m[n] / fs.

Parameters:
  • m (array_like) – the real message.

  • fs (float) – the sampling rate (Hz).

  • deviation_hz (float) – the deviation of m = 1 (Hz); 1 for a message already in hertz of deviation (the multiplex of fm_multiplex()).

Returns:

unit-amplitude samples (complex128).

Return type:

numpy.ndarray

Raises:

ValueError – for an input that is not a 1-D array of real numbers.