Questions tagged [sound]

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

Filter by
Sorted by
Tagged with
24 votes
5 answers
4k 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 ...
Mike Honeychurch's user avatar
7 votes
2 answers
3k 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, ...
Coolwater's user avatar
  • 19.9k
8 votes
4 answers
1k 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 ...
George Wolfe's user avatar
  • 5,422
39 votes
1 answer
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 ...
bobthechemist's user avatar
23 votes
3 answers
8k 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 ...
F'x's user avatar
  • 10.7k
12 votes
3 answers
1k 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 ...
Murta's user avatar
  • 26k
4 votes
1 answer
1k views

How to manipulate spoken text with Speak?

I need to vary the speed, pause, reverse and in general control aspects of the playback of Speak[] is this possible?
M.R.'s user avatar
  • 31k
31 votes
3 answers
11k 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?
user4795's user avatar
  • 437
16 votes
1 answer
1k 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 ...
István Zachar's user avatar
14 votes
3 answers
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, ...
mbork's user avatar
  • 949
11 votes
2 answers
1k 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. ...
Ziofil's user avatar
  • 2,469
11 votes
1 answer
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?
Suzan Cioc's user avatar
  • 2,023
10 votes
4 answers
1k 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 ...
Ernst Stelzer's user avatar
9 votes
1 answer
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 ...
Timothy Wofford's user avatar
6 votes
4 answers
702 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: ...
xzczd's user avatar
  • 62.9k
6 votes
1 answer
292 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 ...
Rahul's user avatar
  • 135
3 votes
2 answers
303 views

Clickable clock making sound

I have a moving clock Dynamic[Refresh[ClockGauge[], UpdateInterval -> 1]] which should be clickable. Program should make a sound when hand of a clock will ...
user40113's user avatar
2 votes
1 answer
317 views

Export an animation as .avi file with sound?

If I have a list myTb containing Image objects, I can export the list as an .avi file using the command ...
Kagaratsch's user avatar
  • 11.9k
2 votes
1 answer
859 views

Demonstrate aliasing effect in sound

I'm trying to demonstrate the aliasing effect using sound, that is, when the sample rate is fixed and the sound frequency is increased, we would hear the sound pitch go down when we pass the Nyquist ...
xslittlegrass's user avatar
20 votes
4 answers
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 "...
Mr.Wizard's user avatar
  • 269k
11 votes
2 answers
2k 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 ...
J Mark Inman's user avatar
11 votes
1 answer
939 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 ...
Andrew Brēza's user avatar
8 votes
3 answers
3k 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 ...
sebastian c.'s user avatar
  • 1,953
7 votes
1 answer
446 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 ...
Bob Young's user avatar
7 votes
2 answers
7k 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 ...
Sayakiss's user avatar
  • 859
7 votes
2 answers
382 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. ...
Chris Degnen's user avatar
  • 30.6k
7 votes
2 answers
514 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 ...
xzczd's user avatar
  • 62.9k
6 votes
2 answers
624 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 ...
abwatson's user avatar
  • 1,889
6 votes
1 answer
750 views

Getting MIDI SoundNote Pitches as Numeric Values

I'm trying to do some evaluation on notes (specifically the pitches) imported from a MIDI file. I've imported a list containing tracks of sound notes with ...
pk-nb's user avatar
  • 241
5 votes
1 answer
197 views

Identifying Silence in Audio

I have some audios that contain short spaces of silence with different periods of time. Looking for information, I found this question. The audio example is this. Is there a way the program can do ...
LCarvalho's user avatar
  • 9,145
5 votes
1 answer
637 views

How can I regulate 'Play sound duration' in Mathematica 8

How can I regulate the time of play sound[s] - duration in Mathematica 8. I want to import and save wav file in *.nb document & manipulate (with) the sound duration, for example, select sound ...
Alexander's user avatar
3 votes
2 answers
826 views

How to add echo to audio file?

After importing a sound file, how can I add an echo to it? sound = Import["test.wav", "SampleRate"] It needs to be apply after time specified by user. This is ...
hermano9's user avatar
  • 197
3 votes
1 answer
2k views

How to find the local maximum of a list [duplicate]

I have imported a wav sound that a = Import["sound.wav"] and we know that soundStrength = a[[1]][[1]] is a list of sound ...
Nepls's user avatar
  • 31
2 votes
1 answer
1k views

Finding peaks on a Periodogram

I am currently working on a school project involving modelling sound recordings of piano notes. I have used the periodogram function to graph my recording and would like to find the peaks of this ...
user374560's user avatar
2 votes
3 answers
1k views

How can I convert a Sound created with SoundNote to a list of samples?

I have a Sound created with SoundNote, as follows: simpleSound = Sound[SoundNote["C"]] ...
Jabavu Adams's user avatar
1 vote
1 answer
4k views

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

I would like to define a function on an interval and then duplicate it on other intervals of the same length in order to define a (generally discontinuous) periodic function, from which I could get a (...
marfi's user avatar
  • 115
1 vote
1 answer
444 views

Strange behavior: Cannot import data as MP3 format anymore

I am having the strangest problem since a day: Mathematica is no longer (after a reinstall) able to import MP3 files. I think these details should not be relevant, but they are all there are: It ...
ahron's user avatar
  • 113
1 vote
1 answer
243 views

How to use AudioTrim to delete the silences?

I have an audio file named del_silences.wav. I want to delete the silence intervals. But using AudioTrim, the audio almost has no change: ...
partida's user avatar
  • 6,766
0 votes
1 answer
244 views

Remove sound emitted after evaluation

After the evaluation of a cell Mathematica emits a sounds: how can I remove it? If needed, I use v.10 on a Windows 8.1 64 bits machine.
mattiav27's user avatar
  • 6,525