lilypond-user
[Top][All Lists]
Advanced

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

Scheme function


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

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 apreciated.

Regards,
Víctor.



reply via email to

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