Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

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

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.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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