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

learn more… | top users | synonyms (3)

3
votes
2answers
93 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 ...
4
votes
3answers
240 views

How to measure Sample Rate?

How to measure sample rate of imported file in Mathematica? I imported the WAV file: solo = Import["solo.wav"] When I wrote: ...
4
votes
1answer
99 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
67 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
93 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
70 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
75 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: ...
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 ...
4
votes
2answers
65 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"]}]
2
votes
0answers
41 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
42 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
58 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
173 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
70 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 ...
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 ...
4
votes
1answer
66 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?
7
votes
3answers
158 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 ...
6
votes
2answers
290 views

More elegant function construction for blues loop

Is there a more elegant way to do this: ...
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
318 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 ...
8
votes
1answer
950 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 ...
9
votes
3answers
257 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: ...
2
votes
1answer
163 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"]] ...
1
vote
1answer
288 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
73 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
81 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
57 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
101 views

How to sustain (pedal) a note?

I searched the documentation for SoundNote, Sound, EmitSound, etc... but cannot find any ...
1
vote
0answers
25 views

Why is there a lag in EmitMIDI and StopMIDI?

If I run: ...
5
votes
1answer
100 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
135 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 ...
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 ...
3
votes
0answers
66 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
105 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
398 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
2answers
118 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
94 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
87 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
110 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
385 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?
10
votes
2answers
336 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
99 views

How to use ListPlay and PlayRange in Manipulate

The following correctly produces a click sound: ...
5
votes
2answers
147 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
67 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 ...