Use Time Series to Generate Audio
Control the frequency of the sine wave with a regularly sampled TimeSeries.
Copy to clipboard.
In[1]:=

✖
n = 50;
frequencies = RandomReal[{100, 300}, n];
reg = TimeSeries[frequencies, {0, Automatic, .3}];
Copy to clipboard.
In[2]:=

✖
AudioGenerator[{"Sin", reg}]
Control the frequency of the sine wave with an irregularly sampled TimeSeries.
Copy to clipboard.
In[3]:=

✖
times = Accumulate[RandomReal[{0.1, .5}, n]];
irreg = TimeSeries[frequencies, {times}];
Copy to clipboard.
In[4]:=

✖
AudioGenerator[{"Sin", irreg}]
Generate a white noise with WhiteNoiseProcess.
Copy to clipboard.
In[5]:=

✖
sample = RandomFunction[WhiteNoiseProcess[1/3], {88200}]
Out[5]=

Rescale the sample to the length of 2 seconds and generate audio.
Copy to clipboard.
In[6]:=

✖
AudioNormalize@
AudioGenerator[TimeSeriesRescale[sample, {0, 2, 1/44100}]]
Copy to clipboard.
In[7]:=

✖
AudioNormalize@
AudioGenerator[TimeSeriesRescale[sample, {0, 2, 1/44100}]];
AudioPlot[%]
Out[7]=

Generate a different type of noise directly with FractionalGaussianNoiseProcess.
Copy to clipboard.
In[8]:=

✖
AudioNormalize@AudioGenerator[FractionalGaussianNoiseProcess[1/3], 2]
Copy to clipboard.
In[9]:=

✖
AudioNormalize@AudioGenerator[FractionalGaussianNoiseProcess[1/3], 2];
AudioPlot[%]
Out[9]=
