Sound
Sound support is done with another OS call, OSWORD, which handles a variety of tasks enumerated via a task code placed into the accumulator. All OSWORD calls bear a parameter block used to send and receive multiple data, passed into the X and Y registers. There are four buffered sound channels -- three melodic and one noise -- based on the sound chip found in the BBC Micro. There is only one waveform for melodic channels; the supported note parameters are pitch, duration, and amplitude. The amplitude parameter is normally negative; positive values select an envelope (a predefined temporal variation) to apply to the note.
Other meta parameters (passed through the channel code when using the SOUND command in BASIC) include flush (the buffer is cleared and the channel silenced before the note is played), synchronise count (as soon as the same synch count is received for that many channels, all the synchronised notes are played together), and control over the Speech system upgrade where fitted.
Read more about this topic: Acorn MOS
Famous quotes containing the word sound:
“We can say that the sound is the primary object of the act of hearing, and that the act of hearing itself is the secondary object.”
—Franz Clemens Brentano (18381917)
“He seems determined to make a trumpet sound like a tin whistle.”
—Aneurin Bevan (18971960)
“This is of the loonI do not mean its laugh, but its looning,is a long-drawn call, as it were, sometimes singularly human to my ear,hoo-hoo-ooooo, like the hallooing of a man on a very high key, having thrown his voice into his head. I have heard a sound exactly like it when breathing heavily through my own nostrils, half awake at ten at night, suggesting my affinity to the loon; as if its language were but a dialect of my own, after all.”
—Henry David Thoreau (18171862)