Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > DPCM delta counter? whats that about? Owner: alex_mauer New post
Page 1 of 1 Sort:  
DPCM delta counter? whats that about? Posted: 2007-09-12 08:01 Reply | Quote
alex_mauer

Avatar

Member for: 5896 days
Status: Offline

#824
Zxx - whats that do? delta counter? how many possible settings are there for this command? the help wasnt very helpful regarding this one

~alex

Posted: 2007-09-13 00:01 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#826
The delta counter works like this: when a sample is playing, the bits in each sample byte either increases or decreases the delta counter. If the counter reaches the bottom or the top it'll clip. The delta counter is then just connected to the DAC in the APU.

Changing the delta counter sets the starting point for the next sample, but there's one other side effect: the DAC is mixed with the triangle and noise channels in a nonlinear way. A high value of the delta counter will reduce the volume of triangle and noise. This can be used to slightly change the volume of triangle.

The delta counter ranges from 0 to 127, so 0-7F is valid for the Zxx effect.

Posted: 2010-08-09 00:13 Reply | Quote
sergeeo

Avatar

Member for: 5660 days
Location: Spain
Status: Offline

#8499
Can anyone give a practice .ftm of this?

Thanks.

_______________________
jsr rox!!
Posted: 2010-08-09 06:02 Reply | Quote
TechEmporium

Avatar

Member for: 4484 days
Status: Offline

#8526
All you need to do is play a steady note in the triangle channel & run the Zxx command in the DPCM channel. You should notice what JSR said; the triangle wave should clip from the top & bottom.

You'll notice a volume decrease in the triangle channel as you increment from Z00 to Z7F as a result of the wave clipping.

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Posted: 2010-08-10 11:41 Reply | Quote
furrykef

Avatar

Member for: 5189 days
Status: Offline

#8569
There are relatively few uses for this aside from the triangle/noise volume thing mentioned above (I use this mainly to maintain volume consistency in a song that has parts with DPCM and parts without). One thing you can do is produce 'pops' that will sound kind of like a bass drum -- Final Fantasy III does this for its victory theme -- but from what I understand this only sounds good on the original machine, not most emulators. (Not having heard it on the original machine, I couldn't tell you.)


Posted: 2010-08-10 16:55 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#8571
Frames 00-03: How to use a stream of Zxx effects (of course, in preferably very high tempo) to create attacks for the triangle channel. Yeah...
Frame 04: How to use only the command itself to make a buzzing sound.
Frame 05: How to use a special DPCM sample and Zxxs to create something similar to a sawtooth. The sample is just a 16 bytes sample filled with 00s.


Attachments:
zxx.ftm (2 Kb)
Posted: 2010-08-10 17:31 Reply | Quote
Rushjet1
Moderator

Avatar

Member for: 5012 days
Location: Atlanta, GA
Status: Offline

#8572
famitracker's "dpcm edit" thing crashes a TON but oh well, here's a testfile


Attachments:
triangleechotest.ftm (4 Kb)
Posted: 2010-08-12 19:47 Reply | Quote
sergeeo

Avatar

Member for: 5660 days
Location: Spain
Status: Offline

#8627
Thanks a lot!

_______________________
jsr rox!!
Page 1 of 1 Sort: