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

learn more… | top users | synonyms (3)

5
votes
1answer
76 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 ...
0
votes
1answer
36 views

Determine what a sound snippet contains?

The function SystemDialogInput["RecordSound"] brings up an interface that lets you record a sound object. Let's say we first record a one second long snippet of ...
1
vote
1answer
45 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 ...
2
votes
0answers
38 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 ...
3
votes
0answers
55 views

How to produce timely spoken text?

On my system (Mac OSX 10.10.4) the following code produces only the first utterance. The second one is produce when the user interacts in some way with the front end (mouseover, mouseclick). How can I ...
3
votes
1answer
78 views

Extracting a time series from a sound object

After importing a sound file, how can I generate a time series (preferably as an $n\times 1$ matrix) which gives the intensity at equal time intervals?
7
votes
1answer
191 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 ...
1
vote
1answer
50 views

How to cut imported audio?

How to cut an audio clip imported by the Import function? E.g. I'm interested in the content starting from the 100th sample up to the 200th. I'd like to avoid ...
1
vote
0answers
64 views

Raster image to a waveform, for audio adjustments, as image effects? [closed]

How can a normal (raster) image: Image["URL"] Be converted in the Wolfram Language to a waveform, for example in greyscale, being the sum of all the harmonics in ...
0
votes
1answer
74 views

Calculating functions of sounds

I've seen that it is possible to create a sound from functions: Sound[{Play[Sin[1000 t (1 + t^2)], {t, 0, .2}], Play[Sin[500 t (1 + t^3)], {t, 0, .5}]}] Is is ...
5
votes
0answers
109 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 ...
3
votes
1answer
198 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?
7
votes
2answers
181 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. ...
1
vote
1answer
71 views

How to use ListPlay and PlayRange in Manipulate

The following correctly produces a click sound: ...
5
votes
2answers
80 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 ...
1
vote
0answers
52 views

EmitSound delay [closed]

I am experiencing a long delay (6 sec) between evaluating an EmitSound expression and the actual sound output. This may have happened after upgrading to Mma 10.0.2 ...
5
votes
0answers
142 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 ...
2
votes
1answer
122 views

How to get a audio file's duration time in Mathematica?

I have a *.avi file and if I want to know the file's duration time: I can use this code to get the result: Import["test.avi", "Duration"] or the code to get the ...
4
votes
1answer
155 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 ...
1
vote
0answers
148 views

Can Mathematica reconstruct an audio signal from a given spectrogram

I just realized that Mathematica can easily construct a spectrogram for a given .wav file. My question is, to what extent can this process be inverted in Mathematica? Namely, lets say I have the ...
4
votes
2answers
91 views

Save imported sound into a notebook (so I can e-mail it)

At the end of my code I'd like to put an imported (wav) sound. I would then play it with EmitSound[my_sound] when this cell will ...
3
votes
0answers
68 views

What determines quality of midi playback in Mathematica?

I'm using Mathematica 10, and ocassionally when I import a midi file and play it, the sound is very disappointing! the sound volume seems to vary (sometimes normal, sometimes very low) some ...
0
votes
1answer
149 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
85 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
62 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
116 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
200 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. ...
30
votes
1answer
1k 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 ...
3
votes
0answers
150 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
211 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
190 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
378 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 ...
3
votes
0answers
139 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 ...
3
votes
1answer
168 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 ...
2
votes
1answer
491 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
224 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? ...
6
votes
0answers
164 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
358 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
555 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
251 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
557 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
185 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 ...
5
votes
2answers
883 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
154 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 ...
4
votes
1answer
415 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
314 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
270 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
252 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
145 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
127 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 ...