Skip to content
4am edited this page Jul 10, 2020 · 7 revisions

Music sequences can be translated from standard MIDI files into a format playable on the built-in speaker or MockingBoard if available. A background function can be called on a timely basis for simulated multi-tasking.

Compatibility: II

Usage: include "inc/sndseq.plh"

Functions:

spkrTone(pitch, duration)#0
spkrPWM(sample, speed, len)#0
musicPlay(track, rept)#0
musicStop#0
musicSequence(yield, backgroundProc)#0
musicGetKey(yield, backgroundProc)#1

Source Code: sndseq.pla

Sample Source: playseq.pla