cancel-location data type
The cancel-location type is used to indicate where a key signature cancellation appears relative to a new key signature: to the left, to the right, or before the barline and to the left. It is left if not specified. For mid-measure key elements, a cancel-location of before-barline should be treated like a cancel-location of left.
Base type: string
Allowed values
| left | ![]() |
|---|---|
| right | ![]() |
| before-barline | ![]() |
Where is this type used?
<cancel> — "location" attribute


