Different character of sound of N106 in Rolling Thunder.

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

Post Reply
User avatar
Ryukenden
Posts: 9
Joined: Sat Aug 18, 2012 8:49 pm
Location: Russian Federation, Chelyabinsk

Different character of sound of N106 in Rolling Thunder.

Post by Ryukenden »

Why? Interesting to know. In other games with N106 such did not hear.
https://yadi.sk/d/GFz30J7HgfzX5
Recording from emulator (Nestopia), N106 sounds only.
8-BIT MUSIC FAN
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

Nestopia's emulation of the Namco 163's wavetable sample length was wrong until quite recently: https://github.com/rdanbrook/nestopia/issues/118
Rolling Thunder is one of the games that actually uses long enough samples for this to be audible: viewtopic.php?t=12326
User avatar
Ryukenden
Posts: 9
Joined: Sat Aug 18, 2012 8:49 pm
Location: Russian Federation, Chelyabinsk

Re: Different character of sound of N106 in Rolling Thunder.

Post by Ryukenden »

Thanks! Already I read.
P.S. Somehow I heard, that in N163 there are samples in length more than 32. And Nestopia, means, cannot simply play such samples...
8-BIT MUSIC FAN
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

Yes, you'll have to use a newer release of Nestopia UE in order for longer samples on the 163 to work correctly. (Anything newer than 2015-02-09, when the change was committed)
User avatar
Ryukenden
Posts: 9
Joined: Sat Aug 18, 2012 8:49 pm
Location: Russian Federation, Chelyabinsk

Re: Different character of sound of N106 in Rolling Thunder.

Post by Ryukenden »

I can't find a newer Nestopia with fixed bug of N163...
8-BIT MUSIC FAN
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

Looks like you'll have to make it / get someone to make it for you... (see viewtopic.php?p=145550#p145550 )
Grapeshot
Posts: 85
Joined: Thu Apr 14, 2011 9:27 pm
Contact:

Re: Different character of sound of N106 in Rolling Thunder.

Post by Grapeshot »

I implemented N106 sample length properly in my emulator (HalfNES) from the beginning but had to add heuristics to trim samples down to 32 bytes maximum when the remaining length was all zeroes, to cater to the expectations of certain NSFs by Robokabuto. Not sure I should have done that but someone did complain and it wasn't like Robokabuto would issue a fixed version.
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

"when the remaining length was all zeroes" ?

You could fix the NSFs yourself, FWIW.
Grapeshot
Posts: 85
Joined: Thu Apr 14, 2011 9:27 pm
Contact:

Re: Different character of sound of N106 in Rolling Thunder.

Post by Grapeshot »

I mean that if the sample length is set to more than than 32 but the program hasn't written anything into at least 3 consecutive bytes of that sample area, then I shorten the length.

Also, interestingly enough, someone else already fixed the NSFs in question and posted them right here on Nesdev six months before I ever encountered the issue and I never knew about it until just now, because the versions in the Famicompo archive were never fixed.

viewtopic.php?f=6&t=9268&start=105#p115201

(That Dropbox link is dead too now.)
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

I found this lying on my hard drive, with the right download date:
robokabuto.rar
(355.95 KiB) Downloaded 230 times
(tell me if I should remove it)
Grapeshot
Posts: 85
Joined: Thu Apr 14, 2011 9:27 pm
Contact:

Re: Different character of sound of N106 in Rolling Thunder.

Post by Grapeshot »

Well I did go ahead and patch the NSFs I had to deal with this anyway. There's one track that wasn't in the other set, and all of them have different metadata because they were from the Famicompo archives.

Now if only I could get the fixed versions back in those archives so this never comes up again.
Attachments
robokabuto nsfs patched.rar
(42.43 KiB) Downloaded 230 times
User avatar
Ryukenden
Posts: 9
Joined: Sat Aug 18, 2012 8:49 pm
Location: Russian Federation, Chelyabinsk

Re: Different character of sound of N106 in Rolling Thunder.

Post by Ryukenden »

Whether exist a player which correctly playback a wavetable sample in length more than 32?
8-BIT MUSIC FAN
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: Different character of sound of N106 in Rolling Thunder.

Post by lidnariq »

At least NSFPlay does.
User avatar
Ryukenden
Posts: 9
Joined: Sat Aug 18, 2012 8:49 pm
Location: Russian Federation, Chelyabinsk

Re: Different character of sound of N106 in Rolling Thunder.

Post by Ryukenden »

Thank you!
P.S. In Final Lap samples too are longer, than 32. Sound on NSFPlay and in the emulator different.
8-BIT MUSIC FAN
Post Reply