Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 3 1 2 3 >
Topic Options
#102959 - 04/07/2002 15:35 Uh-oh. Equalizer "can't handle it"?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
I've discovered something velly velly intellesting about the EQ on my player.

For a while I thought I was hearing something wrong with my speakers or amplification... Some of you might recall that in another thread I recently stated that after I did my RTA adjustments that I couldn't get the system to go as loud as I could before (without distortion), but that it sounded better overall.

I think I've discovered that the distortion I perceived is actually digital clipping happening internally at the DSP stage, before the sound even heads out of the outputs.

Yet I've done nothing but cut frequencies in the EQ, so everything is below 0db and in fact the overall output of this EQ setting is much quieter than a flat EQ.

Attached here is an MP3 which demonstrates this clipping on my player. It's a snippet of "Witness" from the Sarah McLachlan album "Surfacing". On my player, each of the bass notes sounds fine with a flat EQ, but with my "tweaked" EQ, there is distinct clipping on each bass note when the volume is up near 0db. When I back the volume down to -7db or so, the clipping goes away. This is on any set of speakers or even a set of headphones plugged directly into the player, it doesn't have to be loud or outside of the handling capacity of the speakers or headphones.

Can anyone reproduce this problem for me and verify that I'm not crazy? My player settings are as follows to reproduce the distortion:

Hijack settings:
Force DC/Car mode (so I can get to the equalizer preset in question).
Auto Volume Adjust: Off
Bass Adjust: Off
Treble Adjust: Off
Left/Right Time Alignment: Off

Player settings in Car mode:
Volume: 0db
Loudness: Off
Balance: Center
Fader: Center

Equalizer Preset:
Mode: 10 band Locked L/R
(NOTE: Beta11 has a bug adjusting the Q in this mode. I'm running beta12 which doesn't have this bug. If you try to reproduce this in beta11, you have to put it in "independent" mode and do separate adjustments for Left and Right but just set them to the same values.)
Band 1: -16db 50hz Q5.00
Band 2: -10db 289hz Q2.91
Band 3: -5db 180hz Q5.00
Band 4: -8db 265hz Q19.6
Band 5: -24db 1.00khz Q7.17
Band 6: -9db 900hz Q0.67
Band 7: -8db 100hz Q3.00
Band 8: -10db 3.78khz Q0.84
Band 9: +0db 10.0khz Q5.00 (left at 0 so Genixia's bass/treble code can use it)
Band 10: +0db 18.0khz Q5.00 (left at 0 so Genixia's bass/treble code can use it)

Note that the above EQ settings aren't in a strict order of frequency (low to high) since that's the beauty or a parametric equalizer, a band is a band, they don't have to be in order.

Can someone else reproduce the bass clipping in this case? Or does anyone have a clue WHY this is happening? If you'll notice, every single one of my frequencies is CUT not BOOSTED, so in theory it should be REDUCING the chance for clipping instead of increasing it.

Two things will remove the clipping: Turning the player volume down several notches, or switching to a flat EQ (which is much louder overall).

What is it about the DSP's equalizer that doesn't like my settings here?


Attachments
101591-snippet.zip (49 downloads)

_________________________
Tony Fabris

Top
#102960 - 04/07/2002 17:26 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
mrfixit
enthusiast

Registered: 14/06/2002
Posts: 337
Umm... Tony? where did you get beta 12?
_________________________
Ben
mk2a 60gig green/Greenlights Buttons
mk2a 60gig green/Greenlights Buttons
mk2a 40gig blue no illumination....yet
hijacked

Top
#102961 - 04/07/2002 18:27 Re: Uh-oh. Equalizer "can't handle it"? [Re: mrfixit]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
I'm on the alpha team. There are only a few of us on the BBS who are on the alpha team. And before you ask, it's by invitation only.
_________________________
Tony Fabris

Top
#102962 - 04/07/2002 18:28 Re: Uh-oh. Equalizer "can't handle it"? [Re: mrfixit]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
He's annoyingly one of the priviledged few that are in the tester group for empeg The rest of us have to make do with beta 11 for the moment

- Trevor

Top
#102963 - 04/07/2002 18:30 Re: Uh-oh. Equalizer "can't handle it"? [Re: tman]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
There's really little difference between beta12 and beta11 except for some bug fixes. The next public release will simply be more bug fixes.

So back on topic: does anyone have any idea why the DSP is doing this?
_________________________
Tony Fabris

Top
#102964 - 04/07/2002 18:33 Re: Uh-oh. Equalizer "can't handle it"? [Re: mrfixit]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Busted!

How are you getting the feeling it is happening at the DSP and not the output? Are you tapping the audio stream as it is leaving the DSP? (Note: I didn't even know if this was possible, or the internal processing order. Just curious.)

Can you reproduce this in the home settings by copying the exact configuration to a home EQ setting with a standard kernel? This would eliminate the fader and the hijack code.

Lastly, is there a way you can put a scope on the output to see the signal? Worst case, record in through your soundcard and view the waveform with ProTools, Sound Forge, Goldenwave or equivalent. Just a visual verification that you are seeing clipping.

Additional: Also, can you verify what frequencies the clipping occurs on by using test tones? Is it across the whole spectrum?


Edited by pgrzelak (04/07/2002 18:36)
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#102965 - 04/07/2002 18:40 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Yeah but it's just newer and better (well more bugfixes) so we want it anyway

Do you get clipping no matter what equaliser settings you use apart from the flat one?

It could be possible that there is a mistake in one of the values for the DSP that are calculated when you set the equaliser. That could cause it to have a slight gain.

- Trevor

Top
#102966 - 04/07/2002 18:53 Re: Uh-oh. Equalizer "can't handle it"? [Re: tman]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Do you get clipping no matter what equaliser settings you use apart from the flat one?

I have other EQ presets which do not clip. They are not as extreme as this one in terms of detailed Q adjustments etc.

It could be possible that there is a mistake in one of the values for the DSP that are calculated when you set the equaliser. That could cause it to have a slight gain.

That's what I'm wondering about.

Can anyone else reproduce this with the settings I supplied and the file I supplied?
_________________________
Tony Fabris

Top
#102967 - 04/07/2002 19:00 Re: Uh-oh. Equalizer "can't handle it"? [Re: pgrzelak]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
How are you getting the feeling it is happening at the DSP and not the output?

Technically, I don't know. And I'm not sure that distinction needs to be made, even. Whether it's happening digitally inside the DSP, or analog in the line-level output stage just past the DSP, either way it's clipping when I haven't done anything that should have made it clip.

I am certain that the clipping is not happening in my amplification, speakers, or headphones. It's definitely happening somewhere internal to the player, I went to great pains to be sure.

Can you reproduce this in the home settings by copying the exact configuration to a home EQ setting with a standard kernel?

Haven't gone that far yet. I really hate re-installing the player software because then I have to re-do the replaced graphics for the visuals and also re-install XML interface.

Wait, Mark publishes a raw compiled Beta11 kernel doesn't he? Okay, I'll try that. Should only take a couple minutes to punch everything in...
_________________________
Tony Fabris

Top
#102968 - 04/07/2002 19:47 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Hmm. I can reproduce it with a plain kernel and while in "home" mode, by plugging those values into an unused preset. And I can hear it just as clearly.

However when I record it to a WAV file through the PC's Line input and view the wave in CoolEdit, I can't actually see any clipped peaks. I can clearly HEAR what sounds like clipping distortion even when previewing the WAV in CoolEdit, but I can't SEE it in the waveform.

And now suddenly I'm not so sure that it's in the player at all. Although it distorts on every other piece of equipment I've got (car system regardless of amp gain setting, home system regardless of volume level, computer line input regardless of input level, more than one pair of headphones including ones that have never distorted on any material before and which were plugged straight into the player), there was one case where it didn't distort.

That was via the MICROPHONE input on my PC. It didn't distort on the microphone input when I turned off the gain boost. And I can crank the PC's volume up really really loud while it's using the mic input, and it sounds GREAT. Whereas, with the line input (and every other possible audio output including my car system), it distorts even at very low volumes or amp gain settings.

But you're not supposed to plug line-outs into a Mic input. It's a different impedance. Odd.

What is it about the PC's mic input that would make it change the way the player's output stage behaves in this situation? Did the mic input place a higher "load" on the line outputs or something?

I'm confused.
_________________________
Tony Fabris

Top
#102969 - 04/07/2002 20:28 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Hmm, weird problem...I'm beginning to wonder whether that track is *supposed* to sound clipped, and it's only with your eq preset that the overall sound is clean enough to hear the harmonics that clipping creates!

The other distinct possibilty is that there is a bug in the player software that calculates the coeffiecients used in an eq section. If this is truly happening in the DSP and only when your cut-only eq is present, then this has to be the prime suspect. (Given that you've already eliminated my bass/treble hack as a cause - thanks) And remember that there was a bug fix in beta12 to fix the channel lock issue - if I was working for SB doing SQA on beta12, the first thing I'd do here would be to try to reproduce it on beta11...But there is the possibility that if it is a bug in the player, then it has existed forever - the SAA7705 programming manual does not appear to give us the format of the bytes for the eq sections, but refers us to EQU, a program used to calculate them. I'm guessing that this EQU program wasn't distributed as an ARM binary, and that the code that the player uses was specifically coded for the Empeg.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#102970 - 04/07/2002 20:38 Re: Uh-oh. Equalizer "can't handle it"? [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
The track's got a lot of bass, but it's not supposed to distort like that.

I'm just thinking there's something weird in my settings that's making certain very narrow frequency bands boost instead of cut.
_________________________
Tony Fabris

Top
#102971 - 04/07/2002 20:55 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok, *Assuming* for a minute that there is an obscure bug in the coefficient calculation, it's quite possible that it's an integration bug eg:

The player thinks that one range of values is valid.
The DSP thinks that a different (lesser) range of values is valid.

Now for the most part, this kind of bug isn't apparent in everyday use, as most values fall in the DSP's range. But once you try to extend beyond that range then the value that you give the DSP isn't 'valid'. In the way that the eq sections are implemented in the DSP, I can tell you that one word (16 bits) appears to control gain, Q-factor and the 0/-6dB scaling. So it is possible that if there was a bug of this nature, then it would be possible that an invalid Q factor may very well affect the gain...

With all this sheer speculation in mind, take a look at band 4. Try reducing the Q factor to 5 and see what happens.


Edited by genixia (04/07/2002 20:57)
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#102972 - 04/07/2002 21:28 Re: Uh-oh. Equalizer "can't handle it"? [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
With all this sheer speculation in mind, take a look at band 4. Try reducing the Q factor to 5 and see what happens.

When the Q factor is below 1, there is no distortion. The distortion slowly increases as I push it past 1.4 or so.

This doesn't indicate a bug, since that's a bass frequency and I'm reducing other lower bass tones by decreasing the Q.

Although I will mess with the other settings more and see if there's a particular one that does it like an on/off switch. Good idea...
_________________________
Tony Fabris

Top
#102973 - 04/07/2002 22:48 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Interesting. It seems to be related to that first band somehow.

If I change that first band so that it's centered around 100-150 hz with a high Q (say, 20) and decrease it to below -27db, then the distortion goes away.

But if I leave that band as-is and make the SAME correction using one of the two unused bands (9 or 10), then it doesn't fix the distortion.

Not sure if that indicates a bug, because there's not a sudden moment when the distortion turns on or off. It's a gradual thing. And by messing with that frequency, I'm changing the response curve of the EQ overall...

At this point, one might be inclined to say that it's just the S/N of the unit, but with all bands flat, which is much much louder, there is no distortion at the same volume setting. Is there something I'm not understanding about how DSPs handle equalization? If I'm only cutting frequencies, then in theory, nothing should be getting louder, right, and therefore not distorting?
_________________________
Tony Fabris

Top
#102974 - 05/07/2002 00:24 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
Aragon
member

Registered: 17/05/2002
Posts: 148
Loc: Cape Town, South Africa
Hi,

How sure are you you're hearing clipping and not harmonic distortion? How sure are you the song doesn't just sound like this when highlighting certain frequencies as you've done? I think if you want a more conclusive test you have to try generate some reference tones with a reliable source and feed them into the player. The tones should be generated at different volume levels (-20, -15, etc). If it's fed in the form of an MP3, I'd suggest encoding them at 320 kbps just to be safe. Otherwise WAV if you have spare space for it.

And then to monitor the output, I wouldn't use headphones or an amp, unless you're 100% sure the distortion isn't occuring there. I think pulling it in via the line in on your PC is a good idea. Better yet, if you have or know somewhere that you can borrow a scope and other test equip...


Regards,
Aragon

Top
#102975 - 05/07/2002 02:48 Re: Uh-oh. Equalizer "can't handle it"? [Re: genixia]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
The EQU program is a DOS prog Not sure how the empeg player software implements the equaliser though. They might have a big table of possible values or they might calculate it themselves on the fly.

According to the spec the equaliser when set to a flat response just has all of the gain of each section set to 0. This would mask any mistake or bug in the DSP or other coefficient values.

- Trevor

Top
#102976 - 05/07/2002 04:11 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Greetings!

It seems to be band 1? Perhaps try swapping out that frequency into another band of the EQ. Yes, it shouldn't matter, but it will eliminate the first band as a source of problems as opposed to the frequency itself. I also note that you are centered around 50Hz. I tend to get a little more nervous around the joyous 60Hz area. (US AC power runs at 60Hz for those not in the US.) Could there be something in the original recording or in the audio stream that is "adjusting" the audio around 60Hz? If I remembered my math, I would try to figure out where the 1.4Q setting you notice the clipping fall off is, frequency wise...
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#102977 - 05/07/2002 05:56 Re: Uh-oh. Equalizer "can't handle it"? [Re: pgrzelak]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Yeah, try to reproduce band 1 in band 9, and set band 1 to zero..That'd be a really obscure bug if that is indeed the issue.

One other thing I've noticed is that you have 2 bands with low Q factors and a high -ve gain. These bands will be knocking a huge chunk out of your sound...and maybe your listening volume with your eq active is pushing the DSP into clipping. But you haven't stated what your typical listening volume is, and I still wouldn't expect it to even contemplate clipping below 0dB, and if you did the flat eq test at that same volume then I'd expect it to still clip.

_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#102978 - 05/07/2002 09:09 Re: Uh-oh. Equalizer "can't handle it"? [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
But you haven't stated what your typical listening volume is

In the car, I've adjusted my gains low enough so that I can crank it all the way up to 0db if the mood strikes me. Usually, I'm at -10db to -5db if I'm alone. However there are times when I do want to turn it all the way up to 0db.
_________________________
Tony Fabris

Top
#102979 - 05/07/2002 09:11 Re: Uh-oh. Equalizer "can't handle it"? [Re: Aragon]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
How sure are you you're hearing clipping and not harmonic distortion?

Not sure.

How sure are you the song doesn't just sound like this when highlighting certain frequencies as you've done?

If you listened to the clip normally and then listened with the adjustments I've made, you can tell pretty obviously that it's not just a different sound, it's actually a distortion. It's not just a subtle difference in the bass, it sounds like a machine gun popping off.
_________________________
Tony Fabris

Top
#102980 - 05/07/2002 09:20 Re: Uh-oh. Equalizer "can't handle it"? [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Yeah, try to reproduce band 1 in band 9, and set band 1 to zero..That'd be a really obscure bug if that is indeed the issue.

Oh wow, now this is interesting.

When I reproduce the details of band 1 in band 9, then I set the gain parameter on band 1 to zero, the distortion gets significantly worse. But at worst, I should get the exact same sound out of either configuration, shouldn't I?

Something is fishy!
_________________________
Tony Fabris

Top
#102981 - 05/07/2002 09:26 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Agreed. You should get the exact audio as you had before. If it is worse, that implies that with every additional band added, it is a cumulative effect...
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#102982 - 05/07/2002 10:11 Re: Uh-oh. Equalizer "can't handle it"? [Re: pgrzelak]
mrfixit
enthusiast

Registered: 14/06/2002
Posts: 337
This is a little off the topic, but I had a problem with this kind of thing with my onkyo home stereo. When I would be in the dolbypro logic mode with the add on onkyo eq on I would get all kinds of distortion just like what your describing with the rio. When I would have the eq off it was fine or if I turned the dsp off and leave the eq on it was fine, the eq settings were all almost a flat line too with the mids and bass down a little. I tried a technics eq with the same settings and the problem went away. It was very strange when there would be a loud boom in a movie or music the bass would sound like it was cracking.

p.s. Tony... could you send a copy of beta 12 this way
_________________________
Ben
mk2a 60gig green/Greenlights Buttons
mk2a 60gig green/Greenlights Buttons
mk2a 40gig blue no illumination....yet
hijacked

Top
#102983 - 05/07/2002 10:38 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
Anonymous
Unregistered


Ah, equalizers. Man has tried to solve the mystery of equalizers since the dawn of time. The perplexing enigma of the equalizer is more daunting than the secret of life. The best one can do is pick a random setting or make a nifty little design with the sliders and hope for the best.

Top
#102984 - 05/07/2002 10:54 Re: Uh-oh. Equalizer "can't handle it"? [Re: ]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Man has tried to solve the mystery of equalizers since the dawn of time.

Reminds me of the Smith and Jones sketch: "For? What do you mean, what's it for? It's a graphic equaliser! It, er, it, um, er, it equalises yer graphics, dunnit?"

Peter

Top
#102985 - 05/07/2002 10:56 Re: Uh-oh. Equalizer "can't handle it"? [Re: peter]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Heh, yeah.

Back on topic: Any clue as to what's going on?
_________________________
Tony Fabris

Top
#102986 - 05/07/2002 11:08 Re: Uh-oh. Equalizer "can't handle it"? [Re: tfabris]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Not really.

Are you able to reproduce it on other players?

Another thought: have you contacted Stu about running a test through his digital output board? Maybe we can narrow down where the problem is, or see it more clearly in digital.


Edited by pgrzelak (05/07/2002 11:14)
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#102987 - 05/07/2002 11:57 Re: Uh-oh. Equalizer "can't handle it"? [Re: pgrzelak]
maczrool
pooh-bah

Registered: 13/01/2002
Posts: 1649
Loc: Louisiana, USA
I will try his clip with the settings through the digital out later today. Right now my Rio is stripped down to the bare case to permanently install the three digital out connectors.

Stu
_________________________
If you want it to break, buy Sony!

Top
#102988 - 05/07/2002 12:00 Re: Uh-oh. Equalizer "can't handle it"? [Re: maczrool]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
I will try his clip with the settings through the digital out later today.

Thanks. Can you also try it with the analog out and see what you get?

My theory is that you will notice the problem on the analog outputs, but not on the digital output. This is just a theory though.

Remember that you have to hand-enter each of the settings in both the left and right EQ in "independent" mode since you don't have beta 12. Sorry it's such a pain.
_________________________
Tony Fabris

Top
Page 1 of 3 1 2 3 >