Skip to content

getKeySignature()

Return the score's key signature.

Parameters

Once an object score has been created, you can use the following function:

score.getKeySignature()

Returns

return keySignature

Value Type Description
keySignature int The key signature: 0 is the key of C, a positive number counts sharps, and a negative number counts flats.