Skip to content

Modulation

Modulation is an amplitude modulation (AM) feature that modulates the output amplitude of each transducer over time. It applies a coefficient sequence common to all transducers while sampling it at a fixed period, thereby varying the intensity of the sound field produced by the Pattern over time.

Each sample is an 8 bit amplitude coefficient , which is multiplied by the transducer output amplitude and then divided by 255.

Each sample in the buffer is applied in order at the period of the SamplingConfig passed to Modulation::new.