Linked Questions

21
votes
3answers
10k views

How to implement a digital oscillator?

I have a floating-point digital signal processing system that operates at a fixed sample rate of $f_s = 32768$ samples per second implemented using an x86-64 processor. Assuming that the DSP system ...
8
votes
1answer
2k views

Help with algorithm for modulating oscillator pitch using LFO

I am developing a software emulation of an analog synthesizer. I am trying to modulate the pitch of an oscillator using an LFO. For each sample fed to the computer's sound system, I am calculating ...
3
votes
3answers
913 views

What is the most computationally efficient way to generate 100 sine waves layered on top of each other?

Right now I simply do this (pseudocode) for freq in freqs: for i in len(samples): samples[i] += sin(...) Is there a better way? This is for ...
9
votes
1answer
2k views

Frequency Modulation Synthesis Algorithm

Based on what I read, I've made an algorithm for FM sound synthesis. I'm not sure if I did it right. When creating a software synth instrument a function is used to generate an oscillator and a ...
4
votes
2answers
409 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
308 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 ...
0
votes
1answer
961 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 ...
2
votes
2answers
209 views

Generating a sound where end frequency is 1/2 of the start frequency

I am very very new to signals, and I am trying to generate sounds based on some parameters from a database. So, the database stores the following: startFrequency endFrequency startAmplitude ...
5
votes
1answer
236 views

How to create a sine wave that transitions through frequencies and returns to phase

For an auditory psychological experiment, I need to create a sine wave, such that at a given point the frequency of the wave will rise smoothly, and descend back to base frequency. I need it to return ...
1
vote
1answer
190 views

Frequency modulation implementation without trig functions

https://dsp.stackexchange.com/a/1087 This answer suggests generating a sine wave using complex phasor multiplication. At each step the phasor is multiplied by another complex number (omega) to rotate ...