lilypond-learning: The revert command

 
 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.
 
      \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:
 
      c4 d
      \override NoteHead.color = #red
      e4 f |
      \override NoteHead.color = #green
      g4 a
      \revert NoteHead.color
      b4 c |
      [image src="" alt="[image of music]" text="image of music"]