The music player automatically combines Pattern Notes with Ornament and Effect before they are finally sent to the Sound Chip.
However the calculations for the conversion should be understood to make better use of the facilities available.
A Pattern Note is always the base note that all subsequent changes are applied to.
The Pattern Note is adjusted by the Ornament Semitone offset then converted to Pitch.
The Pitch is then adjusted by Pitchbend(if present) then adjusted by any Effect pitch variance before being sent to the Sound Chip.
(Pattern Note +/- Ornament) » Pitch +/- Pitchbend +/- Effect Pitch » AY
If the Effect assigns volume control to the EG then any volume changes will not take place until control is switched back again. If Volume is used then the Pattern Volume sets the presidence. The Effect variance then adjusts the volume before it is sent to the Sound Chip.
If a Sample is played on Channel C whilst a note is played then the Sample will always take presidence.
Pattern Volume +/- Effect Volume » AY
Noise is primarily set in the Pattern Noise Column. Any Effect Noise variance will act upon this before it is sent to the Sound Chip. If (In the usual case) Noise is not used in the column then any Noise variance in the Effect will be based upon the last Noise value or Zero if never set.
Pattern Noise +/- Effect Noise » AY
WAVE EGPeriod is always 8 bit thus ranges 0 to 255 even though the Pattern format only permits values from 0 to 62.
The Period may be adjusted in the Effect before it is sent to the sound chip.
Pattern EG +/- Effect EG » AY
The Pattern permits values in the range of 0 to 62 and selection of Saw, Triangle or Pulse modes to be selected. This means in most cases the composer is attempting to synchronise the pitch in the Period to a Notes pitch in the Chip Channels.
As such the table below gives some guidance to the synchronised notes possible. Note then that the values vary between Sawtooth and Triangle waveforms. This is because a Triangle period represents 1 half of the waveform whereas Sawtooth period represents a full cycle.
|Note(Sawtooth)||Note(Triangle)||EG Period Value|