Prev: 49191 Up: Map Next: 49215
49200: Play Melody
Plays a short melody from a list of pitches. It is not used.
PlayMelody 49200 LD HL,49215 Point HL at the melody.
PlayMelody_Loop 49203 LD A,(HL) Fetch a pitch.
49204 INC HL Move on to the next one.
49205 AND A Return if it is zero, which is the end of the melody.
49206 RET Z
49207 LD B,A Use it as the pitch.
49208 LD C,8 Each tone is made of 8 cycles.
49210 CALL PlayWaveSequence Make the tone using PlayWaveSequence.
49213 JR PlayMelody_Loop Loop back for the next one.
Prev: 49191 Up: Map Next: 49215