Questions tagged [numpy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
4 answers
5k views

When concatenating sine waves, how do I phase shift in order to prevent "pops" caused by sudden jumps in amplitude?

I'm writing a synthesizer using numpy and python. I've run into a problem where concatenating sine waves causes 'pops' or 'clicks' when they are outputted to audio, say, via ...
Tim's user avatar
  • 161
4 votes
1 answer
2k views

How to generate random samples of Gaussian distribution directly in the frequency domain?

One can easily draw (pseudo-)random samples from a normal (Gaussian) distribution by using, say, NumPy: ...
Herpes Free Engineer's user avatar
3 votes
1 answer
316 views

How to get an interpolation weight from a mathematical definition

It was recently explained to me that a "Nearest neighbor" kernel for 1D interpolation can be implemented like this using NumPy ...
Ralph's user avatar
  • 33
2 votes
2 answers
638 views

How to train a FCNN with Spectrogram images?

I'm working on a audio dereverberation deep learning model, based on the U-net architecture. The idea of my project came from image denoising with auto-encoders. I feed the reverberated spectrogram to ...
Lorenzoncina's user avatar
0 votes
1 answer
5k views

Autocorrelation: numpy versus FFT

I have a series a of values (0 and 1) coming from a Brownian process with drift for which I am studying the autocorrelation. I used two methods: 1) numpy autocorrelation: ...
simgh's user avatar
  • 1
0 votes
1 answer
406 views

Autocorrelation - Understanding reduced correlation at periodic time shifts using np.correlate (versus statistical autocorrelation)?

I'm going through the Think DSP by Allen B. Downey, and I'm struggling to understand a specific aspect of np.correlate and how it differs from statistic autocorrelation. The question is at the bottom, ...
minifigmaster125's user avatar