setReverb()
Purpose
Set audio reverberation
Description
Set the amount of reverberation on an audio channel
Syntax
setReverb( channel, delay, attenuation )
Arguments
channel audio channel from 0 to 15
delay amount of delay
attenuation amount of attenuation
Example
delay = 20000
attenuation = 0.1
tune = loadAudio( "David Silvera/music_funky_bar" )
playAudio( 0, tune, 1, 0.5, 1, -1 )
loop
clear()
c = controls( 0 )
delay += c.ly * 8
attenuation += c.ry / 8
if attenuation > 1 then
attenuation = 1
endIf
if attenuation < -1 then
attenuation = -1
endIf
setReverb( 0, delay, attenuation )
printAt( 0, 0, "Push left control stick up or down to control delay" )
printAt( 0, 1, "Push right control stick up or down to control attenuation" )
printAt( 0, 3, "Delay: " + delay + " milliseconds" )
printAt( 0, 4, "Attenuation multiplier: " + attenuation )
update()
repeat
Associated Commands
audioLength(), getChannelStatus(), loadAudio(), note2Freq(), playAudio(), playNote(), setClipper(), setFilter(), setPan(), setVolume(), startChannel(), stopChannel()