Linked Questions

31
votes
5answers
19k views

How to create a sine wave generator that can smoothly transition between frequencies

I am able to write a basic sine wave generator for audio, but I want it to be able to smoothly transition from one frequency to another. If I just stop generating one frequency and immediately switch ...
27
votes
6answers
2k views

Calculating the PDF of a waveform from its samples

A while ago I was trying different ways to draw digital waveforms, and one of the things I tried was, instead of the standard silhouette of the amplitude envelope, to display it more like an ...
7
votes
1answer
2k views

How to avoid denormalized numbers?

The same floating-point AMD X86-64 digital signal processing system mentioned in my previous question has a problem where it sometimes slows down substantially when signals attain values very near (...
3
votes
1answer
4k views

Numerically Controlled Oscillator (NCO) for phasor implementation?

If I want to simulate a digital oscillator (or phasor) to modulate an arbitrarily length signal: $$y(t) = \cos(2\pi f_ct)\quad\text{where}\quad t = \frac{n}{f_s}\quad\text{for sample}\quad n$$ What ...
0
votes
2answers
10k views

How sine wave is generated using lookup tables

From this document I am quoting P2,L7 So what is the incremental distance if we are using a 64 element look-up table instead of a sine function based on 2π? incremental distance = 2k*64/48k = 8/3. ...
3
votes
2answers
2k views

IIR oscillator produces stable output in MATLAB, unstable on chip, how do I tune it?

I'm trying to make an oscillator using IIR filter and I'm having problems tuning it so that it's stable on the platform I'm using (ARM Cortex M4F and CMSIS DSPLib's arm_biquad_cascade_df1_f32). Note ...
4
votes
2answers
406 views

Sum of sines sound wave using microcontroller

I need to produce a signal which contains only several frequencies, for example, 17KHz, 17.2 kHz,17.6 kHz. The components I'm using are microcontroller (PIC16F1783 by microchip) which works at 80 kHz ...
4
votes
4answers
296 views

How to determine precision needed for sin approximation used for sound synthesis?

I am doing some procedural sound synthesis in Java. I want to have a sine wave as one of the possible basic sounds. When experimenting with that, I have found the default Java ...
1
vote
1answer
1k views

Generate loopable sine wave cycle for given frequencies

I am somewhat new to DSP so bare with me. I am working on a simple wavetable oscillator. What I am trying to do is generate one cycle of a wave form for each note (frequency) and store it in an array ...
0
votes
1answer
955 views

How to process/generate a phase shifted frequency varying sine wave?

I want to phase shift an incoming sine wave with varying frequency but I am unsure how to go about doing so in practical terms. A little more info regarding the requirements: I have an encoder ...
0
votes
1answer
222 views

How should I modulate a $16$ bit input using FSK?

I need to graph a $16$ bits binary sequence, assuming that it'll be a FM analog signal I need to apply FSK to it. So, I think I should use the formula $A \cos(2\pi f_1 t)$ for binary $1$'s $A \cos(...
0
votes
1answer
167 views

How to implement a digital sawtooth oscillator? [closed]

In reference to this topic: How to implement a digital oscillator?, I would like to know how can I implement a solution similar to the one in the topic on a Sawtooth oscillator.