Questions tagged [sound]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
88 views

AudioLocalMeasurements and MFCC

I call AudioLocalMeasurements as follows: ...
0
votes
1answer
63 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
185 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
132 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 ...
10
votes
2answers
263 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
187 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
652 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
126 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
341 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
247 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
154 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
243 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
220 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
186 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
34 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
1k 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
176 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
776 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
290 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
914 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
882 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
303 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 ...
0
votes
0answers
174 views

Import audio of a video

I recorded some videos with my webcam using QuickTime and imported the .mov files as an ImageList into MMA using Import which supports QuickTime Version 7 and earlier. The question is how do I get the ...
9
votes
2answers
801 views

Beep anytime evaluation finishes

These days I have to do long evaluations and I would like to get back to my notebook as soon as they end. Is there a way to ask Mathematica to produce a sound signal anytime it ends an evaluation? I ...
5
votes
1answer
47 views

Speak stops on first Hyphen with IntegerName

IntegerName returns the text of an integer. However, when Speak is applied to the result it stops at the fist hyphen. For ...
2
votes
2answers
109 views

How can I make a surface of revolution from the given "TimeSeries"?

I read this article and I tried to make a simple analog ...
1
vote
2answers
142 views

How can I import "wav" file like "RecordSound"

How to import audio file like as "SystemDialogInput["RecordSound"]"? ...
1
vote
0answers
126 views

How to play MIDI instrument at arbitrary pitch

With SoundNote, one can play specific semitones using numerous styles, such as Piano, Flute, ...
23
votes
2answers
537 views

How to align similar TimeSeries like ImageAlign?

I have three audio files. ...
1
vote
1answer
227 views

How to use AudioTrim to delete the silences?

I have an audio file named del_silences.wav. I want to delete the silence intervals. But using AudioTrim, the audio almost has no change: ...
4
votes
1answer
67 views

How to access time index while playing audio?

I'd like to access the current time (in seconds) while playing audio. For example: song = Import@"file.mp3"; id = Audio`AudioInformation[song, "AudioID"]; Then ...
10
votes
1answer
333 views

How to make Audio work dynamically and separately like DynamicImage?

In Mathematica, there is a new function DynamicImage that can enlarge or drag picture dynamically. So, is there a function ...
3
votes
1answer
120 views

Split audio with AudioIntervals

How do I split an Audio object into multiple ones, where the ith object represents the ith interval satisfying a certain criterion? A quick and dirty solution I just thought of is this: ...
8
votes
0answers
85 views

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 ...
6
votes
1answer
100 views

How to test if an Audio object is file backed and extract the file path?

Audio objects can be file backed and support out of core processing. How can I test if an Audio object is file backed and ...
17
votes
2answers
909 views

How to programmatically play an Audio object?

A Sound object can be programmatically played using EmitSound. Example: ...
2
votes
1answer
1k views

Finding peaks on a Periodogram

I am currently working on a school project involving modelling sound recordings of piano notes. I have used the periodogram function to graph my recording and would like to find the peaks of this ...
0
votes
1answer
180 views

Remove sound emitted after evaluation

After the evaluation of a cell Mathematica emits a sounds: how can I remove it? If needed, I use v.10 on a Windows 8.1 64 bits machine.
9
votes
2answers
818 views

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?
2
votes
1answer
65 views

What' s wrong with my code with `play` in table [duplicate]

I couldn't find the reason why the following code consumming my time (1min no output results): ...
5
votes
2answers
789 views

Generating Shepard and Risset tones

The Shepard tone is a famous auditory illusion where the successively generated tones seem as if they keep going higher and higher in pitch. The Risset glissando is a similar auditory illusion, but is ...
7
votes
2answers
453 views

Sound synthesizer using Manipulate

Sound synthesizers, both digital and analog, often include a parameter section for shaping the amplitude of a sound wave over time. This parameter section is commonly known as an "ADSR EG" (attack, ...
0
votes
1answer
142 views

Generating sound according to a mathematical function [closed]

I would like to get sound clips that essentially are frequencies varying according to certain recognizable math functions like sin, tan, floor, absolute value etc. Please help. Thanks
4
votes
1answer
102 views

Loss of scale factor when reading/recording/rereading data in a WAV file [duplicate]

I use recorded data from an acquisition system in a wav file containing 6 channels, all data are encoded with 2 bytes in Integer 16. I can Import the *.wav data file and get all data in a Sound object ...
4
votes
1answer
309 views

Identify a note in a song using Mathematica

I'm trying to figure out how to use Mathematica to identify a note from a song. The short .mp3 file found here or here contains a bass-note that I'd like to identify. I can find it through ...
3
votes
2answers
588 views

How to add echo to audio file?

After importing a sound file, how can I add an echo to it? sound = Import["test.wav", "SampleRate"] It needs to be apply after time specified by user. This is ...
4
votes
1answer
208 views

How do I use Mathematica to upload to Clyp?

Clyp is a service for hosting sound files that (as of now) doesn't require registration. I'm wondering if it's possible to write a function that'll upload a Sound ...
3
votes
2answers
289 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 ...