|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
Author | Message |
---|---|
Dave
|
Noise in Sound test
Posted: Wed Aug 15, 2001 8:45 pm
|
I think Synch and White are the wrong way round in that sound test program. Can anyone confirm?
(I'm guessing Synch is meant to sound like buzzing, and White like hissing.) Maxim, can you do the test with Channel 2's volume at F? Otherwise the tone gets mixed in. That's probably the weird stuff you saw in the WAV file. Also, can you get recordings of the low mid and high versions of the Hiss noise? (Though it seems to be labelled "Synch" in the sound test.) |
|
|
Posted: Wed Aug 15, 2001 8:57 pm |
I may have to wrong version posted. I'll check on that this evening. The version that I do all my testing with has them the right way. Another thing that's relevant, is that I think the version I posted updates the sound registers once a frame - I don't know if doing that resets some kind of shift register, I don't think it would on hardware, but I remember at least one emulator had weird sounding noise in my sound test because of it.
I think that was intentional, you can count how many PSG cycles elapse between noise pulses. (so actual frequency settings become irrelevant.. or should become irrelevant.)
|
|
|
Posted: Wed Aug 15, 2001 9:59 pm |
The synch noise sounds synchronous to me (I can hear a repeat in it), the white doesn't. So I think they're right.
Like Heliophobe said, it's on purpose, so you can see the shift triggers.
Already done that :) Old sound test stuff which I did when I got my hands on a devcart and an SMSReader(/Writer). Maxim |
|
|
Posted: Wed Aug 15, 2001 10:32 pm |
Can you make a version that doesn't? Maybe have Pause toggle the write every frame. I think this might be causing strange results... I hereby command everyone to disregard all previous samples of noise until this is sorted out... Maxim |
|
|
Posted: Wed Aug 15, 2001 10:35 pm |
Right, I have a version at home that doesn't do that, I just didn't bother posting it. |
|
|
Re: Noise in Sound test - officially broken
Posted: Thu Aug 16, 2001 9:35 am
|
It seems it does reset the shift register. A bit of simple arithmetic finds... Low frequency noise is tuned to PSG value 0x040. On a PAL SMS this comes out at 1731Hz. At 50 frames per second, we have 34.64 cycles per frame. So, sometimes there will be 34 cycles between writes, sometimes 35. Looking at the data I had... there were gap lengths of 15 then 18, or 15 then 17. 1+15+1+18 = 35, 1+15+1+17 = 34. So, something to add to the docs: PSG noise writes reset the shift register. Maybe adding this will make noise sound better? I already tried it in my plugin and it sounds much the same. Maxim |
|
|
Well, at least we learned something
Posted: Thu Aug 16, 2001 5:51 pm
|
Sorry to have rendered all your tests completely useless. But then, we might not have realized a change to the noise register resets the shift if it weren't for that.
Forgot to upload it, dang. Actually, I think I've got the source here at work still, maybe I can fix it now.. um, haven't done any z80 stuff in nearly half a year, let's see if I'm still any good at it. |
|