Showing changes from revision #3 to #4:
Added | Removed | Changed
This *Command generates a sound with no delay.
*sSound channel amplitude pitch duration
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 |
To generate a sound after a specified amount of time use *QSound.