Fandom

Petit Computer Wiki

BEEP (Command)

914pages on
this wiki
Add New Page
Comments2 Share

V1Edit

Indications are, BEEP in SmileBasic V1 is identical to that in V2.

V2Edit

BEEP is a command which plays a simple sound. It can take up to 4 numerical parameters, each of which gets rounded down if it is not an integer.

The first parameter is 0 by default. It represents what kind of sound is generated by the command. See the List of Preset Sound Effects.

The second parameter is the pitch, and is 0 by default. The sound generated can be lowered in pitch by up to 2 octaves (represented by a value of -8192), or raised in pitch by up to 2 octaves (represented by a value of 8192).

The third parameter is the volume, and is 127 by default. 0 represents no sound, and 127 represents the loudest possible.

The fourth parameter represents the left-right balance, and is 64 by default. A value of 0 means the sound will play mostly on the left speaker, and a value of 127 means the sound will play mostly on the right speaker. 64 represents equal volume on both speakers.

Thus, the command BEEP is equivalent to BEEP 0,0,127,64.

V3Edit

No information on SmileBasic V3.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.