nesdev.com
http://forums.nesdev.com/

Can you port NES music to SNES remakes of NES games?
http://forums.nesdev.com/viewtopic.php?f=2&t=16763
Page 2 of 2

Author:  psycopathicteen [ Sat Dec 02, 2017 5:28 pm ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

On the other hand, it would be faster if the SPC700 generated square waves by decrementing a register by a certain amount until it went negative, then add another value back to the negative number and updated the sample for the channel. It would be unpredictable how much CPU it will take, so it should draw it to a BRR sample.

Author:  tepples [ Sat Dec 02, 2017 5:39 pm ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

You could probably get away with mip-mapping them. Pre-generate a bunch of BRR waveforms of the form 7666...66679AAA...AAA9 and filter 0, one for each combination of octave and duty. (The 7 and 9 are pre-emphasis to fool the Gaussian interpolation into behaving more like cubic spline interpolation.) Then switch each channel's loop point among them based on the octave and duty in effect at any given time. This would cause a "phase reset" of sorts when crossing octaves, but the 2A03 APU has those anyway.

Author:  psycopathicteen [ Sat Dec 02, 2017 6:05 pm ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

It's a matter on memory vs speed. Though using "speed" method you'll get an extra crispy square wave.

Author:  tepples [ Sat Dec 02, 2017 6:24 pm ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

But you've got plenty of memory on hand. Generate square waves of lengths 16, 32, 64, 128, 256, and 512 for the three audibly distinct duty cycles the NES APU can produce, for a total of 1008 samples or 1008 * 9/16 = 567 bytes per channel. Round that up to 768 to account for padding consideration when switching among waveforms, and you're still only up to 2.25 KiB out of the 64 KiB that the APU has. Then have the player tweak each pulse channel's loop point to switch among them.

Author:  lazygecko [ Sat Dec 09, 2017 9:17 am ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

Doesn't the faux retro jingle from the intro of Donkey Kong Country bypass the filtering somehow and preserve the aliased sound of the triangle?

Author:  tepples [ Sat Dec 09, 2017 9:39 am ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

lazygecko wrote:
Doesn't the faux retro jingle from the intro of Donkey Kong Country bypass the filtering

No. I just put my DKC cartridge in my Super NES, listened to the first six measures of the intro, and couldn't hear the telltale 31st and 33rd harmonics, which are supposed to be in the 4K-8K band for the notes being played. It's also unrealistic in that the triangle channel has smooth volume control.

Author:  psycopathicteen [ Sat Dec 09, 2017 2:28 pm ]
Post subject:  Re: Can you port NES music to SNES remakes of NES games?

I thought of a way to do it through software. Calculate the slope of the output for each channel combined, and then recursively add the output of the previous sample.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/