lilypond-user
[Top][All Lists]
Advanced

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

Re: Scheme function


From: Víctor
Subject: Re: Scheme function
Date: Wed, 10 Jun 2015 10:49:25 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Thank you very much for your answer and the documentation, I looked for scheme tutorials but only found very large books which I don't have time to read right now. I'll take a look to lilypond's scheme tutorial right away.

Thanks again.
Víctor

El 10/06/15 a las 10:34, Simon Albrecht escibió:
Hello Víctor,

see attached.
For an introduction into scheme tailored on Lilypond see the Lilypond Extending Manual <http://lilypond.org/doc/v2.18/Documentation/extending/index.html> and for reference of the used functions such as if, not, or, etc. the Scheme R5RS standard <http://www.schemers.org/Documents/Standards/R5RS/> (Disclaimer: that one is challenging at the beginning).

HTH, Simon

Am 10.06.2015 um 16:17 schrieb Víctor:
Hi all:

solfa =
#(define-music-function
    (parser location framed number note)
    (string? string? string?)
  #{
    ^\markup{
      \box
      \pad-to-box #'(0 . 0) #'(0 . 2.2){ #framed }
      #number :
      \italic #note
    }
  #})

\relative c' { c4^\solfa "C" "I" "do" }

I need this function to stop drawing the box when first argument is "" or stop printing the ":" when second or third argument are "". I'm very new to Scheme and any help is very much appreciated.

Regards,
Víctor.

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