lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Action of \unset


From: Mats Bengtsson
Subject: Re: Action of \unset
Date: Tue, 29 Apr 2008 21:11:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

As far as I can see, it removes any settings of the property
in the specified context (i.e. in the current context by default).
The reason that this often means that the setting is reverted
to the default value is either
1. that the default is that the property is unset and that LilyPond
   makes some suitable choice if the property is unset.
2. that the default setting is done at the Score level (or
   at least higher up in the context hierarchy).

The following example illustrates alternative 2:
\relative{
\set Staff.fontSize = #3
c d e f
\set Voice.fontSize = #1
c d e f
\unset Voice.fontSize
c d e f
\unset Staff.fontSize
c d e f
}

\relative{
\set fontSize = #3
c d e f
\set fontSize = #1
c d e f
\unset fontSize
c d e f
\unset fontSize
c d e f
}


For a long time, I had the impression that \set and \unset did
push and pop on a stack (if you know about these computer
science concepts), but apparently I was wrong.

I'm not sure how to best explain these things, at least not in a
Learning Manual.

  /Mats

Trevor Daniels wrote:

The description of \unset in the Learning Manual is currently incorrect, and I would like to replace that with an accurate description of its action, which seems to depend to some extent on the type of context property which is being unset. Could someone please summarise exactly what \unset does. Thanks.

Trevor


_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel



--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]