Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sound]

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

0
votes
1answer
43 views

Export and import sound give different data

If I export a sound object and then I import the same sound I have a different data array. The errors seem to have a certain regularity. They are all multiples of the same value: Why does it ...
0
votes
1answer
50 views

Manipulate plot and sound of a function simultaneously

I've an amplitude function (see below). I want to manipulate both a plot of this function and the sound it makes with the same sliders. Is this possible? ...
1
vote
0answers
34 views

Adding of Mathematica “Play” structures in Mathematica 10

I try to do some sound manipulation in Mathematica 10, because i can't upgrade to Mathematica 11 with my students license, which i realise would have a lot more to offer for Audio Processing. However ...
1
vote
0answers
63 views

Sound Processing frequency Dynamicly

Would like to know if there is a method to call upon the frequency of a song at a given time for instance at 0:34 second the frequency is x ; But to do this live meaning as long as the song is ...
0
votes
0answers
46 views

Pressing key to play sound

Is possible to bind keyboard keys so that they make a sound? I want to make a piano keyboard that I can play from my laptop keyboard. Example: Clicking "1" on keyboard makes Mathematica start ...
1
vote
0answers
59 views

animated gif with music, sound or voice-over

I created a animated gif. This animation exist of 20 frames. The animation repeats after the last frame. I want to add music,sound or a voice-over to this animated gif. Who has a suggestion to do ...
0
votes
0answers
44 views

doppler graph using an audio file

I'm trying to plot a graph frequency (Hz) x Time (ms). My problem is, I dont know what kind of data I'm extracting from the audio file. When I write the function: ...
1
vote
1answer
54 views

MouseOver and Speak

I am having an issue where Mouseover doesn't work with Speak and instead returns Null. All ...
2
votes
1answer
52 views

Sound loop without hiccups

I want to make a seamless sound loop that can play forever, but the consecutive EmitSound commands do not merge as I would like them to; that is, the sound seems to hiccup at the point where the loop ...
2
votes
1answer
145 views

CDF Deploy of dynamic module

I am trying to deploy a CDF file with a small animation that does the following: when the button is pressed, it plays a sound and displays a spectrogram ; while the sound plays, a red progress line ...
9
votes
2answers
204 views

Frequency of ticks in mechanical watches

I'm looking to find the frequency of a relatively large dataset (or a relatively short audio file) of a repeating sound, like so: Here are the original files, for those willing to play. :) eta2412 ...
0
votes
1answer
58 views

My module producing sound could not be compiled

So, here's my code to return a play object after passing in frequency and duration as parameters. When I run it, it says "Sound::ssnm: A good PlayRange could not be found since most of the ...
2
votes
0answers
42 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
77 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
46 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
68 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
22 views

Can one overlap SoundNote and SampledSoundList sounds?

Is it possible to create overlapping combinations of both SoundNote and SampledSoundList sounds? Here's an example. Four sounds, two of each type, two seconds each. ...
6
votes
0answers
95 views

Automated Phone Attendant with Mathematica [closed]

I'm considering using an old notebook with a built-in modem as an automated attendant. Basically, it would have the following functionalities: static menu pre-recorded messages caller interaction via ...
0
votes
0answers
24 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
41 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
163 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
62 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
904 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
46 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
98 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
42 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
93 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
239 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
130 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
86 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
191 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
62 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
28 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
56 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
46 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
52 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
96 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
77 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
107 views

How to generate Pink Noise using Mathematica 8

I have tried to generate pink noise with the following commands : ...
1
vote
0answers
32 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
58 views

AudioLocalMeasurements and MFCC

I call AudioLocalMeasurements as follows: ...
0
votes
1answer
46 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
44 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
156 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
93 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 ...
7
votes
2answers
199 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
138 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
510 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
99 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
185 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 ...