Skip to content

setKeySignature()

Set the score's key signature.

Parameters

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

score.setKeySignature(signature)
Parameter Type Default Description
signature int required The key signature: 0 is the key of C, a positive number counts sharps, and a negative number counts flats.