Questions tagged [spectrogram]

A spectrogram, or sonogram, is a visual representation of the spectrum of frequencies in a sound, at each time. Spectrograms are also called spectral waterfalls, voiceprints, or voicegrams. Spectrograms are used extensively in the development of the fields of music, sonar, radar, and speech processing, seismology, etc.

502 questions
0
votes
1 answer

Real time spectrogram analysis

I'm trying to perform a real time sound analysis. Currently I'm able to get real time streaming of the spectrum but when I try to plot the spectrogram it introduces a delay of about 4 seconds even if I try to reduce calculations. I would like to…
Dodz
  • 35
  • 1
  • 8
0
votes
1 answer

Spectrogram with C++

I am trying to generate a spectrogram of a sinusoidal signal with C++. To generate the spectrogram: I divided the real sinusoidal signal into B blocks Applied Hanning window to each block (I assumed there is no overlap). This should give me the…
Jack
  • 725
  • 1
  • 10
  • 27
0
votes
1 answer

Plotting the spectrogram

Using the answer to this link:Spectrogram C++ library I have written a code to calculate the spectrogram of a sinusoidal signal: 1-Created a sinusoidal signal. 2- I applied the Hann Window. 3- used FFTW . 4- Calculated log magnitude of frequency…
Jack
  • 725
  • 1
  • 10
  • 27
0
votes
0 answers

not able to replicate spectrogram function of matlab in python

I am trying to replicate spectrogram function of matlab in python. But getting differnt result. MATLAB: NFFT=500 fs = 5000.0; T = 0.2; nsamples = T * fs; t = 0:T/nsamples:T; a = 0.02; f0 = 600.0; x = 0.1 * sin(2 * pi * 100 * sqrt(t)); x = x + 0.01 *…
user3852441
  • 310
  • 3
  • 14
0
votes
1 answer

Voice Spectrogram

I am working on a spectrogram project and trying to plot the frequencies with the highest magnitude at each section. We have tested and recorded the do-re-mi-fa-so-la-ti-do sang by a human. After plotting the spectrogram, we have seen multiple sets…
0
votes
1 answer

Analyzing Spectrogram Matlab

I need help with my experimentation on MATLAB. I am trying to get the frequency range of a song per time interval. For example, if a person sings, what is his frequency range from time 0 to 0.5seconds? I have tried using the spectrogram function of…
0
votes
0 answers

matplotlib spectrogram, intensity scale

I want to plot two spectrograms side by side, and compare them. For the comparison to make sense, they need to have the same scale on the intensity axis. There does not seem to be anything like zlim for me to get the scaling to be the same. What is…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
0
votes
1 answer

how to plot spectrogram of a specific window in time domain out of the spectrogram of all signal?

I have produced spectrogram of a signal using matlab like this: [S,F,T,P]=spectrogram(...);%I have used my desired parameters and I have ploted the result :(the spectrogram of whole signal) my question is that now I want to plot a part of this…
Shirin Feiz
  • 73
  • 1
  • 6
0
votes
2 answers

Plotting Frequency Spectrum using Matlab with hold function

Suppose I have successfully generated a Single-sided Power spectrum as follows: X_mags = abs(fft(signal)); bin_vals = [0 : N-1]; fax_Hz = bin_vals*fs/N; N_2 = ceil(N/2); plot(fax_Hz(1:N_2), 20*log10(X_mags(1:N_2)));` now I want to plot a second…
user3488736
  • 109
  • 1
  • 3
  • 13
0
votes
1 answer

How can I plot a non-normalized spectrogram in MATLAB?

I want to plot a non-normalized spectrogram in MATLAB. my input signal is y with 16KHz sample rate and 8bit per second. How can I plot its spectrogram in its frequency, not in normalized frequency?
user3305284
  • 43
  • 1
  • 8
0
votes
1 answer

qwtspectrogram axis adjustment for area not pixels

Hi I am using qwtspectrogram to plot my array data but the problem i am having is scaling.. the qwt scales are distributed over the intervals x and y and the axis are dependent on the pixels. for example if I have a data set vector of (500x500) and…
habbas33
  • 37
  • 3
  • 8
0
votes
1 answer

Converting microphone data to frequency spectrum

I'm trying to create a spectrogram program (in python), which will analyze and display the frequency spectrum from a microphone input in real time. I am using a template program for recording audio from here:…
stokastic
  • 128
  • 1
  • 6
0
votes
0 answers

Removing frequency areas from MATLAB spectrogram

let's say I have the following spectrogram: What I would like to do is blacken out areas that are above a certain energy level, eg.g, -110 dB - so all red, yellow and greenish parts. By blacken out I mean pull down to zero or -Inf in this case. I…
schvaba986
  • 214
  • 1
  • 6
0
votes
1 answer

ValueError: operands could not be broadcast together with shapes (1024,) (1024,2)

Sigh, I know this is similar to several other questions, but my issue here is that I don't quite understand how the specgram function works in Matlab. I'm basing my code off this example located at…
Valkyrie Savage
  • 575
  • 2
  • 6
  • 21
0
votes
0 answers

Uncaught ReferenceError: chroma is not defined

I am creating a spectrogram that on click of a button displays but keeps giving me this error and i do not understand what the problem is if anyone can help i would be very thankful! // used for color distribution var myColor = new…