Questions tagged [resampling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
57 views

Frequency response of discrete time system involving interpolation and resampling

I am working on a problem towards calculating frequency response of discrete time system(does interpolation followed by resampling) which looks like: x(n) is fed to linear interpolator(h(t) = ...
0
votes
0answers
25 views

Role of oversampling within resampling / pitch modification

I'm working on a pitch modification plugin involving resampling, and want the quality to be as high as possible. I currently use windowed sinc interpolation and lowpass filter where required. I ...
0
votes
1answer
30 views

Downsampling a signal containing artifacts

I have 2 kHz-sampled signal that I would like to downsample to 256 Hz. The original signal contains artifacts (= time intervals where data has too high/too low values. I know boundaries of the ...
0
votes
1answer
50 views

Resampling pitch shifter

I’m trying to build a very basic resampling pitch shifter which reads samples from disk. I only want to change -+6 semitones without keeping the original sample length. I already have all the classes ...
0
votes
1answer
48 views

Does resampling to low number of samples lead to loss in high frequency content?

I am building an one dimensional Convolutional Neural Network and wish to feed it raw audio but it turns out that the number of samples is very larger. The audio was sampled at 48 kHz and the duration ...
0
votes
3answers
40 views

Theoretical considerations for Using Finite Arrays to Represent Samples of Signals of Infinite Length

Discrete signals can come from sampling continuous-time signals. A continuous-time signal can be of infinite support. For instance, a sin wave. In terms of mathematical description of signals and ...
14
votes
3answers
14k views

How to Resample Audio Using FFT or DFT

I'm down sampling voice audio by first performing an FFT, then only taking the parts of the result that I need, and then performing an inverse FFT. However, it's only working properly when I'm using ...
1
vote
2answers
5k views

Downsampling and Upsampling Using FFTW

I'm having 2 signals which have different sampling rates i.e., 1ms(A) and 4ms(B) and I've tried to upsample/downsample either of the signals based on the code snippet Resampling based on FFT which I ...
0
votes
1answer
34 views

What is the meaning of spectral contamination in image processing?

I resize the Multispectral image to perform IHS-to-RGB transformation. I used the Nearest Neigbour Interpolation method when resizing. While researching this issue, I saw that this is the best option ...
0
votes
2answers
765 views

Signal Resampling by a non integer factor with convolution

to start I am a newbie in signal processing, I just started a month ago so please be as detailed as possible. From what I understood to resample a signal by a non integer factor you can do an ...
0
votes
1answer
57 views

Streaming windowed sinc interpolation/resampling: trying to understand a Rust implementation

I'm working on a fork of the Rust dasp library, which is intended to be a DSP toolkit that abstracts over samples/frames/signals, and contains a number of functions ...
1
vote
2answers
218 views

Resampling with and without replacement for estimating significance of spectral components

In order to test the significance of spectral components, it seems reasonable to randomly sort the data in order to destroy all the serial correlations / spectral order e.g. 100,000 times, and then ...
0
votes
1answer
130 views

Having Glitches trying to use a Sinc Function Interpolation on a Signal, by chunks of 1024 samples

I am trying to interpolate a signal using a third party lib that performs Sinc Function Interpolation on a signal. It works well if I input all the samples at once but introduce phase distortion if I ...
0
votes
2answers
777 views

frequency divider

How would one implement a frequency divider? I know I can resample up and then treat it as if I'm at the same frequency, however I want to divide the frequency of my signal by 2 and keep the same ...
0
votes
2answers
51 views

Resampling of DTFT

I have a constant digital signal that is 1 for every sample and of length 4. 4 point DFT coefficients are $$[4,0,0,0]^T$$ Obviously. I wonder, if I resample the DTFT such that samples are taken at $$...
0
votes
1answer
80 views

Python: Resample without equal

I would like to resample (downsample) a signal using python in order to get an even spacing and fill gaps. About the signal: It consists of a vector for y (amplitude) and x (timestamps) Very slow; $...
3
votes
2answers
1k views

Sinc Interpolation Using DFT (FFT)

Lets say I want to double the number of points in an array f. I had the idea to do this: F=fft(f);N=length(f); FF=[F(1:N/2) zeros(1,N) F(N/2+1:N)]; f=ifft(FF); ...
5
votes
3answers
586 views

Absolute convergence of periodic sinc interpolation

An $N$-periodic complex discrete-time sequence $[x_0, \dots, x_{N-1}]$ can be resampled to an $M$-periodic sequence $[y_0, \dots, y_{M-1}]$ with $M>N$, using sinc interpolation: $$\begin{align}y_m ...
0
votes
1answer
155 views

Multiple choice on sampling and aliasing

I found some multiple choices in a well known book . The problem is that I don't get the answers in some and I want to do so. Question 1: The signal x(t) with Fourier transform $X(j\omega) = u(\omega)-...
1
vote
1answer
51 views

Remove noise introduced while converting a Delta-Sigma Modulated (DSM) signal into a pulse-code modulated (PCM) signal?

I'm writing a tool that converts a dsdiff audio file (dsd64) into a flac audio file (DSM -> PCM). The project is both a programming exercise and a signal processing exercise; I'm learning a lot ...
0
votes
1answer
68 views

What are the 'phases' in this 2D scaler filter

I am pretty new to DSP and have been looking at how image scaling is done in hardware. I and came across a 2D scaler core for an FPGA here. I have read up a bit about polyphase filters, but am ...
0
votes
2answers
59 views

draw sines at higher freq

I'm trying to plot some sine waves (code example in plain js here). When freq is "low" (freq = 10 hz in that case), the plot is quite nice: The problem ...
0
votes
1answer
491 views

How to prevent distortion after down-sampling?

I am new to audio signal processing, but in one of my machine learning projects that I am working on, I need to down-sample my audio somewhere in the middle of my neural network. Therefore, I need a ...
0
votes
1answer
100 views

Apply filter before or after Downsampling?

Context: I'm trying to do formant estimation. My first attempt didn't work out all that well so I'm trying to follow closely Praat since their formant estimation is remarkably accurate. Question: I ...
1
vote
1answer
1k views

The condition in order to not lose information after upsampling and downsampling [closed]

If you have a signal x[n] and it is interpolated by N and then decimated by M, how do you ensure minimum distortion in x[n] from the resampling process?
0
votes
0answers
784 views

How do I change the sampling rate without changing the speed and pitch in Python?

I am building a voice recognition algorithm, and the use case specifies that it should be able to identify the targeted speaker from various audio sources, which means that it must be able to process ...
2
votes
1answer
265 views

How to implement sinc interpolation

I'm trying to write my own high quality audio sample rate converter. I barely know anything about signal processing though so I need help. From what I understand I need to sum together normalized sinc ...
0
votes
1answer
37 views

How to transform a signal to go through specific points?

I have a 1d signal obtained using a Fourier based resample method (TDIFDZP) for which the resampled points don't necessarily go through the original samples. I want to transform the upsampled signal ...
0
votes
0answers
32 views

Resampling with factor linearly moving from one value to another: calculate expected target length

I am resampling an audio (1D) signal, using a resampling factor that moves linearly from startFactor to endFactor; say the input ...
1
vote
1answer
89 views

Oversampling a signal

I’ve built a circuit with an analogue sensor (70 Hz bandwidth) connected to a 24 bit ADC, which is oversampling the signal at 10 kHz. Nyquist sampling theorem implies I should sample by at least 140 ...
0
votes
0answers
37 views

Resampling assessment

I'm trying to figure out which of the resampling methods is best in my job. Comparing the original image vs. bilinear, bicubic, bicubic spline, lanczos. For now I have considered metrics like MSE RME ...
0
votes
1answer
85 views

Upsampling implementation

I have problem with upsampling implementation in the following way: My code: ...
0
votes
1answer
122 views

Upsampling in Python

I'm trying to perform upsampling in Python. Given the signal 's' and factor of upsampling N, I wrote the following code: ...
1
vote
2answers
123 views

Fourier Transform of sampled reflectance measurements

Goal: Calculate the complex index of refraction ($\hat n = n +jk)$ from reflectance measurements. Data: Reflectance measurements for various materials were taken with a FTIR (Nicolet™ iS50 FTIR, ...
2
votes
2answers
236 views

Does resampling cause phase shifts?

I have a signal sampled at 40MHz, I would like to resample it to 37MHz. The signal is not periodic, I did resampling with Matalb resample function and it doesn't cause phase shift (as far as I ...
1
vote
1answer
64 views

How to correct for delays in a PAM-X signal with orthogonal CDMA?

I have a receiver which receives data bits at a rate of 5kbit/s. The number of data bits per burst is low (say, 16 bits). These databits are obtained after despreading the incoming signal using an ...
0
votes
3answers
95 views

Interpretation of sample rate

I'm a little confused about the sample rate: If I have an audio file that was recorded with a sample rate of 48kHz, this means that there are 48,000 values per second in this file, right? So when I ...
0
votes
2answers
185 views

Downsampling issues

I have this data that need to be downsampled so that it can be fed into a classifier. The issue is that I need to downsample from 1000Hz into 20Hz. If you see the graph below, the blue line is the ...
2
votes
0answers
64 views

How can I extract the 2 polyphase components of a signal after sampling at the half of sampling rate

Suppose I have a continuous signal $x(t)$, which was sampled using sampling function $s(t)$ whose sampling rate is $T_s$.How can I sample the continuous signal by Ts/2 instead of Ts in order to get ...
1
vote
2answers
81 views

Rectify signal basic question

When rectifying a signal by squaring it, is it necessary to upsample by a factor of 2? Why is this?
0
votes
1answer
130 views

Upsampling question- Aliasing/imaging problem

I'm trying to study vibrations in a non-stationary shaft by upsampling the original signal. The original sample rate is at 25.6kHz, and it is being upsampled to 36kHz. In the FFT of the upsampled ...
0
votes
1answer
44 views

Obtaining a high sample rate digital approximation to an analog filter from lower frequency measurements

Consider a set of dense, but generally irregularly-spaced frequency response measurements of some real low-pass analog filter. Denote the maximum frequency for which a frequency response measurement ...
2
votes
2answers
578 views

How can I synchronize signal from an LED and TTL pulses better?

I would like to synchronize my video and voltage data using Python. (I obtain these data using Bonsai and Open Ephys for an open field exploration experiment.) I sent $150\text{ ms}$ long TTL pulses ...
1
vote
1answer
401 views

Best way to resample an OFDM signal without interpolating + filtering?

I am working on a custom transceiver with a sampling rate of 3.84 MHz (256 OFDM subcarriers at 15 kHz, although 56 subcarriers are null). I would like to resample the signal to 5 MHz, in order to use ...
4
votes
2answers
17k views

What is the difference between cubic interpolation and cubic “Spline” interpolation?. How to use it for upsampling purpose?

After considering a couple of advices and suggestions for upsampling techniques here, I finally converged to use the cubic interpolation technique to estimate the voltage values corresponding to ...
0
votes
0answers
48 views

Composition of interpolation and decimation matrices

I understand that interpolation is a linear transformation of a signal vector that combines interleaving the elements of the input vector with zeros followed by a filtering operation to remove any ...
0
votes
1answer
241 views

How to Emulate Sample Frequency Offset for OFDM in Matlab?

I am studying the effect of sampling frequency offset on OFDM, and in order to emulate SFO, I have to slightly change the sampling rate of the signal. In order to have a +5ppm offset, I have to change ...
0
votes
0answers
29 views

resample interpolation decimation filters algorithm

I'm creating a program in order to perform Resample, Interpolation and Decimation Frequency. ...
3
votes
1answer
124 views

How to Increase the Resolution of a Video from a Sequence of Photos?

I have a video filmed in a relatively low quality and resolution and a sequence of photos of higher quality taken of the same scene at the rate of about one image every two seconds or so. Could those ...
3
votes
2answers
151 views

Unexpected Result When Using Sinc Interpolation

blue is how I tried to sinc interpolate. why would something like this happen?