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?
YM2612 question waveform..
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 256
- Joined: Tue Sep 11, 2007 9:10 pm
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.
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.