setFrequency()
Purpose
Set audio frequency
Description
Set the frequency on an audio channel
Syntax
setFrequency( channel, frequency )
Arguments
channel audio channel from 0 to 15
frequency frequency of the sound
Example
freq = 432
playNote( 0, 1, freq, 1, 0, 0.5 )
loop
clear()
c = controls( 0 )
freq += c.ly
freq = clamp( freq, 0, 20000 )
setFrequency( 0, freq )
printAt( 0, 0, "Move the left control stick up and down to control frequency of the note" )
printAt( 0, 2, "Frequency: " + freq )
update()
repeat
Associated Commands
audioLength(), getChannelStatus(), loadAudio(), note2Freq(), playAudio(), playNote(), setClipper(), setFilter(), setPan(), setVolume(), startChannel(), stopChannel()