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

learn more… | top users | synonyms (3)

3
votes
1answer
92 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 ...
1
vote
2answers
59 views

How to emit sound of specified frequency for a specified amount of time?

Sorry but I am confused by several sound/play commands in Mathematica. What I want to do is to emit a succession of sounds according to a succession of frequencies and durations. Specifying timbres ...
1
vote
1answer
58 views

Why there is a click sound when I play a sound?

When I consider this simple code: ListPlay[RandomReal[1, {2000}], SampleRate -> 1000] I hear a click at the beginning of the sound sample and at the end of ...
2
votes
1answer
89 views

Play the sound of $\pi$

How do I play the sound of $\pi$? There is code for the sound of random integers in $(-1,1)$. ...
1
vote
1answer
69 views

Play[ ] takes very long to play a custom sound

I am using Play[f[t], {t,0,30}] to play sound defined by f(t), which is 30 seconds long. It is taking a very long time to evaluate this expression (10 minutes ...
6
votes
1answer
73 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: ...
4
votes
1answer
93 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 ...
0
votes
0answers
33 views

PlayRange option ignored when exporting

I've made use of autohotkey to write a script that plays audio files of piano keyboard notes when I press key-combos. At risk of digressing I will say a little about how it works. I hold one of ...
1
vote
2answers
109 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 ...
4
votes
2answers
59 views

importing a 150 MB .wav crashes Mathematica

rawdata = Import["rawdata_10min.wav"] crashes Mathematica when the file is 150 MB, but does not crash Mathematica when the file is 20 MB.
1
vote
1answer
26 views

How to remove the waveform box for midi Sound?

For midi sounds, the bottom box in the DisplayForm is always blank, I'd like to be able to remove it: Sound[{SoundNote["C"], SoundNote["G"]}]
1
vote
0answers
39 views

SoundNote options no longer built in? Does one need to download them?

A strange thing happened ... The third option in SoundNote specifies the instrument to use. If I evaluate: ...
0
votes
1answer
38 views

How to analyze a large wav file?

I have a large wav file (100 Mb). Any operation on it is time consuming. For example, to Import it takes about 1-2 minutes. The next step seems to be to figure out how it is encoded, since WAV files ...
1
vote
0answers
21 views

Export audio with frames? [duplicate]

I have a list of image frames and a wav file, is there a way to export a mov file with an audio track? ...
2
votes
0answers
24 views

How to export multiple tracks with the same instrument?

When you have multiple instruments, multiple MIDI tracks are generated on export: ...
1
vote
0answers
56 views

Playing sound with non-constant sample rate

EDIT: Posting to Wolfram Community too. I have a dataset of the form {{a1,t1},{a2,t2},...,{an,tn}} where ai is the level and ...
0
votes
0answers
51 views

Personal Reminder with Speak capability repeats multiple times

I am trying to create a personal reminder for myself using the Speak function in Mathematica hoping that the computer speaks the task only once at the designated time. However, I have found that the ...
4
votes
2answers
167 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 ...
3
votes
0answers
69 views

Playing a sound gives errors in Mathematica 10.3

I tried this Play[Sin[2 Pi 440 t], {t, 0, 1}] and it gives errors. What is wrong with my Mathematica( v10.3)? Update I found what cause this warning ...
7
votes
3answers
155 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 ...
4
votes
1answer
27 views

List of sound objects indexing

I am creating a list of sound objects: tones={}; For[j = 0, j <= 40, j++, tones = Append[tones, Play[Sin[2*Pi*t*500/Exp[-0.1*j/20]], {t, 0, 1}]]]; Each ...
21
votes
3answers
4k 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?
4
votes
1answer
65 views

How do I keep Speak[] from spelling out words?

When I input Speak["aeiou"] it spells out a-e-i-o-u, but I want it to be pronounced as one word. How do I do this? Is it even possible?
6
votes
2answers
289 views
6
votes
2answers
78 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: ...
6
votes
1answer
316 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 ...
2
votes
1answer
142 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"]] ...
9
votes
3answers
253 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: ...
8
votes
1answer
943 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 ...
1
vote
1answer
245 views

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

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 ...
3
votes
0answers
72 views

How to have Mathematica pronounce/speak International Phonetic Alphabet? [duplicate]

We know that Speak could read out English words and sentences such as Speak["this is a sentence"] Unfortunately, ...
2
votes
1answer
80 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 ...
0
votes
2answers
56 views

Evaluating a set of expressions under button control with voice annotation [closed]

For example, let us assume that a user clicks the button named "Evaluate" and then a voice announces "Please wait your expression is being evaluated". Mathematica then carries out set of instructions ...
5
votes
1answer
99 views

How to sustain (pedal) a note?

I searched the documentation for SoundNote, Sound, EmitSound, etc... but cannot find any ...
1
vote
0answers
24 views
10
votes
1answer
994 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 ...
5
votes
1answer
97 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
42 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
131 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 ...
3
votes
0answers
82 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 ...
3
votes
0answers
64 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 ...
4
votes
1answer
168 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 ...
30
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 ...
3
votes
1answer
101 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?
1
vote
1answer
90 views

How to use ListPlay and PlayRange in Manipulate

The following correctly produces a click sound: ...
5
votes
2answers
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, ...
7
votes
1answer
377 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 ...
10
votes
4answers
756 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 ...
20
votes
4answers
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 ...
1
vote
0answers
93 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 ...