Question

Design a digital sine wave oscillator with f= 440 Hz, Sample rate = 5 kHz. Can the amplitude be adjusted without multiplication?

Design a digital sine wave oscillator with f= 440 Hz, Sample rate = 5 kHz. Can the amplitude be adjusted without multiplication?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

given that ;

f = 440Hz

sample rate = 5 kHz

#include <stdlib.h>

#include<math.h>

void main(void)

{

float Freq,t[5000],Fs, Amp;

Amp=1;

int i,j;

Freq=440; //Hz

Fs = 5000; //5KHz

for(i=0;i<5000;i++)

{

t = i;

t = t/5000;

SineWaveSignal = Amp * sin(2*PI*Freq*t)

}

}

}

Add a comment
Know the answer?
Add Answer to:
Design a digital sine wave oscillator with f= 440 Hz, Sample rate = 5 kHz. Can the amplitude be adjusted without multiplication?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT