Unoffical empeg BBS

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

Page 2 of 3 < 1 2 3 >
Topic Options
#76265 - 03/03/2002 16:38 Re: Simple bass and treble sliders... Please?... [Re: mlord]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Hm, I am affraid that simple approach with correction table works only if people use EQ in simple graphics mode (i.e. if they don't change default frequencies and Q factors for each band, only attenuation/boost).
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#76266 - 03/03/2002 19:48 Re: Simple bass and treble sliders... Please?... [Re: bonzi]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Hm, I am affraid that simple approach with correction table works only if people use EQ in simple graphics mode (i.e. if they don't change default frequencies and Q factors for each band, only attenuation/boost).

Yeah, I've been turning my head inside out with this one all day. I think that you're probably right...the only way to do what Mark suggested would be to obtain all of the current eq settings, 'draw' the graph, add the adjustment and then factor the graph back into new eq settings that then get applied. I doubt that this is trivial to do, or desirable in k-space.

Assuming that everyone has default frequencies and Q factors in their eq settings would force users to make a choice of severely limiting their eqs or not being able to use this desired functionality.

IMO, the 'best' solution would be to overload bands 9 and 10 for bass and treble settings in 2x10 mode, or just band 5 for bass if the eq is being used in 4x5 mode.

Either have the user set up appropriate bass/treble frequencies and Q factors in these bands for all their eqs, or have config.ini/HiJack settable values that overload whatever the eq bands are set to.

Then make the dB adjustments easily accessible via the HiJack menu (lock all channels together!)

The only real issues are that you'd need to know whether the eq is in 4x5 or 2x10 mode, and to ensure that these new values stick if the user changes which of his 16 eq modes he is using. (Do you have visibility into this? Or is brute-forcing the bass/treble settings once per second an option?)

I've just played with some eq setting, and 200Hz,Q=0.15 and 8KHz,Q=0.15 seem to effect a reasonable bass and treble change.

As to clipping distortion caused by bass boost (definately an issue) I'd suggest reducing the volume as bass gets increased above 3dB boost. I don't know whether it'd be possible to change and limit the volume dynamically based upon what the current bass/treble settings are or not.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76267 - 03/03/2002 20:52 Re: Simple bass and treble sliders... Please?... [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I'm not too concerned about conflicts with Q settings and whatnot. Like probably 90% of empeg owners out there, my EQ is set completely flat, because fussing with those detailed controls is impossible when driving. Yes, I know I can park and play with it, but I don't. And probably neither do 90% of the owners.

This bass/treble is for those 90%.

Cheers

Top
#76268 - 03/03/2002 20:57 Re: Simple bass and treble sliders... Please?... [Re: mlord]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
If that's the case (and I agree that it is), wouldn't it be easier to just set a few EQ settings that would emulate bass/treble sliders? Some folks here could come up with some good ones. And then, maybe, have a hijack setting that would use those instead of trying to dynamically tweak them?
_________________________
Bitt Faulk

Top
#76269 - 03/03/2002 20:59 Re: Simple bass and treble sliders... Please?... [Re: wfaulk]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
For me, a simple tone control, or perhaps a pair (bass/treble), would be a heck of a lot simpler than having to also go into the ultra-complex EQ menus and create a bunch of presets. That's the idea.

Cheers

Top
#76270 - 03/03/2002 21:17 Re: Simple bass and treble sliders... Please?... [Re: mlord]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I was suggesting that some nice folks might create some handy presets to distribute that would be easy to import. Then again, that's all stored binarily (it's a word now), isn't it? I was thinking that it was in config.ini, but I'm wrong, aren't I?
_________________________
Bitt Faulk

Top
#76271 - 03/03/2002 22:35 Re: Simple bass and treble sliders... Please?... [Re: wfaulk]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
HeHe, pseudocode time..



int BassdB = 0, TrebdB = 0;


if (current_eq=="Flat"){
AddHijackMenuItem(&BassAdjust,"Bass");
AddHijackMenuItem(&TrebAdjust,"Treble");

for (channel=1;channel<=EqChannels;channel++){
SetEqBand (1, BassFreq, BassQ, BassdB); /* Band, frequency, Q, dB */
SetEqBand (2, TrebFreq, TrebQ, TrebdB); /* frequency / Q from config.ini */
};
};

void BassAdjust() {
while (true) {
Key = GetKeyPress()
switch (Key) {
case "Up Button": return();
case "Knob Right": { if (++BassdB >12 ) then{BassdB=12;} }
case "Knob Left": { if (--BassdB <-12 ) then{BassdB=-12;} }
}

for (channel=1;channel<=EqChannels;channel++){
SetEqBand (1, BassFreq, BassQ, BassdB);
}
}
return(0); /* should never get here */


void TrebAdjust() {
/* Ditto. */
}




Would that principle work??
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76272 - 04/03/2002 02:14 Re: Simple bass and treble sliders... Please?... [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
It's too bad you'd have to go to all that trouble (offsetting the EQ) to get bass/treble.

Because I know that the DSP has bass/treble control registers built-in, and those registers are completely independent of the EQ.

Too bad there's no way to directly access them, sigh...
_________________________
Tony Fabris

Top
#76273 - 04/03/2002 09:10 Re: Simple bass and treble sliders... Please?... [Re: tfabris]
dcosta
enthusiast

Registered: 04/02/2002
Posts: 277
Loc: Massachussetts
There must be a way to access them, why can't they be accessed ?
_________________________
__________ davecosta Hijacked 60GB MKIIa 2.0b13

Top
#76274 - 04/03/2002 09:57 Re: Simple bass and treble sliders... Please?... [Re: dcosta]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
There must be a way to access them, why can't they be accessed

Well, there probably is a way to access them. The problem is that only the Empeg guys have access to the required documentation to do so, and they had to sign an NDA to get that. Mark doesn't work for Empeg so does not have the information. Even if he did, it'd be difficult to write a Hijack modification to access the treble/bass without revealing that information (hence breaking the terms of the NDA).

So, we either wait for the Empeg guys to include simple bass/treble controls in the player software, which isn't likely to happen anytime soon given that the unit is EOL and it isn't a bug fix, or Mark kludges it somehow.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76275 - 04/03/2002 10:05 Re: Simple bass and treble sliders... Please?... [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
I'm not too concerned about conflicts with Q settings and whatnot. Like probably 90% of empeg owners out there, my EQ is set
completely flat, because fussing with those detailed controls is impossible when driving. Yes, I know I can park and play with it,
but I don't. And probably neither do 90% of the owners.


That's why I suggested to use bands 9/10 and completely overload any existing settings on these bands. With a low Q factor, it shouldn't be necessary to use more than one band to effect a bass or treble slider. People who still wanted to set up eqs would still have the other bands to play with.

Anyway, I'm only suggesting solutions for fun - I also have Bass/Treble control on a separate HU..
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76276 - 04/03/2002 10:30 Re: Simple bass and treble sliders... Please?... [Re: genixia]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
Bass/Treble controls could just reserve one of the presets for its purposes, overriding any user settings in it (or first checking it for flatness).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#76277 - 05/03/2002 12:02 Re: Simple bass and treble sliders... Please?... [Re: tms13]
fusto
addict

Registered: 27/12/2001
Posts: 504
Loc: Lummi Island, WA
Can I just tell you how excited I am that this is even being discussed?
I thought it was a long shot, but youse guys are real sharp.

Keeping my fingers crossed, hoping it comes to fruition.

Z~
_________________________
...all I ask is a tall ship and a star to steer her by.

Top
#76278 - 06/03/2002 09:03 Re: Simple bass and treble sliders... Please?... [Re: fusto]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok, I'm working on it, and teaching myself C in the process.

I've got the Hijack stuff sorted to add Bass and Treble adjustments to the menu, and to control the gains.

Now I've just got to work out the format that the eqs are stored in, and figure out how to modify them. The hard stuff. If anyone has any clues, then feel free to share.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76279 - 06/03/2002 09:41 Re: Simple bass and treble sliders... Please?... [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Well, I assume you have found this starting point:

linux/arch/arm/special/empeg_mixer.c:

case EMPEG_MIXER_SET_EQ:
{
struct empeg_eq_section_t sections[20];
#if MIXER_DEBUG
printk(MIXER_NAME
": mixer_ioctl EMPEG_MIXER_SET_EQ %08lx\n",
arg);
#endif

copy_from_user_ret((void *) sections, (const void *) arg,
sizeof(sections), -EFAULT);

empeg_mixer_eq_set(sections);
empeg_mixer_eq_apply();
return 0;
}

Top
#76280 - 06/03/2002 11:06 Re: Simple bass and treble sliders... Please?... [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Yeah, found that. I'm trying to work out the format of each section. There is 2 words per section that somehow encode freq, Q, and gain. The preliminary spec wasn't any help here..
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76281 - 06/03/2002 11:17 Re: Simple bass and treble sliders... Please?... [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I would guess that the frequency (band) is just the array index. But the others.. gotta dump em out as they change and see which bits are different (which you no doubt are doing already).

Cheers

Top
#76282 - 07/03/2002 12:30 Re: Simple bass and treble sliders... Please?... [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Partial success!!!!!!!

OK, I have bass and treble adjustments working...kinda. If I'm on AC power then everything is great, but when on DC trying to change the values sends the player beserk. I'm guessing I have to learn more about this ir_translation thing.

It's coming soon!
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76283 - 07/03/2002 12:43 Re: Simple bass and treble sliders... Please?... [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I wonder if the EQ setup is different for DC mode (with fader and whatnot..)?

Top
#76284 - 07/03/2002 13:05 Re: Simple bass and treble sliders... Please?... [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
There are two different personalities for each EQ setting, and the in-car mode has the 4-channel option....
_________________________
Tony Fabris

Top
#76285 - 07/03/2002 13:15 Re: Simple bass and treble sliders... Please?... [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Sorry, I meant player as in the Empeg as a whole, as opposed to the player software..

What's happening is that the Empeg tries to toggle back and forth between aux in and mp3 when I turn the knob - turning the knob more than one click acts like pressing the 'source' button on the remote repeatedly.

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

Top
#76286 - 07/03/2002 14:00 Re: Simple bass and treble sliders... Please?... [Re: JerryW]
sancho
journeyman

Registered: 17/08/2000
Posts: 70
In reply to:

do what the fanatical home stereo/theatre guys do and go boy a sound pressure level meter




wouldn't a "fanatical" home stereo guy invest in an RTA instead?
--
sancho

Top
#76287 - 07/03/2002 14:32 Re: Simple bass and treble sliders... Please?... [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Problem solved.

I changed 2 things, not sure what fixed it.

Firstly, I defined FAKE_BASSADJ and FAKE_TREBLEADJ and added them to the buttons table to allow ir_translation.

Secondly, I removed the copious amount of serial debug output that I had wedged into my eq write function. (I seem to remember that serial port is slower in DC mode?)

Anyway, I have working bass and treble control. Who wants it?
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76288 - 07/03/2002 15:06 Re: Simple bass and treble sliders... Please?... [Re: genixia]
time
enthusiast

Registered: 20/11/2000
Posts: 279
Loc: Pacific Northwest
Sure! Where? Is it Hijack enabled?

Top
#76289 - 07/03/2002 16:17 Re: Simple bass and treble sliders... Please?... [Re: genixia]
fusto
addict

Registered: 27/12/2001
Posts: 504
Loc: Lummi Island, WA
Buy that man a beer!
In fact... beer for everybody!!
_________________________
...all I ask is a tall ship and a star to steer her by.

Top
#76290 - 07/03/2002 19:33 Re: Simple bass and treble sliders... Please?... [Re: fusto]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok!

hijack233-basstreb.zimage is up. (Rightclick and save!)

This is a preliminary beta - and isn't fully functional. By that I mean that you're going to have to use the player's eq to initially set some values which the Hijack-menued Bass and Treble Adjustment need. Eventually I hope to get these values in config.ini and ignore the player supplied values completely, but I need to crack the internal format for them first. It also only works in 2x10 eq mode at the moment. (4x5 mode will have a funny effect - you'll get bass adjustment at the front and treble at the rear or vice-versa, I'm not sure which.)

Note that there are 2 complete sets of eq settings, one for DC mode and one for AC mode - so you need to set these values whilst in the mode that you intend to use (or both if that's what you need).

Set the ninth band of each channel to have dB=0, f=100Hz, q=0.2 and the tenth band to have dB=0, f=10KHz, q=0.2. I think there may be a bug in the players eq channel lock code so I'd do this with left/right channels unlocked. (I'm still looking into that.)

Exit from the eq menu, go into Hijack and test away
You can tweak the f and q values if you think that the ones I've provided don't suit your needs. Keep q small (under 0.3) so that the adjustment is smooth and wide across the frequeny range.


Any bass/treble level adjustment gets lost when the player is rebooted. (only the level, not the f and q settings).
The bass/treble will only work when the selected eq has the f and q values set appropriately in bands 9 & 10.

You should be able to set ir_translations to call these menus. Pseudo buttons are named "BassAdj" and "TrebleAdj".
You should also be able to do the other wonderful Hijack stuff with these: Remove from menu, add to Popup menus etc. This is untested, and any feedback on these is welcome..(especially feedback like "ir_translation works for Bass and Treble menus" )

I'm going to keep working on this to try and get those values in config.ini so we can ignore the players eq settings completely, see if we can store the levels over a reboot (is this important enough to warrant the flash usage?), and generally work it a bit more. Then I'll send Mark a patchfile

...and that beer will hopefully be gratefully accepted at the Boston Owners meet - it'll help offset the cost of buying Mark's!
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76291 - 08/03/2002 13:29 Re: Simple bass and treble sliders... Please?... [Re: genixia]
fusto
addict

Registered: 27/12/2001
Posts: 504
Loc: Lummi Island, WA
I'm probably missing the obvious, but I cant figure out how to do this:
Set the ninth band of each channel to have dB=0, f=100Hz, q=0.2 and the tenth band to have dB=0, f=10KHz, q=0.2
I can see when I'm in the eq mode I can change the DB levels which in turn changes the q level, but how do I independently change them to the specific levels you mentioned? Is there some other method than just turning the knob, that I'm missing?

Z~
_________________________
...all I ask is a tall ship and a star to steer her by.

Top
#76292 - 08/03/2002 13:33 Re: Simple bass and treble sliders... Please?... [Re: fusto]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Yes. You can independently set the Q and band frequency (hence the term "parametric" to refer to this equalizer). Please refer to the button guide at www.riocar.org to show you how to select those parameters.
_________________________
Tony Fabris

Top
#76293 - 08/03/2002 13:55 Re: Simple bass and treble sliders... Please?... [Re: tfabris]
fusto
addict

Registered: 27/12/2001
Posts: 504
Loc: Lummi Island, WA
OK, I'm dumb. My co-worker showed me the error of my ways. Thanks to you Tony too.

This works great!!!

(cue the rays of sunshine, ethereal music and release the doves)
I'm gonna go play with it out in the car.

With this new functionality I will no longer be endangering the lives of my fellow motorists while playing with the EQ and driving.
You have saved hundeds of people from certain traffic related trauma.

I'll give more feedback as I play around.

Z~
_________________________
...all I ask is a tall ship and a star to steer her by.

Top
#76294 - 08/03/2002 14:22 Re: Simple bass and treble sliders... Please?... [Re: fusto]
fusto
addict

Registered: 27/12/2001
Posts: 504
Loc: Lummi Island, WA
I have another question about the bass treble thing, but since my wish has been granted, should I move this thread on over to programming? That way those who read that thread who maybe dont read Wish list will be in the know.

Is that OK? I dont want to do anything inappropriate.

Z~
_________________________
...all I ask is a tall ship and a star to steer her by.

Top
Page 2 of 3 < 1 2 3 >