The OpenD Programming Language

AudioPcmOutThreadImplementation.beep

Makes some old-school style sound effects. Play with them to see what they actually sound like.

class AudioPcmOutThreadImplementation
@scriptable
void
beep
(
int freq = 900
,
int dur = 150
,,
int balance = 50
)

Parameters

freq int

frequency of the wave in hertz

dur int

duration in milliseconds

volume int

amplitude of the wave, between 0 and 100

balance int

stereo balance. 50 = both speakers equally, 0 = all to the left, none to the right, 100 = all to the right, none to the left.

Meta

History

The balance argument was added on December 13, 2021 (dub v10.5)