Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Sound Bias Register - Help please!   Message List  
Reply | Forward Message #8669 of 15019 |
Re: [gbadev] Re: Sound Bias Register - 9bit samples????

> You are of course throwing resolution away if you use the 7-bit or 6-bit
> modes. The low bit(s) are just gone. In 9-bit mode the extra bit is just
> "invented" by the system so it's still just 8-bit sound.

Well, I thought I explained this. The reason that argument is not calid can
be attacked from two different angles:

1) If you move from 8-bit to 9-bit, though you gain resolution in sample
depth, you lose resolution in sample rate. That extra timing bits are, to
quote, "just gone".

2) The sound card pushes the same amount of data per second no matter what
mode you're in, implying that no loss of resolution has occurred, but rather
a shift in resolution.

Here's a hint: don't say "of course". That's a really dangerous phrase,
especially when your substantiation of why rigorously ignored half of what's
going on.

> In 9-bit mode the extra bit is just
> "invented" by the system so it's still just 8-bit sound.

Can anyone confirm this? This seems ludicrous to me, and I've never seen
anythign which supports this. Moreover, when I generated tones through the
AGB, I was able to tell the difference, when using waveforms whose timing
was adjusted to be different.

That said, there's been some indication on the list that a waveform expanded
to fill different timing rates somehow sounds different, so I worry that
that's what I'm hearing.

The nine bits of data *are* being interpreted by the system. Otherwise,
that ninth bit I put in the waveform should have wreaked havoc, and it
didn't. Moreover, 8-bit data filled in in the 9-bit mode sounds completely
wrong, leading me to suspect that you're just making that up.

> The balance between sample rate and sample depth is most elegantly exposed
> using PWM. Roughly speaking, you can double your sample rate and half
your
> dynamic range [= drop 1 bit from the sample depth] and the sound quality
is
> equivalent [i.e. identical, assuming proper analog output stages].

Instead of picking on the grammar here (start with a question, end with a
statement attatched with an "and"), I'm gonig to point out that

a) sound quality is *certainly* *not* equivalent, and if you were to try the
MP3 experiment I described, you'd know that, and
b) if it were equivalent, how could you possibly be losing resolution?

> PWM is
> essentially 1 bit at very high speed, and it *emulates* 8 bits and 65kHz,
or
> 9 bits at 32kHz, etc. There is no reason to choose one over the other in
> principle because the DATA RATE is the same, and it's data rate that
counts.
> However, the analog shaping circuitry at the output stage makes a BIG
> difference here. Not knowing what the output stage is exactly, the only
> valid advice is to try the different modes and choose the one that sounds
> best.

Uh, no. While it is true that PWM is a 1-bit signal constructed into
varying rates, there are absolute scads of logical errors. If the sound
quality is equivalent, what's this about testing to see which sounds best?
And what makes you think that it cannot be predicted what effects sample
rate and sample depth will have on a sample?

> I don't understand where FM comes in. GBA uses Pulse Width Modulation,
not
> Frequency Modulation. FM uses sine waves; PWM does not.

Brain fart. I tend to use FM to mean sampled sound, because most people
recognize it that way, much like I tend to use Hacker to mean Cracker, even
though the word is just wrong. That said, this is a technical forum and I
shouldn't have. My bad.

> Another hint from DSP theory: if you calculate the sounds internally at
> higher than 8-bit resolution, then you should add a certain amount of
noise
> [dithering] before you cast the sample to 8 bits. The dithering should be
a
> random amount between -0.5 and +0.5. The difference is marginal at 16
bits,
> but at 8 bits it is audibly noticeable. In experiments, it has been found
> that people can hear a sine wave that is only 1/2 LSB large AS A SINE WAVE
> when 1/2 LSB of noise is added. Without the noise added, all you hear is
a
> SQUARE wave. That's a big difference at low amplitudes. Think of how a
> greyscale image would look with and without dithering - your ear works the
> same.

Um. I'm not a sound technician. +0.5 what, and -0.5 what? Why would
adding noise make something sound better? Is this to combat aliasing? If
so, why not just approach the aliasing from a known position? Certainly
there's something better than randomness. For that matter, if random noise
is good, why are uninsulated cables bad? They're not getting very much
amplitude compared to the real signal at all, and though +0.5 has *no*
*unit* (this is bad, 3rd grade math), I'm assuming you mean against a signal
level of one. I don't know whether line amplitude is measured linearly or
logarithmically, but either way, I'd be hella surprised to learn it went
over 0.5 on a scale of 1 unknown unit.

That said, unless you're a sound engineer, that paragraph is completely
incomprehensible. And I'm kind of hesitant to believe that a sine wave,
when played wihtout noise, sounds liek a square wave when listened to. Or
whatever you meant.

Look, you seem to know a lot about the topic, but what you say is
self-contradictory. Let's put the debate to rest: the amount of data flow
is unchanging, and there is no compression involved, so there is no
resolution loss. This is very simply put. The sample rate can have a
difference in resolution, *or* the sample depth can have a loss in
resolution, but the sample itself cannot, as the rate and the depth will
mirror each other.

If you're discarding sample rate, then yes, sample depth can lose
resolution, but that seems to me to be a clearly erroneous thing to do. The
bitrate is unchanging, and I'd like to see you address that.

In the meantime, what's all this about random noise making things sound
better? If you mean that the dither pattern has a random component, that's
different, but those aren't random - tehy're pseudo-random, and in the case
of dithering patterns, not very - they have rules regarding neighbors, etc.
That's very different than random noise and should not be presented as such.

Dithering seems like entirely the wrong word to use, by the way. Dithering
is a term used specifically to refer to graphics, especially bitmap
graphics. It comes from the old english word, meaning to shiver (merriam
webster online comes up with that one; the better definition can be found at
FOLDOC.org).

Now, I'm not claiming to know how people on the inside of the digital audio
industry talk about things, but I think it's curious that every single one
of the pages I come up with uses the phrase "anti-aliasing".

So, look. Your last message neatly restated what you said before, but did
not address any of the concerns I raised as to why I think you're wrong, so
I still think you're wrong. If you have a good way of demonstrating to me
that the *total* resolution - sample rate and sample depth - is changed by
this operation, I'll take it. Do remember, as I keep restating, that the
data rate is unchanged.

For the sake of this list, I'm gonna drop the thread, unless his new reply
actually addresses some of these topics.

- Fatty the somewhat annoyed
("of course" indeed)


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Sun Dec 2, 2001 2:35 am

johnisaheadcase
Online Now Online Now
Send Email Send Email

Forward
Message #8669 of 15019 |
Expand Messages Author Sort by Date

I've looked throught the *entire* (!) posts on sound stuff and didn't found anything on the sound bias register! What's it's purpose and bit layout? Is it for...
uze666@...
uze666
Offline Send Email
Nov 18, 2001
9:51 pm

The sound bias register is fed by two vals, only one of which you should be concerned with: AAxxxxBBBBBBBBBB A=Amplitude resolution in bits, whereas: 00 = 9bit...
Emanuel Schleussinger
ratbert.geo
Offline Send Email
Nov 19, 2001
10:20 am

... How anything else than 8bit is supposed to work anyway??? Considering the FIFO has 128bits (16 bytes), 128/9 gives 14.22222 9bit-"bytes"!?! Or...is it...
uze666@...
uze666
Offline Send Email
Nov 19, 2001
4:53 pm

Um. It's because at 8-bit the sampling frequency is 64khz, but at 9bit it's 32khz; similarly, at 7-bit it's 128khz, and at 6-bit it's 256khz. Well, it's...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Nov 30, 2001
9:07 am

... if I understand it right of courswe you are ... bitdepth = resolution = headroom (kind of) the idea is that the more bits you use to store a single sample ...
CK
x@...
Send Email
Nov 30, 2001
3:29 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Dec 1, 2001
12:25 am

You are of course throwing resolution away if you use the 7-bit or 6-bit modes. The low bit(s) are just gone. In 9-bit mode the extra bit is just "invented"...
Eddie Edwards
eddie@...
Send Email
Dec 1, 2001
11:24 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Dec 2, 2001
12:48 pm

Sorry, this post I'm replying to is old ... and long ... John Q. Pretentious wrote: ... completely ... Are you saying that the data is sent into the FIFO...
Eddie Edwards
eddie@...
Send Email
Jan 2, 2002
8:18 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Jan 11, 2002
9:16 am

Horribly off-topic. Sorry. Just in case anyone else is following the thread ... ... the ... Well, that's a relief! I was only 99% certain myself, and quite...
Eddie Edwards
eddie@...
Send Email
Jan 11, 2002
4:56 pm

... yep, some are trying...very hard! :) ... Trough experimentation, I could tell the difference either. Wether i use directsound or sound channels, using the...
uze666
Offline Send Email
Jan 11, 2002
6:41 pm

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Jan 13, 2002
1:27 am

... May I correct two common misconceptions? First off, "Gaussian" does not apply to the frequency distribution but instead to the distribution of time-domain...
Damian Yerrick
yerricde
Offline Send Email
Jan 14, 2002
9:33 am

... I think this is the wrong book. I'm trying to find out what the book I mean is called. Please nobody buy it; this one is a bit more advanced [research ...
Eddie Edwards
eddie@...
Send Email
Jan 15, 2002
10:52 pm

... right. ... Erm. I'm going to jump in at this late stage and say that I'm not 100% sure that's right. However, it's more likely that I've misinterpreted...
Andrew Rollings
andrew_rollings
Offline Send Email
Jan 16, 2002
9:21 am

... Apparently not. I did FFTs of some linear noise and some Gaussian noise and the results were inconclusive, so instead I synthesized some white noise by ...
Eddie Edwards
eddie@...
Send Email
Jan 18, 2002
8:05 am

... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com...
John Q. Pretentious
johnisaheadcase
Online Now Send Email
Jan 22, 2002
6:14 pm

... How anything else than 8bit is supposed to work anyway??? Considering the FIFO has 128bits (16 bytes), 128/9 gives 14.22222 9bit-"bytes"!?! Or...is it...
uze666@...
uze666
Offline Send Email
Nov 19, 2001
4:55 pm

... dunno about the purpose all i know is that you shouldn't change bits 9-0 as they are controlled by the CPU you CAN change bit 15-14 (2 most highest bits) ...
Berg van den, B (Bast...
B.Berg01@...
Send Email
Nov 19, 2001
10:21 am

The register lives at &88 and looks like this: RRxxxxBB BBBBBBBB RR = amplitude resolution: 00 9bit at 32768 Hz 01 8bit at 65536 Hz 10 7bit at 131072 Hz 11...
Eddie Edwards
eddie@...
Send Email
Nov 20, 2001
11:28 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help