AudioPcmOutThreadImplementation.boop

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

class AudioPcmOutThreadImplementation
@scriptable
void
boop
(
float attack = 8
,
int freqBase = 500
,
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.

attack float

a parameter to the change of frequency

freqBase int

the base frequency in the sound effect algorithm

Meta

History

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