The OpenD Programming Language

AudioPcmOutThreadImplementation.noise

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

class AudioPcmOutThreadImplementation
@scriptable
void
noise
(
int dur = 150
,,
int balance = 50
)

Parameters

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)