downsampling

Downsampling and applying a lowpass filter to digital audio

I've got a 44Khz audio stream from a CD, represented as an array of 16 bit PCM samples. I'd like to cut it down to an 11KHz stream. How do I do that? From my days of engineering class many years ago, I know that the stream won't be able to describe anything over 5500Hz accurately anymore, so I assume I want to cut everything above tha...

Java - downsampling wav audio file

Hi I need to downsample a wav audio file's sample rate from 44.1kHz to 8kHz. I have to do all the work manually with a byte array...it's for academic purposes. I am currently using 2 classes, Sink and Source, to pop and push arrays of bytes. Everything goes well until I reach the part where I need to downsample the data chunk using a ...

Perceptual Image Downsampling

So here is my problem: I have an image, that image is large (high resolution) and it needs to be small (much lower resolution). So I do the naive thing (kill every other pixel) and the result looks poor. So I try to do something more intelligent (low pass filtering using a Fourier transform and re-sampling in Fourier space) and the re...

How do I sample a matrix in MATLAB?

I have a matrix in MATLAB from which I want to sample every other entry: a = 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 And I want: result = 1 9 3 11 How can I do this without a for loop? ...

Reducing moire when downsampling halftone comic images.

How can I reduce moire effects when downsampling halftone comic book images during live zoom on an iPhone or iPad? I am writing a comic book viewer. It would be nice to provide higher resolution images and allow the user to zoom in while reading the comic book. However, my client is averse to moire effects and will not allow this feat...

Downsampling the number of entries in a list (without interpolation)

I have a Python list with a number of entries, which I need to downsample using either: A maximum number of rows. For example, limiting a list of 1234 entries to 1000. A proportion of the original rows. For example, making the list 1/3 its original length. (I need to be able to do both ways, but only one is used at a time). I believ...

symbian C++ downsizing libraries

I wish to record audio at 32 kHz on my Symbian device but it only supports 48 kHz. From searching the internet I believe the term for what I am trying to do is called downsizing. Is there a C++ library that will compile and run on Nokia Symbian phones that will do this for me? Or is the algorithm simple enough for me to implement on my o...