# Tagged Questions

Questions relating to Mathematica's sound and audio functionality, including Play, Sound and Speak

2k views

### May the Fourth be with you

Happy Star Wars day. I was playing around with the image manipulation functions in Mathematica in an attempt to recreate the Star Wars crawl. There's an HTML/CSS implementation which is in my ...
5k views

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

How do you detect different sound frequencies and cut off parts in an audio file? Among instruments, how do you pick up the human voice?
2k views

### Is it possible to use Mathematica to record sound and/or vision?

I think the title says it all. I know about ImageCapture which seems to capture stills. Can ImageCapture be made to capture a ...
3k views

### Can one find the beat of a tune with Fourier analysis?

I'm trying to find out if it's possible to find the beat of a tune by Fourier analysis with Mathematica. I'm taking a 44.1 kHz sample sound and hoping that I might get a nice peak for a frequency ...
421 views

### How can I interrupt Speak?

I want to use an event handler to stop speaking: Speak[ExampleData[{"Text", "DonQuixoteISpanish"}]] The only way I can stop this is by restarting mathematica!
1k views

### Random data generator

Inspired by Quality of random numbers I would like to set up a true random data generator in Mathematica. My idea is to use the static from an open microphone. I recall reading about extracting the "...
748 views

### Manipulating a continuous stream of sounds

I need some audio-feedback when a locator is moved on a surface. I have the following code that produces a beep every time the dynamic controller is interacted with such that the pitch of the sound ...
2k views

### How to approximate a given WAV file with trigonometric series?

I'd like (together with a few people) to prepare a presentation about Fourier series for middle/high school students. I thought it might be quite cool to play a violin sound from, say, a WAV file, ...
956 views

### How to play microtonal music using Mathematica?

I am trying to model microtonal music using Play. I have only partial success because it takes such a long time to make some sound. Could you please have a look ...
494 views

### Realtime audio processing using Dynamic

Can I make real time audio processing with Mathematica in the same way I can do with images using Dynamic[CurrentImage[]]. I know that is possible to use ...
991 views

### Creating a realtime MIDI Out

I have a live stream of notes and note velocities using SoundNote and SoundVolume. My problem is that I have no idea how to ...
1k views

### Making a wav file from a list of numbers in Mathematica

I have a list of numbers from a simulation of acoustic pressure generated by a virtual musical instrument by another program (Comsol multiphysics). I would like to "hear" the tone produced by ...
4k views

### How to extract sample values from an imported WAV file?

Suppose I read a file with B = Import["something.wav"] Now how can I obtain a list of sample values?
784 views

### How do I change the way Mathematica pronounces English words (e.g. “futile” is not pronounced correctly)?

I am absolutely desperate. I cannot get my Borg to pronounce "futile" correctly. Speak["Resistance is futile."] Leo pronounces "futile" as expected and there is ...
368 views

### How to export Speak output?

I made a series of interval workouts based on Speak[], where the voice tells me when the intervals start, when they stop and how much time I have left to prepare. ...
263 views

### Creating a vibrato in Mathematica

I am trying to get Mathematica to output a vibrato; a tone which has a frequency that slightly varies. To get a tone with a non-changing frequency I use this command: ...
411 views

### Multiple instrument chord

I would like to create a chord using multiple instruments. This started as an attempt to explain music to a friend but my curiosity has taken over. I am familiar with the SoundNote function. I know ...
486 views

### How to add a short wav music clip into a Mathematica animation

I have the following Mathematica animation: Animate[Plot[k*x^2, {x, -2, 2}, PlotRange -> {{-2, 2}, {-10, 10}}], {k, -2, 2, 0.1}] I also have a sound file ...
965 views

### How to Speak in a foreign language?

A previous question changed the pronunciation by changing the spelling of words or by externally changing the default system voice. This is useful for speaking in foreign languages too, but I don't ...
327 views

### Welcome sound in Mathematica

My first introduction with Mathematica was about eleven years ago. It was still version 4.2 which had a nice welcome sound whenever you opened a new notebook. However this welcome sound is absent in ...
177 views

### Is it possible to concatenate sounds?

I used to be able to make a Table of ListWaveform objects, and Export them; ...
171 views

### Morse Code Spacing

Trying to make a function to convert text into morse code and play the sound. Have it pretty much completed, but I cannot get mathematica to emit no sound so I can have a pause between the dots and ...
426 views

### How to extract notes and chords from audio?

I have a 3-second recording of a guitar chord which you can safely download here. I'm trying to use Mathematica's wavelet features to find out the notes in the chord, at least the docs says that ...
391 views

### Why can I still hear sound when the frequency of the periodic function inside Play is lower than the range of human ear?

This question is originally part of this question, but this issue seems to be different from the former one, so I think it's better to start another question for it. Usually, human can't hear sound ...
1k views

### How to use and input audio wav file into a Wolfram demonstration

I am trying to send a Wolfram demo, which contains a sound wav file. sound = Import["C:/myfile.wav", "Data"]; snd := sound[[1]]; or snd = sound[[1]]; Is it ...
290 views

### More elegant function construction for blues loop

Is there a more elegant way to do this: ...
81 views

### Duration of each note $\pm \epsilon$

Apologies if this has been asked before, but I can't seem to find a solution. I have a little track - eg: ...
78 views

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

I have a 1D Table, something like this, that I want to turn into musical notes: ...
184 views

### Why is there a limit of 15 different instruments to be played simultaneously, with Sound / SoundNote?

It seems to be impossible to play more than 15 different instruments simultaneously with the Sound[{Soundnote[...],...}] construct. Any guesses why it is so? With ...
214 views

### Manipulating the pitch of a sound

After reading Manipulating a continuous stream of sounds I have to ask about controlling the frequency of a Sin sound in a continuous manner, with a ...
597 views

### Why can I still hear sound when the frequency of the periodic function inside Play is higher than the range of human ear?

We know that usually sound that is perceptible by humans has frequencies from about 20 Hz to 20,000 Hz, but as the title said, I can still hear the sound of the outputs of the following code: ...
261 views

### How to measure Sample Rate?

How do I measure the sample rate of an imported file in Mathematica? I imported the WAV file: solo = Import["solo.wav"] When I wrote: ...
1k views

### Frequencies represented in a DFT list (Fourier[])

I have a sound sample (sample rate: 44100). When I have a list l with n successive elements from the sample, ...
139 views

### Sound synthesizer using Manipulate

Sound synthesizers, both digital and analog, often include a parameter section for shaping the amplitude of a sound wave over time. This parameter section is commonly known as an "ADSR EG" (attack, ...
693 views

### Using Manipulate to vary the frequency of a sound produced by SoundNote[]

I have tried various ways to combine Manipulate and Sound/SoundNote that would allow me to vary the frequency of a sound while it is being produced. The addition of Dynamic didn't help, but did ...
108 views

### How to make Play scrubbable?

For longer audio clips, the functionality provided by Play or Sound is clunky. I find myself wanting to scrub through with a ...
106 views

### To style Sound object

While doing some signal processing research my aesthetic feelings were heavily struck by following output: The problem here is that 211.96 s label is partially ...
163 views

### How to loop a sound

I have created a sound which I would like to play continuously until stopped, by looping back to the beginning. The sound is represented as list of samples, which can be played by ...
174 views

### LowpassFilter in v10: unit issues?

Bug introduced in 10.0.0 and fixed in 10.1.0 I tried this with a clean start and no documents loaded. Now, evaluating the following on the documentation page for ...
199 views

### Looking to create a lesson on sensory perception of sound

I'm looking to show students a lesson on sensory perception, more specifically on masking. I know a little Mathematica but sound processing has evaded me. I would like to create a white noise and ...
103 views

### How to sustain (pedal) a note?

I searched the documentation for SoundNote, Sound, EmitSound, etc... but cannot find any ...
104 views

### Mathematica 10 Audio Export Issue

Summary of the problem: When exporting data as an audio file (AIFF/WAV etc.), there appears to be unwanted scaling and offset in the data such that the minimum and maximum values are forced to be -1 ...
79 views

### Why does Play fail to produce a widget sometimes?

If I define: aNote[x_] := Sin[440 * 2 * Pi * x]; then this works (i.e. it produces a widget with a Play button, and clicking on this button produces an A note): ...
132 views

### Is there a way to prevent audio from becoming out of sync with graphics?

The code below could be used to say help Pre-Kindergarten and Kindergarten children learn about the numerals and numbers from one to 9. The problem is that this age group would be prone to just ...
111 views

### realtime audio processing possible? [duplicate]

I'm an improvising musician and also a sound engineer. So, I'm interested in the creative process of music as well as the science of sound. I would like to connect my guitar with an interface to my ...
197 views

### How to plot Spectrogram of SoundNote?

I try to use the expression: Spectrogram[Sound[SoundNote[{"C", "E", "G", "C5"}, 10, "Vibraphone"]]] to plot the spectrogram of a SoundNote. But Spectrogram ...
239 views

### Resources for Sound Synthesis & Design

Are there any resources for sound synthesis using Mathematica? This page, Mathematica: Audio Synthesis Software, refers to other software packages, e.g. Max/MSP and Csound, for real-time synthesis. ...
185 views

### How to get the frequency information of an mp3 audio?

I have: music = Import["http://www.qlcoder.com/uploads/145425353234642.mp3", "mp3"] Then I get: But what I want to get is ...