Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21344 Discussions

Help in creating sin wave lookup table in C to simulate keyboard note using DE1 board

Altera_Forum
Honored Contributor II
1,035 Views

Hello I am new to this forum and I hope this is the right place to ask this question. 

I need help on how to create a lookup table in C. I need to use the lookup table to simulate the sound of a note from a piano. The lookup table has to be programmed in C. This question is based on lab 8 from altera part 3(I can't post links yet so I attached the file). 

 

So far I generated a sin wave using the given equation in the lab8 guidelines. However, I do not know what else to do from there.
(Virus scan in progress ...)
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
351 Views

Actually, if you want to generate sin() or cos() the Goertzel generator is better - provided you can do a multply per sample.

0 Kudos
Reply