ga.monoWave()

Name

ga.monoWave()

Examples

function setup()
    ga.monoWave(GA_RECT,190.0,0)
    ga.waveVolume(0,0.9)    
end

function draw()
    ga.background(0.0,1.0)
end

Description

Create a mono-channel wave oscillator. Parameters available for wave type are GA_SINE, GA_COSINE, GA_SAW, GA_TRI, GA_RECT, GA_NOISE, GA_PINK, GA_BROWN, GA_PHASOR, GA_PULSE.
Be sure to activate the audio module and select an audio device with output capabilities in the settingManager in order to have this function working.

Syntax

ga.monoWave(type,frequency,channel)

Parameters

typethe oscillator wave type
frequencynumber: every audible (or not) frequency
channelany available channel

Returns

None