Thread View: alt.msdos.programmer
1 messages
1 total messages
Started by jkchan
Fri, 19 Oct 1990 19:57
Discrete sin function programming
Author: jkchan
Date: Fri, 19 Oct 1990 19:57
Date: Fri, 19 Oct 1990 19:57
28 lines
1314 bytes
1314 bytes
I am programming a frequency varying sin function like:
y = sin ( 2 PI (f+df)(t+dt)/sf)
where
PI=3.14159
f=initial frequency
df=delta change of frequency
t=time
df=delta change of time
sf=sampling frequency = # of sample points/sec
The problem is that the final waveform of y is not varying as what I like.
I used 1000Hz and 2000Hz for initial and final f respectively but
it actually gave 3000Hz at the end, or something like that.
Are there anyone who have met this situation and fixed it before?
I am sure it is due to the discrete computation of the function because
this problem of frequency modulation does not happen in analog world.
Any pointer is much appreciated.
Please email to the above address.
Thanks in advance.
Jim
--
Jim Chan
Hearing Lab
Communication Sciences and Disorders
School of Special Education
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads