Inconsistent DPCM volume - ramps up and down - FamiTracker

# FamiTracker

FamiTracker Support Forums

Skip to content

## 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.
Post Reply

- Print view

3 posts • Page 1 of 1

El_Infame
  Posts: 1
  Joined: Sat Jan 14, 2017 6:19 pm

### Inconsistent DPCM volume - ramps up and down

- Quote

Post by 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.

Attachments
  dpcm issue example.zip
    (1.07 MiB) Downloaded 372 times

Top

Stratelier
  Posts: 378
  Joined: Sun Apr 26, 2015 7:46 pm

### Re: Inconsistent DPCM volume - ramps up and down

- Quote

Post by 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.)
Top

HertzDevil
  Posts: 475
  Joined: Thu Apr 23, 2015 7:39 pm
  Location: Hong Kong SAR
  Contact:
  Contact HertzDevil
  Website Facebook Twitter Skype
  YouTube

### Re: Inconsistent DPCM volume - ramps up and down

- Quote

Post by 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.)
refactoring 0cc-famitracker
Top

Display posts from previous:
Sort by

Post Reply

- Print view

3 posts • Page 1 of 1

Return to “Bug Reports”

Jump to

- Rules
- Wiki
- FamiTracker
- General Talk
- Bug Reports
- Feature Requests
- Source and development
- Music
- Original Music
- Cover Music
- Other
- Site Issues & Suggestions