Skip to main content

Questions tagged [sound]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
66 views

How to Import MusicXML Files?

Are there any undocumented or third-party packages or paclets for importing MusicXML? https://github.com/w3c/musicxml/releases
user5601's user avatar
  • 3,625
0 votes
1 answer
29 views

AudioCapture and $AudioInputDevices never detect my microphone

My friend and I are both having the same problem. My microphone works fine in all other apps, except Mathematica can't detect any input devices. Has anyone found a solution to this? Windows 11 Pro. ...
Sam B's user avatar
  • 159
0 votes
0 answers
33 views

improve response time for `Sound`

Is it possible to improve response time for the keys of this piano keyboard? As far as I understand, the bottleneck comes at ...
martin's user avatar
  • 8,678
0 votes
1 answer
69 views

How to end the sound that is being play?

I'm trying to imitate the way that piano makes a sound and I create a DynamicModule to be the key like the following code: ...
Xinhan Yuan's user avatar
4 votes
2 answers
393 views

Split audio by repeated short sound

I have a long mp3 audio file in which a particular short sound repeats. Is it possible in Mathematica to split the initial mp3 file into several mp3 files that end by this short delimiting sound? Here ...
Филипп Цветков's user avatar
0 votes
0 answers
45 views

How to play sound in Wolfram Cloud?

I want to play the sound on Wolfram Cloud. Sound[Table[SoundNote[i,0.1,"Violin"],{i,0,12}]] The Wolfram Cloud Public address is as follows. https://www....
Milk's user avatar
  • 1,718
2 votes
1 answer
91 views

Can I write a code to play the score?

When I input a score image of music, can I write a code to play it? I'd like ideas for code writing.
Milk's user avatar
  • 1,718
0 votes
0 answers
22 views

Default options for "SpectralCentroid", AudioLocalMeasurements

I'm trying to find the default options for the computation of the spectral centroid but cannot get any info in the window used, overlap if any, and smoothing applied to obtain the result. Any way to ...
tsuresuregusa's user avatar
0 votes
0 answers
66 views

Implement the constant-Q transform in a custom audio encoder

I'm working on a project in Wolfram Language where I need to implement the Constant Q Transform (CQT) in a custom audio encoder. The CQT is a time-frequency analysis method that is often used in music ...
James Linton's user avatar
1 vote
1 answer
156 views

How to get DFT from Sound/Audio/Image?

When I'm trying to do Discrete Fourier Transform or just get a ListPlot of values from Sound object, I get error message.. I understand that Fourier command (and ListPlot of course) works only with ...
shamil khal's user avatar
1 vote
1 answer
111 views

Extract the latent space learned from a Neural Network

I would like to visualize and cluster vectors learned in the latent space of a Neural Network. I am trying to cluster audio tokens, but I don't know what they represent. So the task is to ...
user305883's user avatar
9 votes
2 answers
2k views

Why does Mathematica take so long to produce this sound?

Mathematica is behaving very slow, but it is not like I could compare, as the speed has always been like this. The following ran in 58.64 seconds. Is this normal? How can I speed it up? ...
Anm's user avatar
  • 193
0 votes
1 answer
76 views

How to get the time series of colored noise obtained by AudioGenerator function?

In the documentation I found a code that plots a Periodogram. ...
Maksim's user avatar
  • 1
1 vote
0 answers
62 views

Break Wine Glass Using Mathematica [duplicate]

I will be running a demonstration for high school students in a couple of weeks. I’m hoping to introduce them to differential equations by using mathematics to generate a sound wave to break a wine ...
B flat's user avatar
  • 5,565
0 votes
0 answers
42 views

Sound issues on Win 11 (?)

I have an "animation" which uses Manipulate(manipulates time) and I want to play sound at the specific times. On my PC (Win10) it works smoothly and ...
Kubag14's user avatar
2 votes
1 answer
99 views

Converting Audio of Paced breathing to plot

This is for a research project on meditation. A music-type person composed for me an audio for paced breathing, which consists of some undulating tones. I would like to convert it to a smooth ...
Chris 's user avatar
  • 467
0 votes
0 answers
61 views

List of instruments for Sound

I am programming a littele piece of music using Sound[] and I have used sound primitives like "Violin", "Piano", "Organ". Can you help me to find a complete list of these ...
Dr. Wolfgang Hintze's user avatar
6 votes
1 answer
430 views

Problem with Spectrogram

Some time ago I wrote a program to analyse a short segment of music and plot as a spectrogram in Mathematica. It allows one to find the notes in a weird chord for example. The example below is from ...
RobScottSpace's user avatar
1 vote
1 answer
122 views

Speak[] function using Wolfram Cloud

I wrote a program for practicing note identification on a guitar: ...
ngc1300's user avatar
  • 171
2 votes
0 answers
85 views

Using Mathematica as an alarm clock by scheduling a sound file to play at a certain time [closed]

With Mathematica 12.2 I can import a sound file like this: f = Import["F:\\mysound.mp3", "Sound"]; and play it like this: ...
user avatar
2 votes
0 answers
59 views

When should I use Audio vs Sound Data types?

It seems like mathematica has 2 related data types Audio and sound. Why is there 2 separate data types? When would I use one versus the other? Guesses I know I can convert between them by ...
ions me's user avatar
  • 981
0 votes
1 answer
44 views

Two sounds by AudioGenerator at the same time

I am learning how to generate/combine sounds using Mathematica in order to show that sounds cancel at some phases. As an exploratory example, I have ...
Patrick El Pollo's user avatar
5 votes
0 answers
244 views

Any competitive speech-to-text models?

SpeechRecognize is not very useful compared to most voice transcription engines nowadays, simply too fragile and prone to errors. I use Otter.ai currently, is there anything competitive to that (or ...
user5601's user avatar
  • 3,625
5 votes
1 answer
226 views

Why does the audio become longer after importing it?

I was making a video by combining some images and this audio, when I encounter the problem: I need to get the duration of the audio, and when I use Duration ...
SHBooKP's user avatar
  • 370
5 votes
1 answer
350 views

What is 0 dB in Periodogram?

Consider some sound: ViolinNote = Sound[SoundNote["G", 1, "Violin"]] We may plot the periodogram: ...
John Taylor's user avatar
  • 5,827
6 votes
2 answers
298 views

Music animations

I've been tempted to use Mathematica to create some artistic musical animations. That is, if I have a music file, I want to be able to edit, for example, its waveform animation. For example, get ...
sam wolfe's user avatar
  • 4,863
3 votes
1 answer
92 views

How can I save the output from AudioRecord?

I'm trying to save a recording using AudioRecord. My recording gets overwritten even if I save the output in a fresh cell. This illustrates the issue: ...
fairflow's user avatar
  • 1,028
2 votes
1 answer
151 views

Play two sounds at the same time in mathematica. For example the inventions of Bach NO.8

I use mathematica to play the Inventions No8 by Bach. I want to play the two parts (by right and left hands )at the same time. But I don't know how to do it. Can you help me? Thank you! ...
plus Plus's user avatar
11 votes
1 answer
314 views

Generating random sequence of integers with ordering constraints

I would like to write a Mathematica routine for generating random musical melodies that obey (some of) the constraints of traditional tonal harmony. For simplicity's sake, I'm interested only in ...
Kim Fierens's user avatar
  • 1,857
9 votes
1 answer
305 views

How to visualize overtones in Mathematica?

I would like to visualize the difference in sounds extracted by different musical instruments, which is due to different overtones. In order to do this, I define the following samples: ...
John Taylor's user avatar
  • 5,827
13 votes
1 answer
585 views

Wolfram Neural Net Repository Questions

I was a research scientist in the machine learning team, and mostly involved with the neural net repository.
T.B.'s user avatar
  • 131
0 votes
0 answers
108 views

How do I loop audio playback automatically?

(Many of the Audio* symbols and functionality are still mostly experimental, so I understand that not all the kinks might be worked out yet. Still, I'd like to try ...
thorimur's user avatar
  • 9,020
5 votes
2 answers
891 views

I believe Beep uses the system sound which is obnoxious and rude. How does one create a friendlier less intrusive sound?

Beep is a terrible sound for alerting when a background task has successfully completed. It was primarily designed for errors or when a task fails. That's why it's ...
Jules Manson's user avatar
  • 2,467
3 votes
1 answer
319 views

Audio Digital Signal Processing

Resource and strategy request I want to identify resources and strategies to implement a Mathematica based solution for audio digital signal processing (DSP) and digital to analog conversion (DAC). ...
Jagra's user avatar
  • 14.4k
5 votes
2 answers
206 views

How to get the image from output of Sound[]

Sound[] generates a visual representation of notes. I would like to extract that image, only notes, without controls and borders. How can I do it? Take this example ...
Dan Oak's user avatar
  • 638
2 votes
0 answers
92 views

How to create a iOS Ringtone from Mathematica

Does anyone have any idea how to create a ringtone for an iOS phone from Mathematica? It appears to be a very (unnecessarily) complicated process, that Apple has recently obfusticated even more by ...
Jonathan Kinlay's user avatar
1 vote
1 answer
65 views

How to get correct note timings when importing multi-track Midi files?

I have observed when importing midi files with more than one track, the times for every track except for the first one are sped up. for example, ...
Alec Graves's user avatar
  • 1,058
2 votes
0 answers
153 views

Default color scheme of Spectrogram

Spectrograms seem to use the "SunsetColors" color scheme. That being said, I can't figure out exactly how it is being applied; the ...
Adam's user avatar
  • 3,956
1 vote
1 answer
56 views

How to get the data used in AudioPlot

How can I get the data used to plot when using AudioPlot that produces a graph such as:
Teabelly's user avatar
  • 1,004
0 votes
1 answer
139 views

A very simple question on Fourier spectrum of an audio track

Consider the following sound: sound = ExampleData[{"Sound", "ViolinScale"}] One may perform a FFT: ...
John Taylor's user avatar
  • 5,827
0 votes
1 answer
390 views

Fourier representation of an audio file

Consider some audio file, e.g., file = Audio[File["ExampleData/car.mp3"]] Is it possible to represent its signal in a form $f(t) = \sum_{n = n_{\text{min}...
John Taylor's user avatar
  • 5,827
2 votes
1 answer
156 views

Music and Fourier Transform [closed]

I posted this question on MathStackExchange. My question is in here now: How can I program a Fourier Tranform of a plot without knowing the function that generates the plot, assuming the funcion is of ...
autopilotmorphism's user avatar
2 votes
1 answer
325 views

Plotting an Almost Fourier Transform like 3Blue1Brown

Two years ago 3Blue1Brown posted this video. The important part starts at 9:38 to 9:54. I am trying to plot his functions in Mathemtica. So, for the first plot with 2Hz I got ...
autopilotmorphism's user avatar
0 votes
0 answers
47 views

Question as to whether or not the Mathematica IntegerReverse function applied to audio is working as it should

I applied IntegerReverse[Round[Abs[10000000*(Audio[])]]] to an audio file in Mathematica to reverse the data set's digits, but I am unsure if it is doing what it should... I know that using a ...
ursellsarn's user avatar
1 vote
0 answers
101 views

Reversing audio digits of audio object [closed]

My question is about reversing the integers of an audio object file's data. If I make an audio object, and I wish to convert the audio-data to integers between 0 and 10000, I then wish to access the ...
ursellsarn's user avatar
4 votes
1 answer
104 views

Is there a way to add your own voice to Speak[]?

Is it possible and how can I create my own voice and apply it to the function Speak?
Teabelly's user avatar
  • 1,004
1 vote
1 answer
143 views

How to export Speak to wav or mp3 file?

How to export Speak["valentine"] to wav or mp3 file?
Milk's user avatar
  • 1,718
13 votes
1 answer
615 views

Can Mathematica be used to edit MP3 tags?

Can Mathematica edit mp3 tags? I have a set of files and I'd like to batch process artist, album title, etc. I know other tools exist; I wonder if Mathematica can do it.
GregH's user avatar
  • 1,919
5 votes
1 answer
287 views

'Speak' command does not work

I have Mathematica 12.1.0.0. When I execute the command Speak["Hello"] I hear nothing. In the earlier versions of the software, Mathematica would 'speak' the words/string inside the 'Speak'...
Sashwat Tanay's user avatar
2 votes
0 answers
99 views

Sound steganography with `InverseSpectrogram`

Here is my code of how to hide a message inside a sound: ...
azerbajdzan's user avatar
  • 18.7k

1
2 3 4 5 6