Questions tagged [sound]

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

Mathematica can represent sounds as a Sound or as an Audio expression. Sound objects can be played using EmitSound or produced as a by-product of the Play function. Audio objects, on the other hand, can serve as a representation for an audio signal that is stored in memory, or linked to a local or remote audio file.

Sound and Audio can be imported or exported in MIDI and other audio formats.

Useful resources

291 questions
17
votes
2 answers

How to programmatically play an Audio object?

A Sound object can be programmatically played using EmitSound. Example: snd = ExampleData[{"Sound", "AltoFlute"}]; Button["Play!", EmitSound[snd]] What about an Audio object?
Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
14
votes
3 answers

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 at my stackoverflow.com question? The link is…
kornaros
  • 1,047
  • 5
  • 14
11
votes
2 answers

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 all newer versions. So, I was wondering if there…
Vaggelis_Z
  • 8,740
  • 6
  • 34
  • 79
11
votes
1 answer

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 that SoundNote can create a chord using the same…
Andrew Brēza
  • 327
  • 1
  • 6
10
votes
3 answers

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: Play[Sin[440*2*Pi*t], {t, 0, 4}] That works as expected. Now, I would expect to…
Jan
  • 211
  • 1
  • 6
9
votes
2 answers

How to record a sound and play the reverse of that in Mathematica?

How do I record a sound and then play its reversed version?
8
votes
0 answers

Synthesizing Kylo Ren Voice in Mathematica - Start Wars

Kylo Ren voice in Star Wars The Force Awakens is very cool. When I watched the movie in 2015, one of the first things that came up to my mind was how to do such voice in Mathematica. At the time Mathematica capabilities to manipulate sounds were…
Murta
  • 26,275
  • 6
  • 76
  • 166
8
votes
3 answers

Notification sound when simulation done?

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 waiting for a long simulation to complete instead of…
sebastian c.
  • 1,973
  • 2
  • 18
  • 27
8
votes
0 answers

Implementing custom audio filters that work on file-backed Audio[] objects

Audio supports out-of-core processing. We can create a file-backed Audio object using au = Audio[File[...]]. Any filters applied to it will create a new file-backed Audio, and processing will happen without loading all the data into memory at the…
Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
7
votes
1 answer

Is it possible to concatenate sounds?

I used to be able to make a Table of ListWaveform objects, and Export them; Export would automatically concatenate the sounds. This no longer works. Is there a way to concatenate sound objects?
stopple
  • 1,141
  • 1
  • 12
  • 19
7
votes
2 answers

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 with a frequency lower than 20 Hz, but what's…
xzczd
  • 65,995
  • 9
  • 163
  • 468
7
votes
1 answer

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): Play[aNote[x], {x, 0, 3.5}] but this doesn't: env[x_] := HeavisidePi[x - 1] +…
kjo
  • 11,717
  • 1
  • 30
  • 89
7
votes
2 answers

Combining Midi Files

I have a list of imported midi files, as Sound objects. I simply want to string them together. I've tried a lot of things and nothing has worked, apart from a hack-y version of manipulating the midi's as strings, which is needlessly over…
Nico A
  • 3,634
  • 1
  • 15
  • 28
7
votes
1 answer

If we listen to the sound, why does $\sin(x^2)$ shrink and grow in intervals?

$\sin(x^2)$ gives (it seems) an ever shrinking sine wave: Its frequency gets higher, and the pitch of the sound wave should too, right? But if we pass the $\sin$ through the Play function (with a reasonable coefficient like 1500) we get It goes…
Al.G.
  • 205
  • 3
  • 7
7
votes
2 answers

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 F(t)=x Hz(means in t, the frequency is x Hz). Then how to get that?
Sayakiss
  • 859
  • 7
  • 13
1
2 3 4 5 6 7