Inconsistent DPCM volume - ramps up and down

Please post about bugs here.
Forum rules
When making a bug report, please try to be as specific as possible. Include information on how to reproduce the bug and an example file if possible.
If the application crashed, please include the generated memory dump file as well.
Posts: 1
Joined: Sat Jan 14, 2017 6:19 pm

Inconsistent DPCM volume - ramps up and down

Postby El_Infame » Sat Jan 14, 2017 6:30 pm

I'm trying to use melodic samples in my project, but while DPCM doesn't allow volume control, it automatically ramps down and up in volume. Now, I could understand this if I was using two samples of differing volumes, but this happens while playing the same sample! Is this a properly-emulated limitation of the DPCM channel, or an issue with the FTM itself, or what?
Attached you'll find a ZIP, containing the FTM file (I know it sounds like crap, don't remind me!) and a WAV with the isolated DPCM channel, showcasing the volume ramping.
dpcm issue
(1.07 MiB) Downloaded 10 times

User avatar
Posts: 376
Joined: Sun Apr 26, 2015 7:46 pm

Re: Inconsistent DPCM volume - ramps up and down

Postby Stratelier » Sun Jan 15, 2017 3:41 am

Keep in mind that the Triangle, Noise, and DPCM channels are all output from the same pin of the 2A03 chip, so whatever's playing on one channel can affect the perceived volume of the others. (This also happens with Pulse 1 and Pulse 2.)

User avatar
Posts: 458
Joined: Thu Apr 23, 2015 7:39 pm
Location: Hong Kong SAR

Re: Inconsistent DPCM volume - ramps up and down

Postby HertzDevil » Sun Jan 15, 2017 2:07 pm

If you play a new sample without resetting the delta value (by Zxx commands or the initial values on the instrument's assignments), it will just start from whatever value is last played from the existing sample. It could be greater than the initial value of the first sample, or less; in general this is non-determistic, so you should put something for your DPCM sample's initial delta value unless it is guaranteed to clip, in which case it will use up the whole dynamic range of the channel regardless.

None of the OP talks about the volume of the triangle or noise channel. Whether linear mixing occurs is irrelevant to this discussion since the output of the DPCM channel itself must ramp up and down nonetheless. So maybe stop spitting out templated responses next time? (While we are at it, the DPCM channel always resets its delta value to 0 on stopping, so this critical bug does not apply, i.e. playing the same song twice will not give different initial delta values on the first sample.)
Constructing Chiptune; Construing 8-Bit. Makes 0CC-FamiTracker and MEGA ZUN.

Join my forum for 0CC-FamiTracker discussion and more

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest