Python Forum
How to create amplitde ramp function in python
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create amplitde ramp function in python
#1
I am trying to create an amplitude ramp function. Similar to "chirp()" used for creating a frequency ramp function.
Please help me with your suggestions.

P.S. This is my first post, so , sorry in advance for any mistakes/errors
Reply
#2
Ok, but what would it do?

What's a chirp()? Is that from another language? Which one?

What have you tried so far, and in what ways is it different from what you expect?
Reply
#3
This is a chirp:    

A chirp is a signal with changing frequency in time.
It's used for example in FMCW Radar systems: http://radartutorial.de/02.basics/Freque...ar.en.html

Here the code, I used to generate the signal:

start_freq = 1
end_freq = 100
samples = 44100
time_basis = np.linspace(0, np.pi * 2, samples)
chirp = np.linspace(start_freq, end_freq, samples)
signal = np.cos(time_basis * chirp)
I guess it's clear enough to understand the math.
If you want to do this without numpy, it's a bit more work.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020