am_fm_synth()

audresample.am_fm_synth(num_samples, num_channels, sampling_rate, *, dtype=numpy.float32)[source]

Synthesizes an AM/FM signal.

Parameters
  • num_samples (int) – number of samples

  • num_channels (int) – number of channels in the output signal

  • sampling_rate (int) – sampling rate in Hz

  • dtype – data type

Return type

ndarray

Returns

signal with shape (number of channels, number of samples)