gaGetMidiVelocity()

Syntax

gaGetMidiVelocity()

Example

function draw()
    gaBackground(0.0,1.0)

    ofSetColor(255)
    ofRect(0,0,OUTPUT_W*(gaGetMidiVelocity()/127),100)
end

Description

A reference to the last MIDI key velocity, in MIDI range 0-127.

Returns

«Int, The last MIDI note touched velocity