Skip to main content

Audio

These commands allow to produce both synthesized music as well as pre-recorded audio.

ENVELOPE

  • Arguments: INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER, INTEGER
  • Minimum arguments: 1

If only a single argument is provided: set the default instrument for the music player. If more parameters are provided: modify an instrument with the given number

SYNTH% [, WAVEFORM%, ATTACK%, DECAY%, SUSTAIN%, RELEASE%, PULSE_WIDTH% [, TREMOLO%, VIBRATO%]]

Arguments use range of 0 to 255, apart from PULSE_WIDTH% which is 0 to 4095.

VOLUME

  • Arguments: INTEGER
  • Minimum arguments: 1

Set volume of the music player