SsUtKeyOn

Keys on voice

short SsUtKeyOn (
        short vabId,
        short prog,
        short tone,
        short note,
        short fine,
        short voll,
        short volr
)

Arguments

vabId VAB ID
prog Program number
tone Tone number
note Pitch specification (note number) in half tones
fine Fine pitch (100/127 cents)
voll Volume (left)
volr Volume (right)

Return Value

If the function is successful, the allocated voice number (0 to 23) is returned.
-1 is returned if the key on failed to complete.

Explanation

The voice specified by the vabid, prog, and other arguments is keyed on at the specified pitch and volume.
The allocated voice number is returned.
note specifies the actual key that will be played and represents one of the 128 keys on the piano.
fine specifies the pitch of that note.

See Also

SsUtKeyOff(), SsUtAllKeyOff()