Skip to main content
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
  • 69.4k
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
  • 85.2k
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,883
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
  • 25.6k
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,385
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,683
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 missing motivation'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
  • 236k
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

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
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 missing motivation'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
  • 160k
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
9 votes
Accepted

How to measure Sample Rate?

solo = Import[ "ExampleData/rule30.wav" ] ...
kglr's user avatar
  • 399k
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,836
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.4k
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,438
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 Cosnett's user avatar
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 missing motivation's user avatar
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
  • 25.6k
7 votes

How to perform Blind Source Separation on an audio mix?

In this post the first question is fully answered, the second question is answered using Independent Component Analysis, not Fourier transform. For further details on using Independent Component ...
Anton Antonov's user avatar
7 votes

Close encounters of the third kind

Using info from here: Wikipedia Piano key frequencies ...
Chris Degnen's user avatar
7 votes
Accepted

Combining Midi Files

Explanation Sound can combine the two sound sequences: Sound[{s1, s2}] the problem you may be facing is that if you do ...
rhermans's user avatar
  • 36.9k
7 votes

How to generate Pink Noise using Mathematica 8

Mathematica 8 does not have AudioGenerator, but you can implement your own pink noise function. I looked up how to do this, and the simplest way seems to be the ...
Szabolcs's user avatar
  • 236k
7 votes
Accepted

Weird Export of .M4A format

I found the same problem with version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) The documentation for M4A says that MMA follows the ISO/IEC 13818-7 standard and that "a few sampling ...
creidhne's user avatar
  • 5,250
7 votes
Accepted

Frequency of ticks in mechanical watches

Third, much better answer This is a bit easier to understand graphically, so I put a Manipulate together. ...
Carl Lange's user avatar
  • 13.1k

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