CALL SOUT
This page was last modified 21:52, 21 April 2021 by Mars2000you.

This instruction is available in CompileBGM Basic and Yaesu Basic.

Contents

CALL SOUT in CompileBGM Basic

Effect

Plays a specific background music or sound effect from a file in Compile format.

Syntax

CALL SOUT (<Music/SoundNumber>[, <Parameter2>])

Parameters

<Music/SoundNumber> is a number between 0 and 255.

If you specify a number that does not correspond to a music or a sound effect, you will simply hear nothing!

<Parameter2> is optional, it is a number between 0 and 255, it seems that it does not make any difference.

Example

10 BLOAD"MUSIC.OBJ",R
20 _PSGINT: _SOUT(2,0)
30 A$=INPUT$(1)
40 _CLRSD

Note: To use MSX-AUDIO instead of MSX-MUSIC, you need to add the following line (it will work in most cases):

5 POKE -54,35

Related to

CALL CLRSD, CALL MGSND, CALL PSGINT

Compatibility

CompileBGM BASIC


CALL SOUT in Yaesu Basic

Effect

Sends a string of characters.

Syntax

CALL SOUT (<String>)

Parameter

<String> is a string of characters between double quotes ("). It can include non-printable characters and be replaced by a string variable (also named as alphanumeric variable).

Examples

CALL SOUT ("Hello")
A$="Hello": CALL SOUT (A$)

Compatibility

Yaesu BASIC