Re: [hatari-devel] New cycle exact YM2149 emulation |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] New cycle exact YM2149 emulation
- From: David Savinkoff <dsavnkff@xxxxxxxxx>
- Date: Sat, 17 Jun 2017 22:01:57 -0600 (MDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1497758517; bh=eGoO00fmOX0Di4CH6dI5+Q7ml9/yEBU0gluXINtRgGg=; h=Date:From:To:In-Reply-To:References:Subject; b=125a8ugXIQrIO1ExuC8p9H3ky6NBwQUDi2JoiX/2r+V6djkdlKuyWD8mH/BOScd8p Qq6bKuz30MlKWLK4qmj49tIBB0SsCtOYV5GucJF0mgABlbI2i5vYx6ZDCaPMFhyXR5 CX6d8jY+roAMnnZQ3OXNUEqiRZXjkRlmKnBNMyZNTBeqGe20EN0H5kOsO7jXO1nLwi Z2oSul9iiOaLUzhwABylTLk7UIE1lzk0XAq6WbS9lGKxxeyN7uKmObKu8x0VFZz+U9 iZNadmaYtYqPmSGgtPjJNFl1KRnV06inv6XqZ4jKkz9zXiYXOcfmUlEpDB85sEbcfm 52ct3cZrdvajw==
- Thread-index: xl3EmJ5r7NlN5FlOfzrjGd6l27R8vw==
- Thread-topic: New cycle exact YM2149 emulation
----- Nicolas Pomarède wrote:
>
> From a few comparisons with my STF, I would say that Hatari result is a
> little bit too attenuated and should be a little more "sharp", but not
> as much as when turning filter off completely.
>
> Nicolas
>
This patch changes filter coefficients for a sharper sound.
I can make more patches until the timbre is right.
--- hatari/src/sound.c 2017-06-17 20:06:59.678017765 -0700
+++ hatari/src/sound.c 2017-06-17 20:20:56.588497567 -0700
@@ -433,7 +433,10 @@
y0 = (3*(x0 + x1) + (y0<<1)) >> 3;
else
/* R8 Pull down: fc = 1992.0 Hz (44.1 KHz), fc = 2168.0 Hz (48 KHz) */
- y0 = ((x0 + x1) + (6*y0)) >> 3;
+ /* y0 = ((x0 + x1) + (6*y0)) >> 3; */
+
+ /* R8 Pull down: fc = 4516.6 Hz (44.1 KHz), fc = 4916.0 Hz (48 KHz) */
+ y0 = ((x0 + x1) + (y0<<1)) >> 2;
x1 = x0;
return y0;