Questions tagged [numpy]
The numpy tag has no usage guidance.
6
questions
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 ...
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:
...
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
...
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 ...
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:
...
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, ...