gaGetMidiPitch()

Syntax

gaGetMidiPitch()

Example

function draw()
    gaBackground(0.0,0.1)

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

Description

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

Returns

«Int, The last MIDI note touched pitch