Acorn MOS - Sound

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:

    Sophocles long ago
    Heard it on the Aegaean, and it brought
    Into his mind the turbid ebb and flow
    Of human misery; we
    Find also in the sound a thought,
    Hearing it by this distant northern sea.
    Matthew Arnold (1822–1888)

    There was a sound of revelry by night,
    And Belgium’s capital had gathered then
    Her beauty and her chivalry, and bright
    The lamps shone o’er fair women and brave men;
    A thousand hearts beat happily; and when
    Music arose with its voluptuous swell,
    Soft eyes looked love to eyes which spake again,
    And all went merry as a marriage-bell;
    But hush! hark! a deep sound strikes like a rising knell!
    George Gordon Noel Byron (1788–1824)

    An old pond—
    a frog tumbles in—
    the sound of water.
    Matsuo Basho (1644–1694)