Questions tagged [sound]

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

Filter by
Sorted by
Tagged with
38
votes
1answer
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 ...
27
votes
4answers
975 views

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

I would like to measure how fast my 6-bladed fidget spinner spins. To do so, after giving it a hard spin, I gently touch the spinner with a wooden stirring stick to create a buzzing sound which ...
24
votes
3answers
8k 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?
24
votes
4answers
3k 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 ...
23
votes
2answers
453 views

How to align similar TimeSeries like ImageAlign?

I have three audio files. ...
22
votes
3answers
7k 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 ...
21
votes
1answer
501 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!
20
votes
4answers
2k 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 "...
17
votes
2answers
826 views

How to programmatically play an Audio object?

A Sound object can be programmatically played using EmitSound. Example: ...
16
votes
1answer
940 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 ...
14
votes
3answers
4k 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, ...
13
votes
3answers
1k 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 ...
12
votes
1answer
2k 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 ...
11
votes
1answer
6k 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?
11
votes
2answers
473 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 ...
11
votes
2answers
862 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. ...
11
votes
2answers
593 views

How to combine Neural Network and Audio like Classify?

I want to combine Audio object and Neural Network ,first thing I remember is Classify ...
11
votes
2answers
878 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 ...
11
votes
2answers
1k 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 ...
10
votes
3answers
362 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: ...
10
votes
4answers
971 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 ...
10
votes
1answer
760 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 ...
10
votes
1answer
305 views

How to make Audio work dynamically and separately like DynamicImage?

In Mathematica, there is a new function DynamicImage that can enlarge or drag picture dynamically. So, is there a function ...
10
votes
1answer
690 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 ...
9
votes
2answers
563 views

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

How do I record a sound and then play its reversed version?
9
votes
2answers
645 views

Beep anytime evaluation finishes

These days I have to do long evaluations and I would like to get back to my notebook as soon as they end. Is there a way to ask Mathematica to produce a sound signal anytime it ends an evaluation? I ...
9
votes
2answers
289 views

Frequency of ticks in mechanical watches

I'm looking to find the frequency of a relatively large dataset (or a relatively short audio file) of a repeating sound, like so: Here are the original files, for those willing to play. :) eta2412 ...
9
votes
2answers
699 views

How to perform Blind Source Separation on an audio mix?

There have been several scholarly publications on the Blind Source Separation (BSS) problem. Some are aimed at audio signals. I wish to start with a simple case. I have generated a custom sound mix ...
9
votes
1answer
1k 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 ...
8
votes
1answer
2k 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 ...
8
votes
1answer
168 views

Audio equivalent of CurrentImage

Unfortunately, there is no CurrentAudio[] function yet. I'm trying to poll for 1 second clips of audio (as fast as possible) from my computer's microphone (and ...
8
votes
0answers
77 views

Implementing custom audio filters that work on file-backed Audio[] objects

Audio supports out-of-core processing. We can create a file-backed Audio object using au = Audio[File[...]]. Any filters ...
7
votes
2answers
468 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 ...
7
votes
2answers
4k 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 ...
7
votes
2answers
201 views

Combining Midi Files

I have a list of imported midi files, as Sound objects. I simply want to string them together. I've tried a lot of things and nothing has worked, apart from a hack-y version of manipulating the midi's ...
7
votes
2answers
205 views

Manipulate a list representing Bach's Prelude in C

Bach's Prelude in C is repetitious in an easily modelable manner: Each of the first 32 bars is structured so that, if given the first 5 notes, you can construct the entire 16 note bar by appending ...
7
votes
3answers
367 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 ...
7
votes
1answer
238 views

Is it possible to concatenate sounds?

I used to be able to make a Table of ListWaveform objects, and Export them; ...
7
votes
1answer
157 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 ...
7
votes
1answer
92 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): ...
7
votes
2answers
236 views

How to capture the system sound output, but not the microphone?

This is my $Version "11.1.1 for Microsoft Windows (64-bit) (May 16, 2017)" We have two methods to record sounds in ...
7
votes
1answer
389 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 ...
7
votes
0answers
210 views

Synthesizing Kylo Ren Voice in Mathematica - Start Wars

Kylo Ren voice in Star Wars The Force Awakens is very cool. When I watched the movie in 2015, one of the first things that came up to my mind was how to do such voice in Mathematica. At the time ...
7
votes
0answers
302 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 ...
6
votes
2answers
2k 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, ...
6
votes
3answers
2k views

Notification sound when simulation done? [duplicate]

Possible Duplicate: Customize front end to add notifications when evaluation finishes? How to setup sound alert notification when simulation is complete? I need to do something else while ...
6
votes
2answers
397 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, ...
6
votes
1answer
202 views

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

$\sin(x^2)$ gives (it seems) an ever shrinking sine wave: Its frequency gets higher, and the pitch of the sound wave should too, right? But if we pass the $\sin$ through the ...
6
votes
1answer
2k 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 ...
6
votes
2answers
313 views

More elegant function construction for blues loop

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