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
0answers
52 views

Create tone with adjustable frequency/amplitude

How can I play a tone and adjust its frequency and amplitude? As an example, say I wanted to play a SquareWave with a slider for frequency and amplitude. Using a <...
5
votes
1answer
91 views

Weird Export of .M4A format

When Exporting .M4A format audio, the duration is always 1. It seems that the audio is fast-forward played... Is that a bug and how can I fix it? Sample code: ...
3
votes
1answer
54 views

Eliminate clicks/pops from Play function

When using the Play function with a simple Sin wave, the audio clicks/pops at the beginning and end of the audio sample. How ...
5
votes
1answer
72 views

Precision-related error in Audio

Bug introduced in 11.3 or earlier CASE:4075745 I have been experimenting with using Audio and associated functions for data acquisition using an external sound ...
0
votes
0answers
63 views

Cannot import ExampleData/dialing.m4a in mma version 11.2.0.0

I cannot import MPEG-4 audio, whether it be the example file provided, or any other M4A file I have. The documentation clearly states that this should work, but here's what I get when I try it. <...
0
votes
1answer
54 views

Fine control of AudioRecord

I use an external sound card (Fireface UCX) for data acquisition, generating stimulus .wav files with Mathematica, using Audacity to simultaneously play the stimulus and record several channels of ...
8
votes
1answer
170 views

Audio equivalent of CurrentImage

Unfortunately, there is no CurrentAudio[] function yet. I'm trying to poll for 1 second clips of audio (as fast as possible) from my computer's microphone (and ...
6
votes
1answer
81 views

How to CloudDeploy an APIFunction that takes audio as input?

I have a function whose argument is Audio and I'd like to deploy it as an API (and then call it from Python). This works as with ...
27
votes
4answers
1k views

How fast is my fidget spinner spinning? A sound experiment!

I would like to measure how fast my 6-bladed fidget spinner spins. To do so, after giving it a hard spin, I gently touch the spinner with a wooden stirring stick to create a buzzing sound which ...
3
votes
0answers
67 views

Finding the beat rate of a song [duplicate]

I'm trying to use Mathematica to find out the beat rate of a song. The image below shows some markups I made in another program in milliseconds. I was able to find that there is a pattern every ...
0
votes
0answers
145 views

Playing sound using an array of soundsamples

I have an assignment where I have to apply effects such as reverb to a .wav file using mathematica. I used Import["sound.wav","data"] to get the array and then did ...
2
votes
0answers
52 views

Identifying the range of the voice

I'm trying to do an equalization in an audio program called Audition. To have a good voice equalization, I need to have a frequency range of my voice. A minimum value and a maximum frequency value. ...
4
votes
0answers
102 views

Softening Strident Sounds

I asked a question that was very well resolved by kjosborne I have some audios that I am looking for better the quality. Now I'm looking for a solution to soften the sound of ...
3
votes
1answer
306 views

Machine learning classify function with audio and set of pictures

As I see from documentation, Classify function supports Audio and Pictures as input, video is not supported unfortunately :( Will it work if I try to use classify for mixed data input like ...
5
votes
1answer
157 views

Identifying Silence in Audio

I have some audios that contain short spaces of silence with different periods of time. Looking for information, I found this question. The audio example is this. Is there a way the program can do ...
1
vote
0answers
141 views

Generating music notes on the fly, that play over one another

I'm attempting to use Mathematica to generate music on the fly. I know that I can take a list of notes (which have lengths associated with them) and create a sound object, and play that sound object. ...
7
votes
0answers
222 views

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 ...
4
votes
1answer
71 views

Extract RawArray from Audio

Audio objects backed by in-memory data (not files) seem to contain a RawArray. Is there a way to get the ...
0
votes
0answers
29 views

Minimization Over a Set of Size 1

Set f[c_?NumericQ] := Module[{data}, data = AudioData[AudioNormalize[Import["myfile.wav"]]]; Mean[Take[data, {c, c + 400}]]] and then apply ...
2
votes
1answer
64 views

Is there a discrepancy between reported and actual SampleRate in AudioGenerator

When AudioGenerator is used to generate an Audio object, there may be a discrepancy between the specified (and reported) SampleRate and the actual time difference between the samples. This was ...
0
votes
0answers
58 views

Is there a complex version of PeriodogramArray?

I am trying to build some functions to help me work with audio data collected as time streams but converted to the frequency domain. The frequency domain results must be complex because phase is ...
0
votes
0answers
56 views

Is it possible to create an instrumental version of an mp3 file in Mathematica?

I'm aware that it's possible to use a program like Audacity to do this and that it's most likely easier, but I'd like to know how to make instrumental versions of songs in the mp3 format using ...
3
votes
2answers
147 views

Find peak decibel level (or some measure of peak loudness) from audio sample

So a shotgun range opened near my house and I've been tasked by the HOA to do some nuisance analysis. I've got a quick sample of audio and want to find the peak noise levels at the places where the ...
4
votes
0answers
82 views

Undocumented Aspects of MFCC Computation by AudioLocalMeasurements

There are a number of undocumented procedures and parameters underpinning the computation of MFCC vectors by AudioLocalMeasurements including the size and form of ...
1
vote
2answers
146 views

How to generate Pink Noise using Mathematica 8

I have tried to generate pink noise with the following commands : ...
1
vote
0answers
40 views

Is it possible to compute the second stereo track if one has a mono track and one of the stereo tracks?

I'm curious about Mathematica's capabilities to process audio files. Suppose I want to reconstruct a stereo audio track. The first bit of information I have is a mono track made from a stereo to mono ...
0
votes
1answer
74 views

AudioLocalMeasurements and MFCC

I call AudioLocalMeasurements as follows: ...
0
votes
1answer
57 views

Normalization of AudioData

The documentation for AudioData says: "By default, AudioData[audio] normalizes values to lie between -1 and 1." One might imagine that the min and max of the result would be -1 and 1 respectively ...
1
vote
0answers
48 views

SoundNote[ ] generates a different output for each audio channel

When SoundNote[] is evaluated, I expect the audio both channels to be the same but they are different. The code ...
1
vote
4answers
175 views

Generate an audio file which makes rhythmic buzzer sounds

I will perform an experiment which consists of deadlift trials during 5 minutes. To control the rhythm of this fatiguing exercise, I would like to generate a sound file which gives a buzzer noise ...
2
votes
1answer
122 views

How to turn the internal sound note into the form of function

I want to make a brief Fourier transformation of the sound notes of the same pitch but played by different instruments to see the difference of their Fourier ...
8
votes
2answers
226 views

Manipulate a list representing Bach's Prelude in C

Bach's Prelude in C is repetitious in an easily modelable manner: Each of the first 32 bars is structured so that, if given the first 5 notes, you can construct the entire 16 note bar by appending ...
2
votes
1answer
176 views

Computing FundamentalFrequency

How does Mathematica use AudioLocalMeasurements to compute the fundamental frequency? Is there any formula? I can't seem to find what method Mathematica makes use ...
11
votes
2answers
620 views

How to combine Neural Network and Audio like Classify?

I want to combine Audio object and Neural Network ,first thing I remember is Classify ...
3
votes
1answer
117 views

Confused about the usage of AudioSpectralTransformation

The documentation for AudioSpectralTransformation says: AudioSpectralTransformation computes the short-time Fourier transform of audio, maps every value at ...
7
votes
2answers
284 views

How to capture the system sound output, but not the microphone?

This is my $Version "11.1.1 for Microsoft Windows (64-bit) (May 16, 2017)" We have two methods to record sounds in ...
7
votes
2answers
222 views

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

Dynamic sound generator [duplicate]

i wanna create a notebook with dynamic sound-output. I want to emit a continous sound (sine wave) while being able to adjust the frequency in real time without having to click the play-button again. ...
0
votes
1answer
203 views

Spectrogram to ArrayPlot

I have an Audio that I want to extract the Spectrogram data from such that when I plot it using ...
0
votes
1answer
164 views

Frequencies doubled in fourier transform [duplicate]

With this code I get a nice plot of the Fourier transform, but the frequencies are doubled. By this I mean that when using a sine wave I generated at 220 Hz, the plot gives me a single peak at 440 Hz. ...
0
votes
2answers
167 views

Symmetrical waveform of sound

How can I record my sound to get the symmetrical waveform? AudioPlot[mysound, PlotStyle -> Red, AxesStyle -> Blue] Or How can I transform "my sound" to ...
0
votes
1answer
2k views

How do I perform an FFT on a .wav file?

I've been trying all day to figure out how to do this. I have been able to import the data without any problem and have been able to also plot just the data. However, I keep getting error messages ...
1
vote
0answers
33 views

Speak Function to say numbers from a list in a defined delay [closed]

I want to create a script that "speaks" a few digits. This is what I got thus far: A = RandomChoice[0 ;; 9, 15]; Do[Speak[i], {i, A}] Mathematica "says" those 15 ...
3
votes
1answer
822 views

Frequency decomposition of an mp3 file?

After loading an mp3 file test = Import["test.mp3"] I would like to make a plot with x-axis being the frequency of waveforms ...
2
votes
1answer
147 views

Extract power levels of mp3 sound at given times?

Consider loading an mp3 audio file mymp3=Import["test.mp3"]; Now we get an object that looks like One can see a picture of ...
3
votes
1answer
697 views

How to visualize music from midi file format?

From What I understand midi format is a digital format computers can read and reproduce. Is there a way to assign shapes and colors to certain frequencies and durations to visualize the music ...
6
votes
1answer
233 views

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 ...
4
votes
1answer
721 views

Close encounters of the third kind [closed]

anyone knows how to generate the 5 tone notes of the movie? It's only for have fun. Thanks
9
votes
2answers
771 views

How to perform Blind Source Separation on an audio mix?

There have been several scholarly publications on the Blind Source Separation (BSS) problem. Some are aimed at audio signals. I wish to start with a simple case. I have generated a custom sound mix ...
1
vote
1answer
270 views

How to automatically play a sound file after importing

I want Mathematica (Version 11.0.1.0) to automatically play a specific sound file after importing from the hard drive without any user intervention other than opening the notebook. Here is what I have ...