Audio Synthesis
The Wolfram Language provides extensive support for the creation, analysis, and manipulation of audio data, fully integrated with the Wolfram Language's powerful mathematical and algorithmic capabilities.
The starting point for audio synthesis is the AudioGenerator function.
AudioGenerator[model] | generates one second of audio of a given model |
AudioGenerator[model,t] | generates t seconds of audio |
The simplest way to generate a signal is to use one of the native oscillator models supported in AudioGenerator.
All oscillator models accept time-varying parameters for frequency and phase: the input can be a TimeSeries, another Audio object, or even a pure function.
In addition to oscillators, AudioGenerator allows for the creation of different kinds of noise signals.
White noise is characterized by a flat spectrum. By default, sample values are picked from a uniform distribution, but it is possible to change that without affecting the spectrum.
Using {"Color",α} will generate a "colored" noise signal whose spectrum follows a f-α distribution. "Pink", "Brown", and "Blue" are instances of colored noise, where the α has values of 1, 2, and .
AudioGenerator can be used to generate a signal by sampling a random process.
Create an audio signal starting from a TimeSeries:
Subtractive Synthesis
By processing an audio object with one or more frequency-selective filters, it is possible to manipulate its harmonic content and therefore change its timbre. This technique is effective if the starting audio object is harmonically rich.
Additive Synthesis
In contrast to subtractive synthesis where harmonics are attenuated using filters, additive synthesis is based on the addition of harmonics. The effect is obtained with linear combination of sine waves at different frequencies, where the user has control over the coefficients of the linear combination.
Amplitude Modulation
In AM, two signals are used, called carrier and modulator. The result is computed using carrier(1+μmodulator), where the scaling constant μ is called modulation index.
If the modulator is a sinusoid, for each component of the carrier at a frequency f, a pair of sidebands is created at frequencies f±m, whose amplitude is controlled by the modulation index.
Frequency Modulation
In the case of FM, the frequency of the carrier signal is controlled by the modulator and the modulation index. As the modulation index increases, sidebands occur above and below the carrier frequency at intervals of the modulating frequency.
The position of the sidebands is determined by the ratio between the carrier and modulator frequencies. Changing this ratio, it is possible to obtain both harmonic (typical of pitched instruments) and inharmonic (typical of percussive instruments) spectra.