SsUtChangePitch

Changes the pitch

short SsUtChangePitch (
        short voice,
        short vabId,
        short prog,
        short old_note,
        short old_fine,
        short new_note,
        short new_fine
)

Arguments

voice Voice number
vabId VAB ID
prog Program number
old_note Note number passed to SsUtKeyOn()
old_fine Fine pitch passed to SsUtKeyOn() (note number)
new_note Updated note number
new_fine Updated pitch

Return Value

0 is returned if the pitch was successfully changed, otherwise -1 is returned.

Explanation

The pitch of the voice keyed on by SsUtKeyOn() is changed according to the values specified by new_note and new_fine.

See Also

SsUtPitchBend()