Gale Andrews wrote:That's the old text, so I assume a copy/paste error here.
Oops, my mistake
The current text:
- When the spectral selection begins at 0 Hz this effect applies a low-frequency shelving filter with the half-gain frequency defined by the upper frequency of the spectral selection. The gain control sets the amount of low-frequency boost or cut. This is similar to adjusting the bass control on a stereo.
- When the spectral selection ends at the Nyquist frequency of the track this effect applies a high-frequency shelving filter with the half-gain frequency defined by the lower frequency of the spectral selection. The gain control sets the amount of high-frequency boost or cut. This is similar to adjusting the treble control on a stereo.
- When the spectral selection has a center frequency, and upper and lower boundaries this effect applies both low- and high-frequency shelving filters. In this case the half-gain frequency of the low shelf filter is defined by the lower frequency boundary of the spectral selection and the half-gain frequency of the high shelf filter is defined by the upper boundary of the spectral selection. The gain control sets the amount of boost or cut between the two frequencies.
Gale Andrews wrote:as a layman I find it confusing that there is now no reference at all to slope, given the other spectral edit effects mention rolloff.
Yes, but your view is now biased from reading the previous text which specified slope (albeit incorrectly).
The other shelf filter that is shipped with Audacity is the "Bass and Treble" effect. That does not mention what the slope is, and never has, but to my knowledge there has not been a single person query that in the two years that we have been shipping the effect.
Being pragmatic about this, why does it matter to the user what the slope is? They can't change it even if they want to. We could provide something like Robert's table of mid-transition band slope for different gain settings, but to most users that will be meaningless, and for those that do understand it is really just details about the inner workings of the effect - like telling a car driver what the alternator voltage is at various engine rpm speeds. The only way that a user will really know if the effect does what they want is for them to use it. Either it does what they want or it doesn't.
Gale Andrews wrote:How is the "instant slope" defined?
There's a case in point. You are an Audacity expert, but even for you the technical details provided by Robert, although precise, and clear, do not convey precise meaning. That's no criticism of yourself, but the technical details are "technical". To properly define "instant slope" see:
http://en.wikipedia.org/wiki/Differential_calculus, but that is far more technical than the knowledge required to use the effect. The "half gain frequency" is an important concept for being able to effectively use the effect, as is the "gain", but the precise slope is not really relevant - even the author of the effect quoted the slope incorrectly, but no doubt tested the effect to see and hear that it performed in the way that he wanted. How the effect performs in practice - what it "sounds like" - is the really important issue, but that can only really be appreciated by using the effect.
A loose definition of "instant slope" is "the steepness at a specific point". In this case, the "specific point" is half way up the hill (the "half gain" point).
Partly guessing, I think that Robert approximated the "instant slope at the half gain point" by calculating the slope between two points close to and either side of the half gain frequency. The formula for that would be something like:
where f1 and f2 are the two frequencies and a1 and a2 are the amplitude gain at those frequencies.
Making a quick test myself, I applied the shelf filter with a half gain frequency of 1000 Hz and a gain of 12 dB to an impulse signal.
Plotting the spectrum and exporting provided these figures either side of the half gain frequency:
Code: Select all
Frequency (Hz) Level (dB)
990.527344 -4.288725
1033.593750 -3.847514
Putting those figures into the above equation:
Code: Select all
(4.288725-3.847514)/(log(990.527344/1033.593750)/log(2)) = -7.185783205
which is pretty close to Robert's figure of -7.3 dB per octave.
Gale Andrews wrote:Are we saying the greater the gain, the steeper the slope (not just the longer the hill), and is the slope still steepest at the mid point?
As Robert wrote, the
maximum slope for this type of filter is 12 dB per octave, but for small gain levels the slope is less (as shown in his table).
I previously wrote that this type of filter has a half gain slope of
about 12 dB per octave, which is correct for large gain values, but as Robert illustrated is not the case for small gain values, and that as the gain range in this effect is limited to +/- 24 dB, the actual slope for "Spectral edit shelves" will always be substantially less than 12 dB per octave.
Yes, as can be seen in Bill's graphs, the slope is steepest at the half gain point (the mid point of the transition band):
The slope of the filter could have been made constant steepness at the half gain frequency by automatically calculating the filter Q value (fixed at 1.0 in the current version) necessary to produce the required slope, but the filter response would then necessarily become peaky at low gain settings to maintain the slope steepness. We don't mention the filter Q value in the documentation, though that is a more meaningful measure than the slope for this type of filter. I think that mentioning the filter Q would be too much information for most users.