Unoffical empeg BBS

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

Page 1 of 2 1 2 >
Topic Options
#14419 - 18/08/2000 07:47 1.0 volume adjusting kernel
rjlov
member

Registered: 16/12/1999
Posts: 188
Loc: Melbourne, Australia
Hi everyone.

I now have release 1.0 Mk1 and Mk2 volume adjusting kernels available for download. The source patch is also there for people who like to build their own kernels.

My units appear to function fine with these kernels, but I haven't tried everything on the Mk2 yet.

They're at the usual place: http://home.eric.net.au/~rjlov/compress.html.

Richard.


Top
#14420 - 18/08/2000 09:08 Re: 1.0 volume adjusting kernel [Re: rjlov]
alear
enthusiast

Registered: 05/07/2000
Posts: 301
Loc: Montana, USA, Bozeman
Thanks Richard!

Everyone here appreciates the work you put in on these kernels.

Alex Lear
_________________________
Alex Lear

Top
#14421 - 18/08/2000 09:15 Re: 1.0 volume adjusting kernel [Re: rjlov]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Thanks! This rocks, just like the previous ones did. It's nice to have 1.0 with the volume adjustment back in.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14422 - 18/08/2000 09:42 Re: 1.0 volume adjusting kernel [Re: rjlov]
debauch
enthusiast

Registered: 22/03/2000
Posts: 217
Loc: West Midlands, England
In reply to:

My units appear to function fine with these kernels, but I haven't tried everything on the Mk2 yet


First off, thanks for doing this.

Secondly though, after having a quick squizz at the FAQ, I tootled off to download download.exe and tried the command. I got:

-----------------------
D:\>download.exe empeg-voladj.v1.mk2.zImage 10000
Turn on empeg unit now
Error status in readbyte 24
Error status in readbyte 24
Error status in readbyte 24
found empeg unit: entering program mode
manufacturer=0089, product=88c1
waiting for prompt
starting erase [erasepage(10000) got code 1a2

D:\>
-----------------------------------

The Empeg was then just hanging, but returned to normal operation when I pulled the plug and put it back in again.

Now, the only things I can think of are:

1 - I'm running the consumer (as opposed to developer) release
2 - Things have changed on the MK2 and it's not '10000' any more.

Anybody any ideas?

Nick.

--
18Gb blue - s/n 080000299 (original queue position 8724)

_________________________
-- 18GB red s/n 080000299

Top
#14423 - 18/08/2000 09:57 Re: 1.0 volume adjusting kernel [Re: debauch]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Things haven't changed on the MK2, it's still "10000" as far as I know.

However, do you know whether your copy of Download.exe is the latest version that's Mark2-compatible?

Let me know if that's the source of the problem and I'll emphasize it in the FAQ.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14424 - 18/08/2000 09:58 Re: 1.0 volume adjusting kernel [Re: rjlov]
TommyE
enthusiast

Registered: 08/06/1999
Posts: 356
Loc: NORWAY
Thanks, started to like it... Now its back.

TommyE


Top
#14425 - 18/08/2000 09:59 Re: 1.0 volume adjusting kernel [Re: tfabris]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Yes, this sounds like the problem: code 1a2 is "page locked" - the flash in the mk2 needs unlocking before any writing is allowed, and the mk1 downloader didn't do this.

Hugo



Top
#14426 - 18/08/2000 10:02 Re: 1.0 volume adjusting kernel [Re: altman]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
Hmm.. any chance of having a correct downloader anytime soon? (actually, I can't even find the original download.exe that used to bo on bobo's site - his site's just got a picture up on it now..)

-mark

...proud to have owned one of the first Mark I units
_________________________
http://mvgals.net - clublife, revisited.

Top
#14427 - 18/08/2000 10:02 Re: 1.0 volume adjusting kernel [Re: altman]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Cool. Yeah, Debauch probably got the .exe from Bobo's site, and I think Bobo has the old one up.

Does anyone else have a more recent compilation of Download.exe that I can link from the FAQ?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14428 - 18/08/2000 10:04 Re: 1.0 volume adjusting kernel [Re: dionysus]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Hmm.. any chance of having a correct downloader anytime soon?

You could compile it yourself, the source code is linked in the FAQ...

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14429 - 18/08/2000 10:15 Never mind- here's a new download.exe [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Attached is a copy of download.exe that I just compiled myself. Let me know whether it works with the Mark 2, and I will figure out a way to put it in the FAQ.

___________
Tony Fabris


Attachments
2-13656-download.zip (44 downloads)

_________________________
Tony Fabris

Top
#14430 - 18/08/2000 10:32 Re: Never mind- here's a new download.exe [Re: tfabris]
debauch
enthusiast

Registered: 22/03/2000
Posts: 217
Loc: West Midlands, England
In reply to:

Let me know whether it works with the Mark 2


Yes, it does. Fine.

Thanks Tony - Much appreciated.

Now, that new kernel is cool. Very cool.

Hey there Mr Empeg Guys, any chance you'll be fitting this as standard?

Nick.


--
18Gb blue - s/n 080000299 (original queue position 8724)

_________________________
-- 18GB red s/n 080000299

Top
#14431 - 18/08/2000 10:37 Re: Never mind- here's a new download.exe [Re: debauch]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Yep, there's a chance that we may.

Rob



Top
#14432 - 18/08/2000 10:42 Re: Never mind- here's a new download.exe [Re: debauch]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Cool. Di also confirmed this for me, too. I'm working on fixing it so that it'll work on other COM ports as well. Once I find out if that works or not, then I'll post it and link it to the FAQ.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14433 - 18/08/2000 11:25 Re: Never mind- here's a new download.exe [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, here's a zip file that's got four different versions of download.exe- one for each COM port. I know I could have made the COM port a command-line parameter but I'm lazy and my wife wants me to come get her for lunch, so I'm in a hurry.

I'm going to link this file in the FAQ, too.

___________
Tony Fabris


Attachments
2-13669-download.zip (48 downloads)

_________________________
Tony Fabris

Top
#14434 - 18/08/2000 12:58 Re: 1.0 volume adjusting kernel [Re: rjlov]
jstrain
enthusiast

Registered: 18/08/1999
Posts: 202
Loc: philadelphia pa
i know that this is a really stupid question, but any way to tell if this is working? i'm not sure that i can tell the difference between the original 1.0 and the volume adjustement 1.0. the download seemed to work properly. maybe 'cause i'm listening to it at home, and haven't listened to enough songs yet.

jeremy

12 gig, green...
_________________________
12 gig, green...

Top
#14435 - 18/08/2000 13:36 Re: 1.0 volume adjusting kernel [Re: jstrain]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I know that this is a really stupid question, but any way to tell if this is working? i'm not sure that i can tell the difference between the original 1.0 and the volume adjustement 1.0.

Here was my reply to that same question the last time it was asked.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14436 - 18/08/2000 13:37 Re: Never mind- here's a new download.exe [Re: tfabris]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Once that volume-adjusting kernal is installed, is there an option to disable/enable it?

I can just see myself in an IASCA competition in the sound linearity test, where the same track is recorded three times, once at -12db, once at 0db, and once at +12db, the object being to see if your spectral balance remains unchanged on playback. Imagine the judges faces when all three tracks play back at the same volume!

tanstaafl.

"There Ain't No Such Thing As A Free Lunch"
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#14437 - 18/08/2000 13:48 Re: Never mind- here's a new download.exe [Re: tanstaafl.]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Once that volume-adjusting kernal is installed, is there an option to disable/enable it?

No, not on the fly. It's a hack, so it's not integrated with the user interface at all. In the future, if Empeg includes it officially, there will be menu options for it.

Hey, Richard, is there any way to alter the kernel to offer a choice menu at bootup time before the player software is loaded? You could choose to have the feature on or off that way. But once it's into the Empeg player software, there's no way to get out and do anything without a serial connection to a PC.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14438 - 18/08/2000 14:07 Re: 1.0 volume adjusting kernel [Re: rjlov]
BillB
member

Registered: 13/04/2000
Posts: 134
Loc: Orlando, FL USA
OK, this is a little off topic, and may be a stupid question, but it's been floating around inside my skull -

How does the volume adjustment kernel handle crescendos and decrescendos if there isn't any background music for reference? For example, Metallica's Unforgiven - wouldn't the crescendo at the beginning come out as having a constant volume? Just curious.

Bill B.
Mk.2 SN 080000183 - 18 GB /
Green
_________________________
[orange]Bill B.
Mk.2 SN 080000183 - 38 GB /[/orange] [green] Green [/green]

Top
#14439 - 18/08/2000 14:25 Re: 1.0 volume adjusting kernel [Re: BillB]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
How does the volume adjustment kernel handle crescendos and decrescendos if there isn't any background music for reference? For example, Metallica's Unforgiven - wouldn't the crescendo at the beginning come out as having a constant volume?

Just like any compressor, it ends up behaving differently depending on the character of the wave data it's being fed. Some fade-ins and fade-outs sound very natural, others have a very flattened volume curve so that they do sound almost constant in volume. It depends on where the peaks lie in the track- I don't own that song so I don't know.

But that's the whole point of a dynamic compressor: to compress the dynamics. In our case, to compress it enough so that the quiet parts come up above the car's noise floor, or so that the quieter songs sound closer to the volume of the loud ones. Yes, in some cases this would tend to destroy crescendos, but that's a choice you have to make: Do you want the first half of the crescendo buried beneath the car's noise floor, or do you want to hear the whole thing? To hear the whole thing, you either have to play it really loud or you have to compress it.

Right now, the parameters of this program are hard-coded. When it gets integrated with the player software, the parameters will be adjustable, and you'll be able to tweak it so that it behaves the way you want it to.

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14440 - 18/08/2000 16:00 Re: 1.0 volume adjusting kernel [Re: tfabris]
BillB
member

Registered: 13/04/2000
Posts: 134
Loc: Orlando, FL USA
I see your point. Thanks for clearing that up for me (I don't really know that much about dynamic compression).

I've only had my player for a couple of weeks now, and most of that time has been spent getting used to it, and setting everything up the way I want it. Looks like I'll have to give the kernel a try pretty soon.

Bill B.
Mk.2 SN 080000183 - 18 GB /
Green
_________________________
[orange]Bill B.
Mk.2 SN 080000183 - 38 GB /[/orange] [green] Green [/green]

Top
#14441 - 19/08/2000 01:37 Re: 1.0 volume adjusting kernel [Re: jstrain]
TommyE
enthusiast

Registered: 08/06/1999
Posts: 356
Loc: NORWAY
I too wondered if it worked the first time I installed it.
Tony assured me that it most likely worked even if I couldn't hear it.
What I did was to take the Empeg for a long drive.
I didn't find myself adjusting the volume so much on that trip.

Play a while with it, and it will become clear.

TommyE


Top
#14442 - 19/08/2000 07:17 Re: 1.0 volume adjusting kernel [Re: TommyE]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
It's definately subtle.. I can usually tell when it raises the volume of something, but I'm not quite so sure if it works for the main thing I need it for - changing the volume BETWEEN songs... example:
really soft song, followed by a really loud song..

The loud song still requires me to turn the volume down manually:(
-mark


...proud to have owned one of the first Mark I units
_________________________
http://mvgals.net - clublife, revisited.

Top
#14443 - 19/08/2000 12:05 Re: 1.0 volume adjusting kernel [Re: rjlov]
GeorgeLSJr
enthusiast

Registered: 03/09/1999
Posts: 206
Loc: Sayreville, New Jersey USA
This may be an absolutely moronic question, but I didn't see anything in the FAQ, on Richard's website, or in this thread. I've normalized my entire CD collection using AudioCatalyst and used the highest VBR setting. Is there any benefit to running this volume adjusting kernal for me?

(Is this one for the FAQ?)

George
_________________________
George

Top
#14444 - 19/08/2000 13:35 Re: 1.0 volume adjusting kernel [Re: GeorgeLSJr]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I've normalized my entire CD collection using AudioCatalyst and used the highest VBR setting. Is there any benefit to running this volume adjusting kernal for me?

Your question seems to come from two places:

1) Misunderstanding of the difference between "Normalization" and "Dynamic Compression".

2) Misunderstanding of the dual-usage of the word "Compression".

Let's take the second one first:

The word "Compression" is used to describe two different things: The data compression process by which a WAV file is made smaller and turned into an MP3, and the completely unrelated dynamic compression that's used in the original audio production of the albums you listen to and the television shows you watch.

I assume you already understand what data compression means, let's move on to dynamic compression. From here on out, I'm going to refer strictly to dynamic compression.

What it it? It's like a "contrast" control for the sound. A compressor changes the relationships between the loud sounds and the quiet sounds. It can make the loud sounds quieter and the quiet sounds louder, giving the overall volume a smoother flow.

This differs from normalization in that normalization simply adjusts the entire volume of the track upwards until the loudest peak in the track hits 100 percent. Most of the CDs you buy are already normalized, so hitting the "normalize" button in AudioCatalyst rarely makes major changes.

Almost all of the recorded sound you hear, whether it be on TV, movies, or record albums, is already compressed to some degree. And usually multiple times. Let's take radio stations as an extreme example: When you listen to a song on the radio, the sound has already gone through several compressors at different stages. First, the individual instruments and voices were compressed to different degrees when they were recorded, each instrument with different settings. Then, during the mixdown and engineering of the album, some of the instruments were submixed and bounced down to combined tracks (such as the drums being combined into a single stereo track), and were probably run through another compressor in the process. The final mix was probably compressed a bit before it was sent to the mastering facility, and the mastering facility probably applied even more compression to the album. Then when the radio station plays the song, they heavily compress all of the music they play so that all of the songs appear to be at the same volume. This last one explains why songs sound different on the radio than they do when you buy the CD.

Another example is television commercials. They always seem to be louder than the TV shows because they are overcompressed. Both the TV shows and the commercials have the same volume peaks, it's just that the commercials are compressed so they hit that peak more often (almost constantly, in fact). This is completely deliberate on the part of the makers of the TV commercials. The only way around it (and some TV sets will do this for you) is to overcompress the TV shows themselves so that they're now as loud as the commercials.

A great discussion of compression and how it relates to the relative volume of CD songs is right here. Read it, it's terribly informative and it's written by someone whose job depends upon being very good with compressors.

Now, how does this relate to Rjlov's volume adjusting kernel?

Well, Richard's basically written a digital compressor with a very long attack time (although there are differences which I'll get into in a moment). It runs in real time on the songs playing in the Empeg. Its job is to increase the volume of the quiet parts so that they come out closer to the loud parts. The benefit of running this program is that it'll allow you to hear the quietest parts that were originally buried in the noise floor of the car.

It behaves slightly differently than a compressor, in that it doesn't use a fixed "slope" between the input voltage and the output voltage. Instead, it slowly increases the absolute volume towards a blind target until it clips, then instantly backs down if it detects a clip coming up.

This makes it sound a bit different from a straight compressor, but the end result is similar. I like it a little better. If you want to play with a real compressor, load up a wave file into Cool Edit and invoke their compressor filter. You'll be able to see how it works in their user interface and hear the differences.

One thing that Richard still needs to work on is its ability to handle mid-level volume passages. A passage with a medium volume isn't amplified as agressively as a very quiet passage. So the old problem of all your CDs sounding like they're at different volumes is mostly still there. Since I don't currently have the ability to alter the kernel's parameters, I don't have any way of experimenting to see if that's adjustable. If this software ever gets integrated with the Empeg's main user interface, then we'll be able to play with the settings and get different results. You have to be careful of this sort of thing, though, because an overcompressed album sounds bad.

Does this answer your question?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14445 - 19/08/2000 19:06 Re: Never mind- here's a new download.exe [Re: rob]
Geoff
enthusiast

Registered: 21/08/1999
Posts: 381
Loc: Northern Ireland
Would it be fair to suggest that if this is included in the official empeg software, that it should only be enabled when the empeg is in the car, and disabled if in a home environment?

At least it should be configurable to be enabled/disabled separately for home/car use. If I understand it correctly (from posts here and from the link Tony posted to the explanation of dynamic compression) then having the volume adjustment permanently enabled in both home and car environments is not necessarily ideal.

Geoff
---- -------
Got one of the first Mark 2 empegs...
_________________________
Geoff
---- -------
Mk1 Blue - was 4GB, now 16GB
Mk2 Red - was 12GB, now 60GB

Top
#14446 - 19/08/2000 19:25 Re: Never mind- here's a new download.exe [Re: Geoff]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Of course. The reason we'd like to see it integrated with the player software is so that we could turn it on and off and adjust its parameters.

You're right in that its main usage would be in the car when you're driving at highway speeds. But as stated in that article about compression (the one I linked in my compression explanation), there are many in-home situations where you might want it as well. That's why the author of that article suggested that consumer products should have a "party" button on them, because that's one of the places you'd want to use it.

Another thing that was discussed in the Reviews forum was the idea that it could possibly use the mic input to detect ambient noise, and increase the agressiveness of the compression as the road noise increased. That would be awesome.

Still, your suggestion that it have separate home/car personalities is a good one. Empeg guys: As you're designing the plug-in specification for this kind of thing, make sure that home/car personality detection is part of the API, K?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#14447 - 19/08/2000 22:33 Re: 1.0 volume adjusting kernel [Re: tfabris]
rjlov
member

Registered: 16/12/1999
Posts: 188
Loc: Melbourne, Australia

OK. There's a few questions that have been asked that I shall try and address.

- Does the volume adjustment destroy cresc/dims?

No, but it will usually (almost always) make them less pronounced. It attempts to preserve volume relationships. In a steady state, if a > b, then voladj(a) > voladj(b). So, you should still get all your dynamics, just reduced in contrast. But, it is a gradual thing, so if there is a cresc faster than about 3db/second, you will get a cresc then dim effect. In practice, these are fairly rare.

- How come I still have to twiddle my volume knob?

Not all CDs are normalised. But in my experience very few of them have the largest sample less than 6db below the maximum possible sample. With the current volume adjustment this pretty much translates to a 2db drop from the loudest track you can play. That's not much, and I notice that many of my tracks no longer need manual adjustment, but see below.

But, there's this headroom multiplier I put in there (it's 0.75 at the moment). It's supposed to make clipping happen less often, but one of the side-effects is that only the stuff that is already really loud can be loud after the volume adjustment. It's a little bit complicated, but I'll try and explain.

outval = multiplier( inval ) * inval
multiplier( inval ) = max( 1, headroom * desired_output( inval ) / inval )

The max(1,...) is there because there is no point in having the multiplier less than 1. In that case we're just throwing away information. But the max() also means that the linearity (or logularity??) is broken when the desired_output(inval) / inval > 1 / headroom.

How can we fix it? Well, we can try using headroom = 1. Then this effect will disappear, and you will have much less need to adjust the volume for tracks from different CDs, but you are more likely to get objectionable, rapid volume changes as the routine avoids clipping. How much more likely? I don't know. Try it and see! You can use the command line version to experiment.

I think the next version I make I'll try having headroom = 1.

The other solution is to normalise all your CDs before encoding them, which I recommend (but I don't do, yet).

- How do I know if it's working?

Most of the time I can't tell either. But, if you have tunes with a really soft passage in the middle (that you usually don't hear) you might notice that it now is audible. Another time is when there is interesting stuff happening at the end of a fadeout, that is much louder than normal. If you have recordings with long periods of silence, but a high level of background noise (enough to trip the silence thresholds) (usually older recordings) then you will notice the hiss being brought up in the silence, and it dropping away again when the music starts.

Basically, if you can't tell it's there, that's what's intended.

- Can I turn it on and off, or adjust the parameters?

No. I would like this as much as you would and when we get an API for this kind of thing (it's in the works, I'm told) we'll have some user interface for it in the player. It probably wouldn't be that hard to activate / deactivate it based on home / car in the current form, but I like it at home as well! If the music is just background, then the volume adjustment is good. If you're actually sitting there concentrating on it, then you don't want it.

It would be nice to switch it on and off so you can see how much benefit (if any) it is providing.

Ideally we could get the frobbing knob on the Mk2 to adjust the minimum desired volume, then you just dial up no distortion for Doug, or no contrast for when the ambient noise floor is at the threshold of pain. :)

Richard.



Top
#14448 - 20/08/2000 00:00 Re: 1.0 volume adjusting kernel [Re: rjlov]
Henno
addict

Registered: 15/07/1999
Posts: 568
Loc: Meije, Netherlands
If you have tunes with a really soft passage in the middle (...) you might notice that it now is audible
you can't tell it's there, that's what's intended.


Yeah . . . . Great stuff
You're right: one can hardly notice that it's there, but soft passages are audible now ! Really clever.
Thanks for sharing it, Richard. This must be the type of player extensions that Hugo at al want to trigger.
Now let's hope the empeg guys will find the time so it can be neatly integrated in the player. Both the player and your extension deserve it.

Henno
mk2 6 nr 6
_________________________
Henno mk2 [orange]6 [/orange]nr 6

Top
Page 1 of 2 1 2 >