lilypond-user
[Top][All Lists]
Advanced

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

Re: Where are Lilypond Scheme functions documented?


From: Urs Liska
Subject: Re: Where are Lilypond Scheme functions documented?
Date: Fri, 30 Jan 2015 22:11:45 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 30.01.2015 um 22:06 schrieb David Nalesnik:


On Fri, Jan 30, 2015 at 2:27 PM, Peter Gentry <address@hidden> wrote:

>Date: Thu, 29 Jan 2015 22:16:12 +0100
>From: "address@hidden" <address@hidden>
>To: lilypond-user <address@hidden>
>Subject: Where are Lilypond Scheme functions documented?
>Message-ID: <address@hidden>
>Content-Type: text/plain; charset=utf-8; format=flowed
>
Have a look at music-scheme.cc in the Lily source files

LY_DEFINE (ly_music_property, "ly:music-property",
           2, 1, 0, (SCM mus, SCM sym, SCM val),
           "Return the value for property @var{sym} of music _expression_"
           " @var{mus}.  If no value is found, return @var{val} or"
           " @code{'()} if @var{val} is not specified.")

HTH but don't ask me to explain it!


This is part of the definition of the function.  The string above is used to automatically generate the documentation in the Internals Reference.   Compare the above what what we find at http://lilypond.org/doc/v2.18/Documentation/internals/scheme-functions:

Function: ly:music-property mus sym val

Return the value for property sym of music _expression_ mus. If no value is found, return val or '() if val is not specified.


I has to be said that this particular piece of documentation is not really helpful when you want to get a better understanding of the internals. Maybe it is helpful as a cheat sheet when you already know your way around it ...

Urs


--David




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


reply via email to

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