Skip to main content

Questions tagged [resampling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Resampling n timeseries datasets with different sampling frequencies

I am currently working on an IoT project that uses datasets from different sensors with differing sample rates fs = (1s, 30s,...). I combine this with API data <...
sebzuddas's user avatar
0 votes
0 answers
29 views

Upsampling realtime data for sensor fusion

I am doing a real-time sensor fusion of gps and imu streams using a Kalman filter. Both streams are obtained independently (with geolocation and accl-gyro values) in real time. I am doing this in ...
fasith's user avatar
  • 1
2 votes
1 answer
55 views

Digital Audio Resampling

I've been working from this reference document, essentially trying to recreate Figure 7 with the understanding that the two functions place_signal and ...
Michael Blazej's user avatar
0 votes
1 answer
112 views

Help with resampling algorithm implementation

I am trying to implement the resampling algorithm as described in this paper: https://ccrma.stanford.edu/~jos/resample/resample.pdf I managed to construct the $h$ (windowed sinc) table, and I have ...
Marco Castorina's user avatar
2 votes
3 answers
542 views

How can the quality of a resampling algorithm be measured?

I need to write my own resampling algorithm to resample sample and impulse response wav files between 44.1, 48 and 96 kHz. I'm on an embedded platform, so I don't have access to the usual libraries. ...
Tobias Hienzsch's user avatar
1 vote
1 answer
203 views

FIR filter design for resampling

I am working on an audio resampler that is realized as a polyphase FIR filter. While testing, I found that it does not suppress aliasing as well as I would have expected. For testing, a sine sweep is ...
wolframw's user avatar
3 votes
1 answer
356 views

Identifying incorrectly sampled recordings and finding their actual sampling rate

I have a dataset that contains a lot of recordings sampled incorrectly. This incorrect resampling could be explained in two ways: A recording S, which was recorded with a sampling rate of 16kHz, was ...
thanatoz's user avatar
  • 131
4 votes
2 answers
145 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
1k 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
311 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
164 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
6 votes
4 answers
1k 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
59 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
  • 157
3 votes
2 answers
737 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
  • 157
0 votes
1 answer
94 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
  • 157
1 vote
1 answer
91 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
  • 157
0 votes
1 answer
90 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
782 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
  • 189
1 vote
1 answer
767 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
945 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
48 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
244 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
1k 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
2 answers
193 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
434 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
424 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
224 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
123 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
535 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
  • 917
0 votes
0 answers
101 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
304 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
93 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
70 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
123 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
55 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
710 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
226 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
65 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
184 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
701 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
580 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
229 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
73 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
96 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
678 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
309 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
242 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
444 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