Questions tagged [c]

C is a high level (i.e. not assembler) programming language often used to program DSPs and other embedded microprocessors as well as being used for systems programming. Features of the language make it especially suitable for programming hardware and writing device drivers.

Filter by
Sorted by
Tagged with
12
votes
2answers
11k views

Add odd/even harmonics to signal?

How do I add odd or even harmonics to a floating point signal? Do I have to use tanh or sin? What I'm trying to do is achieve some very simple distortion effects, but I'm having a hard time finding ...
12
votes
4answers
3k views

Recommendation for book - Writing DSP code in C

I am looking for some good book, that simply show how you actually write a code in C, to do all the main DSP methods . FFT. Low-pass and high-pass filters. Auto-correlation. Noise processing. And ...
8
votes
4answers
8k views

Optimized Ansi C libraries for DSP

I am new to DSP? Where is a good resource for open source DSP algorithms? MATLAB is great at making protos but once we move to C coding, it takes time and we end up making too many mistakes. I would ...
10
votes
3answers
12k views

Digital Distortion effect algorithm

I read the DAFX book by Udo Zölzer about the distortion effect at pages 124-125 and it says that suitable simulation of the distortion is given by the function: $$f(x)=\frac{x}{|x|}\left(1-e^{x^2/|x|}...
2
votes
3answers
2k views

Get a N-FFT with two N/2-FFT already computed

After somme researchs on the web, I don't find the answer of my problem (or I don't understand it) and I hope this post will succeed. I'm working on a real-time FFT convolution algorithm (C++) which ...
0
votes
2answers
661 views

IIR Lattice Filter in C programming

I would like to implement Lattice IIR filter in c, i can't defined the value of gN, i know that x(n) = fN(n), but how to initialize gN ?. you can find the algorithm here : n
2
votes
1answer
3k views

Cutoff frequency of a first order recursive filter

I've implemented a very simple first order recursive low pass filter in c using the algorithm: ...
13
votes
2answers
1k views

Real-valued ringing when zero-padding odd-length FFT

So I'm trying to write a frequency-domain interpolator that zero-pads the frequency response of a signal and inverse transforms. There's two cases I have to deal with: Even-length response - have to ...
0
votes
3answers
2k views

Convolution and Deconvolution in C

I understand the theoretical foundations of convolution, but now that I'm trying to program it I'm having some issues conceptually. Say I have two blocks of 64 audio samples each. I also have access ...
1
vote
3answers
3k views

3dB and 6dB Per Octave Rolloff Digital Filters / Generating Pink and Brown Noise

So I would like to have a design method for filters with 3dB and 6dB per octave roll off -- for generating pink and brown noise respectively. I know the following 'pinking' filters exist: Filter to ...