Short

Category: Keywords

Syntax:

Short:Type()



Returns

Type



Summary

A whole number from -32768 to 32767, in two bytes

View detailed documentation online



Example
Global samples:Short[4410]              ; 0.05 s of stereo sound at 44.1 kHz

Local i:Int
For i = 0 To 2204
    samples[i * 2] = 8000               ; left
    samples[i * 2 + 1] = -8000          ; right
Next

BambooBasic © 2026 Michael Denathorn