← B77C Play the key-press blip Map B78F → Play the second-ball spawn sound
B787: Play one run of shorter and shorter periods
Emits a run of square-wave cycles through the sound primitive. The period shortens by one each cycle.
Input
D first pitch period, which shortens by one each cycle
C number of cycles to play; 0 plays 256
play_pitch_sweep B787 CALL sound_blip
Each pass plays one cycle at the current period, then steps the period down and counts the cycle off.
B78A DEC D Raise the pitch one step and count this cycle off.
B78B DEC C
B78C JR NZ,play_pitch_sweep
B78E RET
← B77C Play the key-press blip Map B78F → Play the second-ball spawn sound
Fork me on GitHub