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

learn more… | top users | synonyms (2)

0
votes
1answer
76 views

Turning sound into a graph

I'm writing a comprehensive text on graphs and Mathematica and in this context I have this, let's call it, creative gap between sound and graphs. There are plenty of ways one can create graphs from ...
2
votes
0answers
70 views

How to code a simple audio equalizer? [closed]

I would like to code a simple Manipulate-based equalizer to make bass and treble adjustments in wav-file, but I haven't found any clues in documentation. Wiki says that I have to deal with linear ...
2
votes
0answers
39 views

silent soundnote and superimposing sound objects

In Mathematica 9, Soundnote[None] has zero duration if it is the last note in a Sound expression. For instance, the sound object ...
3
votes
0answers
49 views

What SampleRate and SampleDepth does Mathematica use on output?

The Play function will happily accept arbitrary values for its SampleDepth and SampleRate ...
0
votes
1answer
51 views

Audio sample data from a Sound object

When generating a Sound object by using Sound primitives, like: Needs["Audio`"] sound = Sound[ListWaveform[{{1, 1}, {1.496, .7}, {2.501, .3}}, 265, 1]]; how can ...
4
votes
0answers
122 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. ...
3
votes
0answers
114 views

Is it possible to model the piano key attack?

My purpose is to model the attack of a piano key. As the key is pressed a sound must be emitted. When the key is released the sound must stop with decreasing volume. I have a partial success when ...
2
votes
1answer
82 views

Sampling a musical instrument (or re-tuning MIDI)

I'd like to try to convert a piece of MIDI music made with SoundNote to another tuning (not microtonal or even split-black-keys, just a slightly different tuning for each note). I searched for pitch ...
0
votes
1answer
105 views

Plot Notes present in sound sample

I would like to visualize a sampled sound, and place the sounds as notes starting from C0 to A8 or such. I have a table of ...
1
vote
1answer
180 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 ...
1
vote
0answers
67 views

Automatically Recording Sound

I was hoping I could recreate a noise cancelling set-up by recording sound from the microphone in my headset or from the computer and play it back in my speakers or headphones with the appropriate ...
2
votes
1answer
88 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 ...
0
votes
0answers
81 views

Play in Linux causes mathematica to freeze

It seems that when I run Play in Mathematica, something as basic as Play[Sin[440 * 2 π * t], {t, 0, 1}] the output generates ...
2
votes
1answer
266 views

Extract the left channel from an mp3 file

I'm trying to control where a sound is going to be heard, in the left For example, when I import an mp3 file, and I want to hear it only from the left ear, what should I do? I've never worked with ...
0
votes
1answer
122 views

ListLinePlot “Cannot Take Positions” error with Fourier of WAV file

When I try to do a Fourier analysis of a WAV file with a sample rate of 22050 I get an error "Cannot take positions". What am doing wrong? ...
5
votes
0answers
111 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 ...
5
votes
2answers
304 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 ...
4
votes
4answers
515 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: ...
1
vote
1answer
188 views

Generating a sound with pitch like Sin[2Pi t] as t steps from 0 to 1

I am trying to generate a sound with pitch that goes up and down like a sine wave from 0 to 2Pi. So the pitch should be ...
-1
votes
1answer
190 views

How to remove the background noise from a single sound file? [duplicate]

I wandering if the following steps are practical or not? Import a sound in wav format, if not (for example, mathematica does not support ...
5
votes
1answer
147 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 ...
4
votes
2answers
534 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, ...
4
votes
1answer
128 views

Import audio in uLaw format?

How do I import a uLaw-format audio file into Mathematica? Here's an example: hello-world.ulaw For reference, here's the same file in wav format: hello-world.wav As I understand it, the uLaw ...
1
vote
1answer
270 views

How to extract Audio Record data form Sound[SystemDialogInput[“RecordSound”] ?

When I set parameter "SoundReg" to collect Audio Steaming data - it's working After that I use Button\["Record"\] In my ...
2
votes
1answer
206 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 ...
4
votes
1answer
188 views

How to fix MIDI playback on OS X?

Sometimes sounds specified using SoundNote (i.e. things played using MIDI) don't play properly on OS X. Some notes are missing and some are stuck. At least this ...
0
votes
1answer
221 views

Can I take derivative of a function that represents a piece of music?

Can I take the derivative of a function that represents a piece of music? The music is given in .mp3, .midi or whatever comes in handy.
-1
votes
1answer
127 views

Creating a number station [closed]

This is a question about manipulating sound (wav files). The goal is to produce something that sounds like a number station broadcast, see e.g., 4:00 in http://www.youtube.com/watch?v=EdnoAJ7KoFE It ...
5
votes
1answer
121 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 ...
1
vote
1answer
121 views

How can I import sound from within a Manipulate expression?

I want to import sound from a file, record, and import sound. ...
0
votes
1answer
111 views

How to import sound file from computer? [duplicate]

I know you can import sounds/images from the Mathematica library, but I was wondering if I could import sounds I have on my computer (i.e. .wav files)? I've tried using the Import functon and properly ...
5
votes
1answer
68 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): ...
8
votes
2answers
1k 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, ...
4
votes
3answers
373 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 ...
6
votes
1answer
144 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 ...
1
vote
0answers
105 views

Better alternatives for the Sound function?

The Sound function represents the sound signal very primitive in my opinion. There are only two buttons (play and pause). No rewind, no playing from some point on (like the most sound players have). ...
4
votes
1answer
539 views

How to get the total intensity of a certain frequency range in an audio file?

Does anyone know how to get the total intensity of a certain frequency range in an audio file? Let's say an audio file has a frequency range from 0Hz to 20KHz, and I want to extract the total ...
3
votes
1answer
235 views

An ancient MIDI keyboard?

There is a demostration project http://demonstrations.wolfram.com/KeyboardAndComposer/ where you can compose Western music using a 97 keys simulated midi keyboard. I study eastern and ancient music ...
11
votes
3answers
553 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 ...
2
votes
2answers
278 views

Sound data Import Export

Can't regain the data after Export. Create an array of sampled amplitude values: 2. Visualize as sound 3. Save it 4. Get it back 5. ??? ...
5
votes
1answer
226 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 ...
9
votes
1answer
517 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 ...
9
votes
2answers
2k 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?
2
votes
3answers
283 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
0answers
235 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 ...
9
votes
1answer
335 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 ...
17
votes
1answer
333 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!
4
votes
2answers
250 views

How can I emit a sound only during a mouseover?

Emitting a constant sound or note (no interruptions) for a fixed duration is easy, but a dynamic duration, not so easy.
6
votes
1answer
736 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 ...
4
votes
1answer
401 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 ...