Equalization less capable under Mac OSX?

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Gordon Coates
Posts: 20
Joined: Thu May 17, 2012 3:12 am
Operating System: Please select

Re: Equalization less capable under Mac OSX?

Post by Gordon Coates » Sat Apr 20, 2013 9:19 am

Gordon Coates wrote:Many thanks steve and Gale. I have imaged and exported the curve from the Windows machine - I'll see what happens when I import it under Mac, and I'll post screenshots as soon as I find the image editor (or maybe install one?) on the MacBook...
Very interesting... importing the curve exported from the Windows machine into Audacity on the Mac worked perfectly (many thanks again!) as can be seen from two of the attached screenshots.

However, attempting to CREATE the same curve by using the same points to draw a curve in Audacity under Mac in fact creates a completely different curve, as can be seen in the other attached screenshot.
Attachments
Eq Curve exported under Windows 7.jpg
This is the curve I have been using under Windows 7 and wanted to use under Mac OSX.
Eq Curve exported under Windows 7.jpg (129.85 KiB) Viewed 1340 times
Eq Curve imported under Mac OSX.jpg
This is the curve from the Windows machine imported and viewed under Mac OSX.
Eq Curve imported under Mac OSX.jpg (171.25 KiB) Viewed 1340 times
Eq Curve created with same points under Mac OSX.jpg
This is the curve created under Mac OSX by using the same points as appear in both the other screenshots - but this curve (i.e. the green line) is completely different!
Eq Curve created with same points under Mac OSX.jpg (171.75 KiB) Viewed 1340 times

Gordon Coates
Posts: 20
Joined: Thu May 17, 2012 3:12 am
Operating System: Please select

Re: Equalization less capable under Mac OSX?

Post by Gordon Coates » Sat Apr 20, 2013 9:30 am

Gordon Coates wrote:However, attempting to CREATE the same curve by using the same points to draw a curve in Audacity under Mac in fact creates a completely different curve, as can be seen in the other attached screenshot.
Incidentally, the curve I created under Windows and imported to my MacBook was created in Audacity 2.0.2, whereas the version of Audacity on my MacBook is 2.0.3. Perhaps this means that the problem with "Draw Curves" in version 2.0.3 could routinely be worked around by keeping version 2.0.2 handy on another computer, as in the case just posted above, at least for the time being...

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

Re: Equalization less capable under Mac OSX?

Post by steve » Sat Apr 20, 2013 11:15 am

Gordon Coates wrote:Very interesting... importing the curve exported from the Windows machine into Audacity on the Mac worked perfectly (many thanks again!) as can be seen from two of the attached screenshots.

However, attempting to CREATE the same curve by using the same points to draw a curve in Audacity under Mac in fact creates a completely different curve, as can be seen in the other attached screenshot.
Thanks. That appears to illustrate a bug.
Interestingly, on Linux I'm getting a green line that follows the blue line much more closely than either your Windows or Mac screenshots.

Could you post the XML files for both machines.
eq.png
eq.png (165.02 KiB) Viewed 1334 times
test.xml
Reproduction of test curve on Linux
(637 Bytes) Downloaded 65 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Equalization less capable under Mac OSX?

Post by Gale Andrews » Sun Apr 21, 2013 1:37 am

Gordon Coates wrote:Incidentally, the curve I created under Windows and imported to my MacBook was created in Audacity 2.0.2, whereas the version of Audacity on my MacBook is 2.0.3. Perhaps this means that the problem with "Draw Curves" in version 2.0.3 could routinely be worked around by keeping version 2.0.2 handy on another computer
When I commented on the current known bugs in EQ in 2.0.3, I said "Draw Curves" when I meant "Graphic EQ", which I've corrected now. Sorry about that. A potential fix for those bugs has now been committed, which seems to restore behaviour to 2.0.2 accuracy as far as I can tell so far.

Using a filter length of 8191 and importing Steve's test XML file, the green line curve has the same good fit for me on Windows 7 (Audacity 2.0.3 release and "fixed " 2.0.4 alpha) and Mac OS X 10.8.3 (Audacity 2.0.3 release).

If you (Gordon) can post the XML file you created using 2.0.2 on Windows I will try creating that curve on Mac and Windows.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gordon Coates
Posts: 20
Joined: Thu May 17, 2012 3:12 am
Operating System: Please select

Re: Equalization less capable under Mac OSX?

Post by Gordon Coates » Mon Apr 22, 2013 11:43 am

steve wrote:Interestingly, on Linux I'm getting a green line that follows the blue line much more closely than either your Windows or Mac screenshots.
Steve, are you working with a 192KHz file open? I find that the green line matches drawn curves very closely with 44.1KHz files, reasonably closely with 96KHz files, and not closely at all with 192KHz files. By the same token, I find that, if a curve made for 44.1KHz files is applied to 96 0r 192KHz files, it doesn't work as expected at all - so I always name my Eq curves with a name that includes the sampling frequency they were made under, because that seems to be the only sampling frequency they will work properly with.

Gordon

Gordon Coates
Posts: 20
Joined: Thu May 17, 2012 3:12 am
Operating System: Please select

Re: Equalization less capable under Mac OSX?

Post by Gordon Coates » Mon Apr 22, 2013 11:59 am

Gale Andrews wrote:If you (Gordon) can post the XML file you created using 2.0.2 on Windows I will try creating that curve on Mac and Windows.Gale
Many thanks again, Gale. Here is the XML file I exported from 2.0.2 under Windows and imported into 2.0.3 under Mac OSX. (It only creates the equalization I need to flatten out the room interaction with my speakers when applied to 192KHz files - I use very different curves to create approximately the same equalization with 44.1 or 96Khz files).

Gordon
Attachments
Quads(24-192)2.xml
File for Eq curve for use with 24bit, 192KHz files (but as far as I have noticed, the sample size doesn't affect the behaviour of my Eq curves, only the sampling rate).
(751 Bytes) Downloaded 55 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Equalization less capable under Mac OSX?

Post by Gale Andrews » Tue Apr 23, 2013 11:14 am

Gordon Coates wrote: Here is the XML file I exported from 2.0.2 under Windows and imported into 2.0.3 under Mac OSX. (It only creates the equalization I need to flatten out the room interaction with my speakers when applied to 192KHz files - I use very different curves to create approximately the same equalization with 44.1 or 96Khz files).
On Windows, there is no difference between 2.0.2, 2.0.3 and 2.0.4 alpha that I can see - whether importing that XML file or drawing its EQ points, the green line needs the maximum filter length to fit closely at 44100 Hz project rate, at 8000 Hz it fits closely with as short as 2500, and at 19200 Hz or higher the fit cannot be made tight (by tight, I mean that the line appears green or blue/green).

I'm out of time to test on Mac until later, but even if there are Mac differences between 2.0.2 and 2.0.3 as seen in your images they are slight in comparison to the sample rate differences. I did not know that relationship existed, so I'd be interested to read Steve's comments.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Equalization less capable under Mac OSX?

Post by steve » Tue Apr 23, 2013 12:44 pm

Gordon Coates wrote:Steve, are you working with a 192KHz file open?
Ah ha! That explains it :D

The "Size" of the filter is the "FFT window size". That is the number of samples that are used in each (overlapping) analysis window.
The larger the window is, the greater the accuracy of the filter at low frequencies.
The low frequency accuracy is limited by the FFT window size.

If a high sample rate is used, then the length of each window in seconds becomes much smaller (1024 samples at 44100 Hz sample rate is about 0.023 seconds, but at a sample rate of 192000 Hz it is only about 0.005 seconds.

Unfortunately you can't just keep increasing the window size, because some of the calculations become increasingly less accurate unless the calculations are performed in much higher precision. Currently I think Audacity uses 64 bit precision for these calculations, so the maximum window size could perhaps be increased to a bit more than the current "8191" maximum, but there is another down side, which is that as the window size increases, so the pulse response becomes worse, which can cause "ringing". For FFT filters there is a trade-off between sample rate, frequency precision, and time precision. If any two of these are increased, the third must be reduced. FFT is a remarkable piece of mathematics, but it has its limits.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Equalization less capable under Mac OSX?

Post by Gale Andrews » Wed Apr 24, 2013 7:30 am

steve wrote:
Gordon Coates wrote:Steve, are you working with a 192KHz file open?
Ah ha! That explains it :D
As it looks a bit like a "bug", I added a sentence about this to the Manual .

No doubt you'll correct/improve it if needed.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply