lilypond-user
[Top][All Lists]
Advanced

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

Re: "functions" in lilypond


From: Mats Bengtsson
Subject: Re: "functions" in lilypond
Date: Mon, 06 Oct 2003 17:19:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

More related to your question is the example
http://lilypond.org/doc/v1.8/input/test/out-www/collated-files.html#music-box.ly

   Mats

José Luis Cruz wrote:
I give you the response that Matt sent to me, because i think applies
well:


If you want to do these more advanced tricks, I'm afraid you have to
learn the basics of the Scheme language and use the Scheme interface
to Lilypond, see http://lilypond.org/doc/v1.8/Documentation/user/out-www/lilypond-internals/Scheme-functions.html
There are some examples in the "Tips and tricks" and "Regression
tests" documents.

   Mats


Look for example the code of molecule-hacking.ly available from the
regression tests page. There is a function.


José Luis



A 06/10/03 08:19:06
Kieren Richard MacMillan <address@hidden> escribió:


Hello, all --

I know you can set up predefined "variables" containing a bunch of different directives (including notes, tweaks, markings, etc.), but can you set up "functions" where the "parameters" can be decided at "runtime"?

For example, can I set up a "tuplet within a quadruplet, with slurs between notes 2 and 4, a phrasing slur over the whole thing, and a crescendo on the last two notes" and supply the specific pitches
only when I actually use the "stamp":

    \myCoolNoteSetDefinition {bes a c b cis cisis d}

Thanks!
Kieren.





------------------------------------------------------------------------

_______________________________________________
Lilypond-user mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        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]