[ << Tweaking output ] | [Top][Contents][Index] | [ Templates >> ] |
[ < The \override command ] | [ Up : Tweaking methods ] | [ The \once prefix > ] |
The \revert
command
Once overridden, the property retains its new value until it is
overridden again or a \revert
command is encountered.
The \revert
command has the following syntax and causes
the value of the property to revert to its original default
value; note, not its previous value if several \override
commands have been issued.2
\revert Context.LayoutObject.layout-property
Again, just like Context in the \override
command,
Context is often not needed. It will be omitted
in many of the following examples. Here we revert the color
of the note head to the default value for the final two notes:
\relative { c'4 d \override NoteHead.color = "red" e4 f | \override NoteHead.color = "green" g4 a \revert NoteHead.color b4 c | }
Footnotes
(2)
The behaviour of
\revert
can be changed by using \temporary
\override
; see Intermediate substitution functions.
[ << Tweaking output ] | [Top][Contents][Index] | [ Templates >> ] |
[ < The \override command ] | [ Up : Tweaking methods ] | [ The \once prefix > ] |