YM2612 question waveform..

For anything related to sound (YM2612, PSG, Z80, PCM...)

Moderator: BigEvilCorporation

Post Reply
tomaitheous
Very interested
Posts: 256
Joined: Tue Sep 11, 2007 9:10 pm

YM2612 question waveform..

Post by tomaitheous » Fri Mar 06, 2009 6:31 pm

Does Key on/off reset the pointer to internal sine waveform for a carrier? Is there any other way to reset the pointer?

Also, what's the start value for the waveform?

Nemesis
Very interested
Posts: 791
Joined: Wed Nov 07, 2007 1:09 am
Location: Sydney, Australia

Post by Nemesis » Fri Mar 13, 2009 12:23 am

The phase counter, which I believe is what you are referring to, is reset to 0 when a key-on event occurs, as well as in several cases under SSG-EG mode. This causes the output waveform for an operator to restart from the beginning of the wave. That information is all in the YM2612 thread.

Regarding what the waveform starts from, the phase counter itself starts at a value of 0, however, that does not actually correspond with an output value of 0, since the sine table is slightly offset. A source phase value of 0, when fed through the sine table, actually gives an output a little below maximum attenuation IIRC. Again, check the YM2612 thread, where I give a description of the phase generator.

Post Reply