Defines a generated waveform slot.
Syntax
Wave id, waveform
Description
WAVE defines the raw shape used by a generated instrument. It does not play sound by itself. Instead, it stores a waveform in a numbered slot so INSTRUMENT can use it later.
The waveform shape changes the tone color. Sine is smooth and plain, square is buzzy and retro, triangle is softer than square, saw is bright and sharp, and noise is useful for percussion and effects.
The currently supported waveform values are 0 for sine, 1 for square, 2 for triangle, 3 for saw, and 4 for noise.
Example
wave 1, 0
envelope 1, 0.01, 0.10, 0.50, 0.20
instrument 1, 1, 1
voice 1
Platform Differences
- WAVE defines part of an instrument; use SOUND, NOTE, PLAY, or TONE to actually hear something.
Differences from QB
`t- New to FreeBASIC.
See also