User Tools

Site Tools


ugbasic:user:kw:boom
Translations of this page:


ugBASIC User Manual

BOOM

SYNTAX

   BOOM [duration [MS]] [ON channel]

PURPOSE

This command makes the computer emit an explosion-like sound. It is possible to indicate the duration of sound effect and on which voices the system should emit the sound. If omitted, it will be issued on all.

Note that the execution of the effect can be synchronous or asynchronous, depending on the target. Synchronous execution means that the program will wait for the effect to complete before returning; on the contrary, asynchronous execution requires the program to continue executing subsequent instructions.

The behavior can be modified by the DEFINE AUDIO SYNC and DEFINE AUDIO ASYNC pragmas, which however may not be available for the target in question.

EXAMPLE

  BOOM 1000 MS
  BOOM 100 MS ON %001

ABBREVIATION

 Boo

AVAILABLE ON

  • Commodore VIC-20
  • Atari (400/800)
  • Atari XL/XE
  • Commodore 128 (MOS 8502)
  • Commodore 64
  • ColecoVision
  • Commodore PLUS/4
  • VG-5000
  • Amstrad CPC 664
  • MSX

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY