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
  • 68.8k
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.9k
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,873
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
  • 24.8k
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,335
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,786
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
  • 36.3k
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,593
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
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 eventual burnout's user avatar
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 eventual burnout'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
  • 234k
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
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 eventual burnout'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
  • 155k
10 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
  • 301
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
Accepted

How to measure Sample Rate?

solo = Import[ "ExampleData/rule30.wav" ] ...
kglr's user avatar
  • 392k
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,786
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.3k
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

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 eventual burnout'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,389
8 votes

Combining Midi Files

Here is an answer using Audio and AudioData. ...
Anton Antonov's user avatar
8 votes
Accepted

I believe Beep uses the system sound which is obnoxious and rude. How does one create a friendlier less intrusive sound?

It's not too hard to make your own Beep[] and change the definition. You may have to let Mathematica download the Marimba sound the first time you use it, or ...
flinty's user avatar
  • 24.8k
7 votes
Accepted

How to get the frequency information of an mp3 audio?

Duration = 9.95265 sec, frequency in Hz on x axis: ...
mrz's user avatar
  • 11.7k
7 votes

Function that counts number of consecutive elements after iterator in Table command

U = {10, None, None, 0, 2, 3, 5, None, 2, 0, 3, None, 7, None, None, 3, 2, 3, 7, None, None, 0, 5, None, 5, None, 2, 3, None, None, 7, None}; dur = 1; len = Length@U; Sound[ Table[ SoundNote[ ...
Alexey Golyshev's user avatar
7 votes

importing a 150 MB .wav crashes Mathematica

I generated a 150MB WAV file by converting some MP3 in an external program, and then tried to Import it into Mathematica: ...
MarcoB's user avatar
  • 66.6k

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