Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Amplitude Sweep? (Read 3617 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Amplitude Sweep?

hello guys,

I am trying to generate Amplitude Sweep Signal, at a given constant frequency with the following equation

Code: [Select]
X(n) = 10^{(start_amp + Delta.k.t)/20} * Sin(2.pi.f .t) * (1<<24)


but i am not getting exact Amplitude sweep signal, can any one know whats wrong with above formula....

If there exist a better way of generating Amplitude sweep signal with a specific formula, please explain

Thanks in Advance....[/size]

Amplitude Sweep?

Reply #1
Looks like you're on the right track. What are you using for start_amp, Delta and k? What's going wrong?

Amplitude Sweep?

Reply #2
Looks like you're on the right track. What are you using for start_amp, Delta and k? What's going wrong?


According to the test stream
start_amp = -120
stop_amp = 0
duration of sweep = 30 sec
Delta.k    = (stop_amp - start_amp)/duration of sweep  = 120/30 = 4
sampling rate = 48000
and yes bro, i am almost there, but my problem is up-to 2 digits of decimal part the amplitude values are matching with reference and after that they are differing and some( 2 or 3) values in decimal part are entirely differing.

Any thoughts ?

Amplitude Sweep?

Reply #3
hello guys,

I am trying to generate Amplitude Sweep Signal, at a given constant frequency with the following equation

Code: [Select]
X(n) = 10^{(start_amp + Delta.k.t)/20} * Sin(2.pi.f .t) * (1<<24)


but i am not getting exact Amplitude sweep signal, can any one know whats wrong with above formula....

If there exist a better way of generating Amplitude sweep signal with a specific formula, please explain

Thanks in Advance....[/size]



You might be expecting too much. The highest amplitude sample points on the waveform of a sweep naturally jump up and down because the sampling frequency does not always line up with the frequency of the generated wave at most points.

 

Amplitude Sweep?

Reply #4
hello guys,

I am trying to generate Amplitude Sweep Signal, at a given constant frequency with the following equation

Code: [Select]
X(n) = 10^{(start_amp + Delta.k.t)/20} * Sin(2.pi.f .t) * (1<<24)


but i am not getting exact Amplitude sweep signal, can any one know whats wrong with above formula....

If there exist a better way of generating Amplitude sweep signal with a specific formula, please explain

Thanks in Advance....[/size]



You might be expecting too much. The highest amplitude sample points on the waveform of a sweep naturally jump up and down because the sampling frequency does not always line up with the frequency of the generated wave at most points.




Thanks bro...can you explain in detail the above concept ????