Questions tagged [signal-processing]

AKA digital signal processing (DSP). A signal is an information-carrying changing attribute of an entity, but in the digital sense, 'signal' refers to either received or transmitted streams/blocks of data, commonly representing real-world quantities such as audio levels, luminosity, pressure etc over time or distance. 'Processing' is the act of altering, analyzing or characterizing the data to retrieve/modify information inherent in the signal in question.

A signal is an information-carrying changing attribute of an entity, but in the digital sense, 'signal' refers to either received or transmitted streams/blocks of data, commonly representing real-world quantities such as audio levels, luminosity, pressure etc over time or distance.

These real-world quantities usually comes as analogue signals that are being sampled and quantized into a digital format, i.e. a sequence or higher-dimensional array of discrete numbers.

'Processing' is the act of altering, analyzing or characterizing the data to retrieve/modify information inherent in the signal in question.

NOTE: questions not related to the programming of signal processing implementations but the signal processing theory behind are off-topic for Stack Overflow and should be posted to the appropriate sister site, Signal Processing SE.

Common topics include:

  • digital filtering;
  • audio processing;
  • image processing;
  • sampling;
  • data compression;
  • spectral analysis;

Analysis tools commonly in practice are the Discrete Fourier Transform (DFT), especially its fast implementations (FFT); and wavelet transforms.

Common softwares used in the field include ; ; , especially with /; ///; ; and various languages.

5814 questions
2
votes
1 answer

Scipy: Find Shift between Two Signals of Different Length

In python, I have two similar signals of different lengths, and I want to find the offset between them. I found this post: find time shift between two similar waveforms But I don't understand the interpretation for different length signals. For…
user3433489
  • 911
  • 2
  • 10
  • 24
2
votes
1 answer

How do I display a spectrogram from a wav file in C++?

I am doing a project in which I want to embed images into a .wav file so that when one sees the spectrogram using certain parameters, they will see the hidden image. My question is, in C++, how can I use the data in a wav file to display a…
Ibrahim
  • 1,209
  • 1
  • 11
  • 16
2
votes
2 answers

Reconstruction of Digital Signal using the sinc Function

I am trying to reconstruct the signal cos(2*pi*300e6) at the sampling frequency 800e6 using the sinc function in MATLAB. When I type in the following code, I'm instead getting something very noisy--not what I am looking for. What am I doing wrong?…
2
votes
1 answer

Number of overlapping frames generated by STFT

Im using scipy.signal.stft to get the stft of an audio. No porblem with that and I'm getting the results. But what I don't understand is, when an audio of 169600 samples whose sample rate is fs=44100 Hz is used to calculate stft, I get 3 returns as…
Ashan Priyadarshana
  • 3,119
  • 3
  • 29
  • 34
2
votes
1 answer

Reverb effect with scipy

I'm using numpy and scipy, I want to add reverb effect to signal. It is possible to make reverb with these libaries? Any help (even if it's just a kick in the right direction) would be appreciated.
1e4h23
  • 31
  • 1
  • 2
2
votes
1 answer

ValueError: could not broadcast input array from shape (20,590) into shape (20)

I am trying to extract features from .wav files by using MFCC's of the sound files. I am getting an error when I try to convert my list of MFCC's to a numpy array. I am quite sure that this error is occurring because the list contains MFCC values…
Sreehari R
  • 919
  • 4
  • 11
  • 21
2
votes
1 answer

Phase plot is not generated for entire range of frequencies for butterworth low pass filter

I want to design a Butterworth low pass filter and see its magnitude and phase response. I tried the following code. n = 8; % order of filter fs = 1000; % sampling frequency fc = 20; % cutoff frequency [b a]= butter(n,fc/(fs/2),'low'); %…
Vikrant Karale
  • 147
  • 1
  • 15
2
votes
0 answers

how to extract a spectrogram signal from accelerometer signals stored in text file?

i try to convert my accelerometer signal (x-axis) and (y-axis) and (z-axis) into spectrogram by calculating the magnitude the dataset is divided into three text files for x,y and z respectively each file contains one column and 1000 rows. and this…
2
votes
1 answer

Split step Fourier propagation - Beam propagation method

Hello I'm having a difficulty using the split step Fourier method. Assuming I want to propagate a Gaussian in free space, I'm supposed to use: A(x,z) = F^-1 [exp((i*k^2*z)/(2*k_0))* F[A(x,0)]] where F is the Fourier and F^-1 is the inverse…
FlyGuy
  • 31
  • 6
2
votes
1 answer

MATLAB: How to add custom ticks and labels to an imagesc plot?

I have made a matrix containing 13 different vectors with ~300K+ rows. I have visualized the matrix by transposing it and using the imagesc function to see the distribution of colors. All vectors have been resampled, processed and normalized between…
Ruchik Yajnik
  • 319
  • 1
  • 4
  • 13
2
votes
1 answer

Normalizing by dividing by max value VS sum of all values

I'm implementing a Gaussian filter in which, as explained in one Dimensional gauss convolution function in Matlab, I'm normalising the filter coefficients by dividing them by sum of all the coefficients. Normalizing by max value or by total value?…
Sumbul
  • 167
  • 1
  • 8
2
votes
0 answers

Multioutput routing in AudioKit

I want to develop an iOS application which generates triggers and control signals to control external hardware. For this reason I’m thinking to use the AudioKit framework to generate these signals and to route them towards specific output channels…
fran_f
  • 36
  • 5
2
votes
0 answers

Is Naudio suitable for real time audio processing?

I'm in the process of looking for an audio processing/dsp library. Thus far the most promising looking one has been the Naudio framework as it is feature rich and has some good learning materials. I was wondering if anyone here had used Naudio…
2
votes
1 answer

Converting between two fixed point representations

I am trying to convert a number from one fixed point representation to another. I am using the 2's complement representation (Qmf representation) This is to verify the hardware implementation. The hardware implementation works as follows: The input…
a220599
  • 39
  • 5
2
votes
1 answer

Profiling Python - Streaming Audio and spectrum

I'm trying to modify this example: https://svn.enthought.com/enthought/browser/Chaco/trunk/examples/advanced/spectrum.py. Unfortunately I have not been able to get it to scale. If I double the sampling rate, the graph lags from the sound input. I'd…
Gus
  • 4,375
  • 5
  • 31
  • 50