Rise Time

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
cardong
Posts: 1
Joined: Mon Mar 29, 2010 9:49 pm
Operating System: Please select

Rise Time

Post by cardong » Mon Mar 29, 2010 9:52 pm

What is the default rise time in Audacity for generating a pure tone? How could one change this?

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Rise Time

Post by kozikowski » Mon Mar 29, 2010 10:25 pm

Since Audacity is a digital tool, I think it's instantaneous. I've run into problems where I get a serious click because I started a sine wave too quickly.

You can use the Fade In and Fade Out tools to smooth the transition points. You calculate the fade time versus the frequency. Figure a Fade In is 1/4 of a modulating sine wave, so four times that time and invert to get the frequency. The sum of the two tones needs to be too low to hear.

You can't ever reduce problems to zero because any change to a sine wave produces harmonics.

The basic principal of AM broadcasting.

Koz

whomper
Probationer
Posts: 1251
Joined: Sat Jan 23, 2010 9:36 pm
Operating System: Please select

Re: Rise Time

Post by whomper » Tue Mar 30, 2010 1:19 am

kozikowski wrote:Since Audacity is a digital tool, I think it's instantaneous. I've run into problems where I get a serious click because I started a sine wave too quickly.

Koz
rise time is not slew rate
digital can slew "infinitely" fast
but the rise time should depend on the freq of the sin wav you are trying to do -- assuming you start its rise at a zero crossing point
and of course a square wave will cause a click with a sudden jump
because the very high freqs in the fourier equivalent will permit arbitrarily fast rise times

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Rise Time

Post by kozikowski » Tue Mar 30, 2010 11:47 am

<<<rise time is not slew rate>>>

No, it's not, but we're talking about the tone rise time, not the waveform rise time.

<<<digital can slew "infinitely" fast>>>

Tones can also rise infinitely fast. I just tried it and Generate can start a tone at maximum amplitude from zero. This will create a serious click at the start point if I left it and tried to use it that way.

<<<assuming you start its rise at a zero crossing point >>>

I don't think Generate has any other option.

<<<and of course a square wave will cause a click with a sudden jump
because the very high freqs in the fourier equivalent will permit arbitrarily fast rise times>>>

There is no tool to create square waves I know of. Actual slew rate problems will turn a sine wave into a triangle wave, not square.

This is a straight modulation problem. If you can keep the modulation products below 20 Hz, than you should get a tone that turns on without clicking.

Koz

steve
Site Admin
Posts: 81649
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Rise Time

Post by steve » Tue Mar 30, 2010 2:30 pm

kozikowski wrote:<<<assuming you start its rise at a zero crossing point >>>
I don't think Generate has any other option.
The "Generate menu > Tone..." does not have any other option, but if you use it across multiple tracks it does not start each track from zero.
This tone will start on the first track at zero, but when it gets to the end of the track and starts to generate on the second track it will simply continue from whatever point in the phase cycle it has reached.

Here's an example of creating a sine tone over a very short selection period (a little over 3/4 of a cycle) across two tracks. You can see how the waveform has reached approximately 300 degrees at the end of the selection in track 1, then continues on track 2 from the 300 degree phase point.
tracks000.png
2 track sine tone
tracks000.png (10.16 KiB) Viewed 1647 times
kozikowski wrote:There is no tool to create square waves I know of.
Generate menu > Tone > Waveform (drop-down selection box) > Sine/Square/Sawtooth/Square,no alias.

The "Square, no alias" option will produce a bandwidth limited square wave (equivalent to the sum of a large but finite number of odd harmonics), whereas the "Square" option will produce a square wave with "infinitely" fast rise/fall time (rise time = 1/sample rate).
kozikowski wrote:This is a straight modulation problem. If you can keep the modulation products below 20 Hz, than you should get a tone that turns on without clicking.
Absolutely.
By way of example, if you generate a sine tone and delete a couple of cycles from the middle - starting and ending at zero crossing points - you will hear a "click" during playback where the "gap" occurs. It is, as you say, not the "waveform rise time" that causes the click, but the "tone rise time". Or to put it another way, it is the rate of change that causes the click. Introducing a short fade time will eliminate the click.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

whomper
Probationer
Posts: 1251
Joined: Sat Jan 23, 2010 9:36 pm
Operating System: Please select

Re: Rise Time

Post by whomper » Tue Mar 30, 2010 11:37 pm

kozikowski wrote:<<<rise time is not slew rate>>>

No, it's not, but we're talking about the tone rise time, not the waveform rise time.
Koz
Live and learn. what is *tone* rise time? how does that differ from those others? how can anything that represents a pure sine wave rise faster than that sin's fundamental freq?

steve
Site Admin
Posts: 81649
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Rise Time

Post by steve » Wed Mar 31, 2010 4:07 am

During a constant sine tone, the rate of change is constant. Not so when the waveform starts from DC.

Consider this waveform:
firsttrack000.png
440Hz Sine
firsttrack000.png (8.81 KiB) Viewed 1628 times
This is a 440Hz sine wave in which every other cycle has been removed.
What will the spectrum look like?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

whomper
Probationer
Posts: 1251
Joined: Sat Jan 23, 2010 9:36 pm
Operating System: Please select

Re: Rise Time

Post by whomper » Wed Mar 31, 2010 3:22 pm

thanks
i see the issue and the problem/difference
would not have called it by that name if i had done it
but if that is what it is known by then now i know what it is

Post Reply