gaGetFFT(int,int)

Syntax

gaGetFFT(int,int)

Example

function setup()
    
end

function update()
    
end

function draw()
    gaBackground(0.0,0.3)

    ofSetColor(255)
    ofNoFill()    
    for i=0, BUFFER_SIZE-1 do
        ofRect(i*(OUTPUT_W/BUFFER_SIZE*2),OUTPUT_H,OUTPUT_W/BUFFER_SIZE*2,-OUTPUT_H*gaGetFFT(0,i))
    end
end

Description

Returns the N value from raw FFT analysis in specified audio input channel. The FFT values range depends on the BUFFER SIZE you choose frommain menu GAmuza/Preferences/Audio Streaming tab; the global static variable available for retrieve the buffer size is BUFFER_SIZE

Parameters

int,int

Returns

«Float, The energy on the specified position from the raw FFT analysis performed on the specified channel. Normalized 0.0 - 1.0 range