RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*QSound

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *QSound

*QSound

Use

This *Command generates a sound after a given delay.

Syntax

*QSound channel amplitude pitch duration beats

Parameters

channel Channel number (1 – 8)
amplitude Linear scale: 0 silent – &FFF1 loud, or;
Logarithmic scale: &100 silent – &17F loud (a change of 16 will halve/double the amplitude)
pitch Pitch: 0 – 255. Each unit represents a quarter of a semitone. Value of 53 is middle C, or
256 to 32767 (&100 to &7FF) where top 3 bits specify octave, and bottom 12 bits specify fraction of octave. Value of 16384 (&4000) is middle C
duration Duration: 0 to 32767 (&0 – &7FFF) in twentieths of a second. Value of 255 gives a note of infinite duration
beats Beats delay before sound is generated. Based on the tempo set by *Tempo

Notes

To generate a sound after without delay use *Sound.

See also

  • Sound_QSchedule?
  • *Sound
  • *Tempo
Revised on January 22, 2010 23:13:16 by Andrew Hodgkinson (6) (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *Sound, *Tempo, *Tuning

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys