Questions tagged [resampling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers
117 views

Estimating spectrum with regularly missing samples from data

Suppose: $$ s(t) = \sin(2\pi{f_0}t) $$ Suppose I'm sampling the signal with a sample frequency $f_s >2f_0$ . However, every $M$ samples there is a dead-time of $L$ samples. Traditionally, the (...
Sammy Apsel's user avatar
0 votes
1 answer
440 views

Resampling to the same sample rate via Python

I'm working on machine learning model and tried to downsample WAV files with Python script, but it didn't work, so I made the simple version - script "resamples" WAV file from 44100Hz to the ...
Kamil's user avatar
  • 3
0 votes
2 answers
102 views

Effect of changing sampling rate of an audio signal

What will happen when sampling rate of an audio signal is changed? Does it changes signals duration or signals total sample or both?
chaos24's user avatar
1 vote
1 answer
89 views

Resampling a signal with variable sampling rate

I’ve created an upsample and a downsample functions (x2) using polyphase FIR filter. I have a signal which comes in chunks where sampling rate of each chunk can vary between 1x and 2x (e.g. 48000 Hz ...
user1685095's user avatar
5 votes
4 answers
954 views

Is adding a mean point between every two points a valid way of upsampling?

Suppose we need to double the sampling rate of an audio signal. Is adding a mean point between every two points a valid way of upsampling? If no, then why not? For example, in images, pixels may be ...
Ritesh Singh's user avatar
1 vote
0 answers
23 views

Calculating the sample position for simulating the effect of gradually raising the playback rate

Suppose I have a sound recording of a tone whose instantaneous frequency keeps falling (continuously, not in steps) in inverse proportion to the running time -- i.e. the initial frequency is 1000 Hz, ...
5-limit_JI's user avatar
1 vote
1 answer
50 views

Stringent filter requirements

I am trying to resample a signal using Matlab's resample function. The documentation explains that conceptually, it is upsampling by p, then applying an interpolation filter, then downsampling by q, ...
Levi's user avatar
  • 95
3 votes
2 answers
466 views

Matlab "resample" function

Say I have a signal x(n) and I want to resample from rate 30Hz to 20Hz. In Matlab, I can make a filter with: ...
Levi's user avatar
  • 95
0 votes
1 answer
80 views

Resampling in time

I have a huge dataset, way too much to be loaded into memory. I need to downsample the data to a new rate. Normally, this would consist of upsampling by N, applying FIR LPF, then decimating by M to ...
Levi's user avatar
  • 95
1 vote
1 answer
76 views

Multiple questions about how to implement practical resampling

I am learning resampling theory, and for the time being I am specifically interested in downsampling. I have a textbook that is not a dsp textbook but has a section on resampling. The way they put it, ...
Levi's user avatar
  • 95
0 votes
1 answer
74 views

Does the combined pointsample+bilinear upscaling algorithm have a name?

I have been performing digital image upscaling of pixel art in one of my hobby projects, and the two simplest upscaling algorithms are point sampling or bilinear upscaling. Point sampling exhibits ...
trojj's user avatar
  • 1
2 votes
3 answers
568 views

How to align timeseries by decimating while preventing aliasing?

I have two pandas DataFrames, dfb and dfv, where dfb has a higher sampling rate than ...
Jokerp's user avatar
  • 179
1 vote
1 answer
437 views

Creating a polyphase filter

I need to design a 3/2 resampling filter using polyphasic filters. On my original filter I have coefficients $$h[n] = [a_0, a_1, a_2, a_3, a_4, a_5, a_6, a_7, a_8, a_9, a_{10}, a_{11}]$$ making it an ...
Ricardo Silvestre's user avatar
4 votes
2 answers
718 views

Resampling in frequency domain

I have a problem to solve, I need to get the frequency spectrum from the first plot, and then transform it into the second plot using resampling and filtering. My thought process was, I can upsample ...
Ricardo Silvestre's user avatar
1 vote
1 answer
44 views

Frequency constraints on a down-sampled signal

I am preparing for an examination and am confused about one of the questions on the study guide. The question given on the study guide is given below. We want to implement a change of sampling rate ...
AdamsK's user avatar
  • 67
0 votes
1 answer
164 views

Resampling in real-time with non-integer ratio

I have a classifier that is trained on a dataset sampled at 100Hz. I am using this classifier on a MCU (the teensy 4.0 dev board) for inference and not training. However, the ADC chip I am using ...
NeuroEng's user avatar
  • 123
4 votes
3 answers
726 views

Convert Sample Rate of IIR Filter Coefficients

I have IIR filter coefficients and zeroes, poles for that filters. But all filters are generated with 192kHz sample rate. I have no other info about filter properties such as Fc or filter type or Q. ...
BugraKezan's user avatar
0 votes
0 answers
39 views

Oversampling of OFDM post-IFFT frame

I would like to build IQ radio waveform - first part - synchronisation sequence (ZC) and second part, OFDM frame with Cyclic Prefix(after IFFT). I want to to oversample ZC sequence at transmitter, and ...
Sink's user avatar
  • 1
0 votes
2 answers
119 views

Sample rate conversion of a complex bandpass signal

I have a complex bandpass signal. I need to upconvert it from 230.4 Msps to 245.75 Msps, i.e. by a factor of 16/15. What would be the best way to do it?
samir mishra's user avatar
3 votes
1 answer
308 views

java resampling implementation using sinc function

To be as succinct as possible, I've written a Java method that implements resampling of a signal using the sinc function interpolation formula. When I test this code with a simple sinusoid, I'm able ...
Richard Sand's user avatar
2 votes
2 answers
281 views

Realtime sample rate conversion from variable source

Having all but given up on getting USB audio to work reliably, I'm looking now at taking the stereo 16-bit I2S stream from the Raspberry Pi 4's 40-pin GPIO header. Unfortunately, that signal stops ...
AaronD's user avatar
  • 131
3 votes
2 answers
214 views

Effect of sample frequency on deconvolution

I am a chemical engineer so I'm not very familiar with the methods of signal processing. Nevertheless I need to apply them now on my thesis work. Most recently a question occurred to me, that is ...
Pascal's user avatar
  • 31
0 votes
1 answer
96 views

On-the-fly computation of a variable cutoff frequency polyphase resampling filter

I'm creating a polyphonic audio sample player and I want to let the user play each voice faster or slower using resampling by a rational factor (classical interpolate by L / decimate by M scenario), ...
DashNode's user avatar
2 votes
1 answer
448 views

True Peak detection

To measure True Peak, MathWorks's Matlab Help Center page suggests: The signal is over-sampled to at least 192 kHz. The over-sampled signal, a, passes through a ...
Juha P's user avatar
  • 867
0 votes
0 answers
81 views

Downsampling a binary file

TEXBAT is a recorded dataset about spoofing scenarios for evaluating GPS signal authentication techniques. On this project, there are recorded GPS signals stored as complex 16- bit samples at a rate ...
Aldrich Taylor's user avatar
2 votes
3 answers
249 views

Why are real-world digital images not bandlimited?

In the materials about image resampling, it always mentions that real-world digital images not bandlimited. However no explanation is provided. For example, Sinc resampling in theory provides the ...
Jogging Song's user avatar
2 votes
2 answers
82 views

Image warping with heat map that "pulls" on pixels

I am looking for an efficient image warping function $$f: (\text{image}\in \mathbb R ^{M\times N\times3}, \text{heatMap} \in \mathbb R ^{M\times N}) \to \text{warpedImage} \in \mathbb R ^{M\times N\...
Peter's user avatar
  • 143
0 votes
1 answer
59 views

Representing changing sample rate in block diagram and frequency response plot

I have an discrete integrator which sums over a block of input samples to produce output samples at a lower rate. The integrator sums a block of 8 input samples, multiplies the sum by a coefficient, ...
Campground's user avatar
1 vote
1 answer
120 views

Sinc Based Multi Dimension Signal Resampling on the Fourier Spectrum (DFT)

As a generalization of the following questions: The Proper Way to Do Sinc Downsampling (DFT Downsampling) for Uniformly Sampled Discrete Signals with Finite Number of Samples. The Proper Way to Do ...
Eric Johnson's user avatar
2 votes
1 answer
50 views

Why does my field convert spatially anisotropic data to a spatially isotropic form as a part of preprocessing?

I've struggled to find any literature explaining this, so here's hoping someone can help out. I work in a subfield of MRI where the data that we collect is 4D (3D spatial and 1D temporal). Due to ...
S.C.'s user avatar
  • 121
1 vote
2 answers
582 views

Is it ok to resample impulse response?

I have some room impulse response at 48kHz sampling rate. I have recording at 16kHz sampling rate. I want to apply impulse response on the recording. What I do now is downsample impulse response 48kHz ...
dankal444's user avatar
  • 111
0 votes
1 answer
203 views

How to upsample voice properly?

I have a low quality 24 kHz mp3 voice and I'd like to upsample it to 48 kHz for farther mixing with another ...
dereks's user avatar
  • 101
0 votes
0 answers
58 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 ...
MysteryPancake's user avatar
0 votes
1 answer
149 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 ...
demitau's user avatar
  • 101
0 votes
1 answer
553 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 ...
David912's user avatar
  • 103
0 votes
1 answer
404 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 ...
InputBlackBoxOutput's user avatar
1 vote
2 answers
197 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) = ...
MohitGodara's user avatar
1 vote
3 answers
70 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 ...
Ziqi Fan's user avatar
  • 113
0 votes
1 answer
89 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 ...
Sun's user avatar
  • 43
-1 votes
1 answer
538 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 ...
Mark LeMoine's user avatar
0 votes
1 answer
1k 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; $...
KasparJohannes's user avatar
0 votes
1 answer
280 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)-...
tonythestark's user avatar
1 vote
1 answer
208 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 ...
FirefoxMetzger's user avatar
0 votes
1 answer
382 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 ...
rmaw's user avatar
  • 3
0 votes
2 answers
66 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 ...
markzzz's user avatar
  • 35
0 votes
1 answer
1k 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 ...
Tom Huntington's user avatar
0 votes
0 answers
2k 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 ...
Zack's user avatar
  • 1
2 votes
1 answer
1k 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 ...
sincman's user avatar
  • 23
0 votes
1 answer
80 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 ...
Massimo Panda's user avatar
0 votes
0 answers
49 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 ...
0__'s user avatar
  • 113