Generated Sound Commands
 
Overview of the generated-tone, PLAY-string, mix, waveform, envelope, and instrument commands.

Description

Generated sound commands synthesize audio directly through sfxlib. They are useful for simple tones, retro-style PLAY strings, game sound effects that do not need external files, and quick diagnostics that prove the sound path works.

Command pages

  • Sound: generated tone.
  • Tone: channel-specific tone.
  • Noise: generated noise.
  • Note: named musical note.
  • Play: BASIC PLAY strings.
  • Tempo: PLAY tempo.
  • Channel: default channel.
  • Octave: default octave.
  • Voice: default instrument.
  • Vol: compact master volume.
  • Volume: master or channel volume.
  • Balance: master stereo balance.
  • Pan: channel stereo pan.
  • Wave: waveform definition.
  • Envelope: ADSR envelope definition.
  • Instrument: instrument definition or assignment.

Example

tempo 140
octave 4
channel 0
volume 0.5
play "cdefgab"


See also