lilypond-user
[Top][All Lists]
Advanced

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

Re: Woodwind Fingerings


From: Bernardo Barros
Subject: Re: Woodwind Fingerings
Date: Mon, 12 Apr 2010 16:36:58 -0300

I tried but it didn't work.

Did I made a mistake here?

fing = #(define-music-function (parcer location dedo1 dedo2 dedo3 dedo4 dedo5 dedo6)
(boolean? boolean? boolean? boolean? boolean? boolean?)
#{ 
\markup { \override #'(baseline-skip . 1.5) { \halign #1 

\column { \line {" " \override #'(font-size . -3) \natural} " " " " 
\line { \override #'(font-size . -2) "g# "}  }
\column {   \draw-circle #0.5 #0.1 $dedo1
    \draw-circle #0.5 #0.1 $dedo2
    \draw-circle #0.5 #0.1 $dedo3
    \draw-circle #0.5 #0.1 $dedo4
    \draw-circle #0.5 #0.1 $dedo5
    \draw-circle #0.5 #0.1 $dedo6
\override #'(font-size . -2) " D#" 
}
}
#})


And then:


e''
c' \fing ##t ##t ##t ##t ##t ##t
cis'

On 12 April 2010 12:12, Mark Polesky <address@hidden> wrote:
Bernardo Barros wrote:
> Can I use a boolean as an argument?
>
> The solution I got is this. I would need a Boolean, but
> the manual says I can't use it.

You should be able to use a boolean type-check in a music
function.  You should be able to use any type-check that
appears in "type-p-name-alist" in scm/lily.scm:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=scm/lily.scm#l421

(the documentation should be updated to mention this)

- Mark






reply via email to

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