Hot answers tagged

20 votes
Accepted

How to align similar TimeSeries like ImageAlign?

One way to approach this is with "Dynamic Time Warping". First, preprocess your data to get the MFCC coefficients and extract the data from the time series: ...
bill s's user avatar
  • 68k
16 votes
Accepted

Sound synthesizer using Manipulate

First let me observe that your coding style makes debugging difficult, I highly recommend breaking giant expressions into manageable pieces. Second, in the code below I have used a different ...
Simon Woods's user avatar
  • 84.4k
16 votes
Accepted

How fast is my fidget spinner spinning? A sound experiment!

First, import the audio and extract usable data from it: ...
Miladiouss's user avatar
  • 1,833
16 votes
Accepted

Can Mathematica be used to edit MP3 tags?

Yes. The documentation mentions here that it can import ID3v1, ID3v2 and APE tags. The metadata is returned in a nested association. Now to try it on whatever mp3's I have lying around: ...
flinty's user avatar
  • 23.1k
16 votes

Generating random sequence of integers with ordering constraints

Perhaps have a look at DiscreteMarkovProcess using an appropriate transition matrix embedding your constraints? Here's a simple example, implementing 1-5 above, to ...
George Varnavides's user avatar
15 votes
Accepted

If we listen to the sound, why does $\sin(x^2)$ shrink and grow in intervals?

What (I think) happens is that you use a constant rate of $8000\,\text{Hz}$ on a steady increasing frequency. This leads to interesting effects when the frequency of the function gets bigger than you ...
Julien Kluge's user avatar
  • 5,255
13 votes

How do you remove noise to detect just the human voice?

About a year ago,I saw a demo in Labview that can detect the voice of killer whale in a setting of the sound of seawater. I want to try the similar thing in Mathematica. Based upon Vitaliy Kaurov's ...
partida's user avatar
  • 6,766
13 votes

How to get the frequency information of an mp3 audio?

You can see the spectrum of the first note played, (first 40000 points) ...
rhermans's user avatar
  • 35.9k
13 votes

How to record a sound and play the reverse of that in Mathematica?

Let's first try with a sound sample from MMA examples repository: s = Import["ExampleData/rule30.wav"] A FullForm of ...
glS's user avatar
  • 7,533
13 votes
Accepted

Identifying Silence in Audio

Import the subject audio: aud = Import["http://home.ustc.edu.cn/~xiaozh/SE/del_silences.wav"] Identify silences: ...
kjosborne's user avatar
  • 1,008
12 votes

How to measure Sample Rate?

One can also use Import[] to directly query the *.wav file's sample rate, like so: ...
J. M.'s lack of A.I.'s user avatar
11 votes

Welcome sound in Mathematica

There was a symbol called StartupSound. You could switch it on via the command: SetOptions[$FrontEnd, StartupSound -> True]...
user153012's user avatar
11 votes
Accepted

How to programmatically play an Audio object?

The following resulted from a lot of spelunking and reading the code of Audio`Play. ...
Szabolcs's user avatar
  • 232k
11 votes
Accepted

Beep anytime evaluation finishes

An alternative to EvaluationCompletionAction would be to adjust $Post. Try ...
Kiro's user avatar
  • 1,521
11 votes

Wolfram Neural Net Repository Questions

I believe I'm a heavy user of the neural network framework and the Wolfram Neural Network Repository(WNNR) and these are how I see the WNNR from a user's perspective. Hope it will be helpful. First of ...
xslittlegrass's user avatar
11 votes
Accepted

Problem with Spectrogram

You should get the old result back by setting MaxPlotPoints -> Infinity in the Spectrogram call, eg ...
carlog's user avatar
  • 311
10 votes
Accepted

Play the sound of $\pi$

Here's how to "dial" the digits of $\pi$ on a touch tone phone (code adapted and modernized from an old Mathematica demo, but see this as well): ...
J. M.'s lack of A.I.'s user avatar
10 votes

How to programmatically play an Audio object?

You can also use Sound`AudioToSound[] to convert the Audio[] object to a Sound[] object that ...
J. M.'s lack of A.I.'s user avatar
10 votes
Accepted

How to visualize overtones in Mathematica?

You can use Manipulate with an IntervalSlider to look at the different harmonics. ...
Bob Hanlon's user avatar
  • 149k
10 votes
Accepted

Why does Mathematica take so long to produce this sound?

Creating the audio signal as a vector first allows us to use more efficient ways to sample the function: ...
Henrik Schumacher's user avatar
9 votes

Creating a vibrato in Mathematica

How about solving the harmonic oscillator equation with a time-varying frequency? ...
Simon Woods's user avatar
  • 84.4k
9 votes
Accepted

How to Speak in a foreign language?

I let Mathematica parse the input into a speakable string, but then I send it to the operating system as if going through the command terminal. This allows me to set the voice flag for my installed ...
Timothy Wofford's user avatar
9 votes
Accepted

How to measure Sample Rate?

solo = Import[ "ExampleData/rule30.wav" ] ...
kglr's user avatar
  • 378k
9 votes
Accepted

Computing FundamentalFrequency

You can use Cepstrum,Wiki says It was originally invented for characterizing the seismic echoes resulting from earthquakes and bomb explosions. It has also been used to determine the fundamental ...
partida's user avatar
  • 6,766
9 votes

How fast is my fidget spinner spinning? A sound experiment!

Using Fourier Discrete Transform. Let's start by observing the Fourier content of the beginning of the signal: ...
anderstood's user avatar
  • 14.1k
9 votes

Why does Mathematica take so long to produce this sound?

The way you have created the function you are forcing MMA to keep evaluating your expression, which although lightweight on its own, is rather heavy when it needs to be repeated for different values ...
alex's user avatar
  • 1,396
8 votes

Creating a vibrato in Mathematica

As an alternative, let's let the derivative of the phase vary with time. A fixed tone will have $d \phi / d t = 2 \pi \cdot 440$. A vibrato that you want should have $d \phi / d t = 2 \pi (440 + \sin ...
LLlAMnYP's user avatar
  • 11.4k
8 votes
Accepted

How to define a periodic function from an interval to Play (monotonic) sound

You can define a periodic function by this simple idiom T = 1; g[x_ /; 0 <= x <= T] := x^2; g[x_] := g[Mod[x, T]] Here, ...
halirutan's user avatar
  • 112k
8 votes

How do I use Mathematica to upload to Clyp?

Important Note: Clyp seems to have changed its API-related policies recently in a way that breaks the routine given below. I do not know how to fix this. I can only guarantee that it was working well ...
J. M.'s lack of A.I.'s user avatar
8 votes

Generating Shepard and Risset tones

to generate middle c.. you make the air vibrate 262 times in 1 second If you give mathematica a Sine wave that repeats 262 times a second it will convert this to sound wave. For a Sine function to ...
conor's user avatar
  • 7,349

Only top scored, non community-wiki answers of a minimum length are eligible