On 12 April 2010 22:57, Bernardo Barros <[email protected]> wrote:
> nor this one. If someone made it works tell me.
>
> #(define-markup-command (fing layout props finger1 finger2 finger3 finger4
> finger5 finger6)
> (boolean? boolean? boolean? boolean? boolean? boolean?)
You'll have to put the booleans in a list, since you're passing too
many arguments: LilyPond will only accept three scheme types in a row
for a markup command.
#(define-markup-command (fing layout props fingers)
(list?)
If you pass your markup through \displayMusic, it'll give you the
scheme version which you can then use for the markup command:
(markup
#:line
(#:override
(baseline-skip . 1.5)
(#:halign
1
(#:column
(#:line
(#:simple
" "
#:override
(font-size . -3)
(#:natural))
#:simple
" "
#:simple
" "
#:line
(#:override (font-size . -2) "g# "))))
#:override
(baseline-skip . 1.5)
(#:column
(#:draw-circle
0.5
0.1
#t
#:draw-circle
0.5
0.1
#t
#:draw-circle
0.5
0.1
#t
#:draw-circle
0.5
0.1
#t
#:draw-circle
0.5
0.1
#t
#:draw-circle
0.5
0.1
#t
#:override
(font-size . -2)
" D#"))))
You just need to replace the `#t' in the draw-circle commands with the
relevant entry from the list,
(first fingers)
...
(sixth fingers)
and ensure the #:override pairs are quoted properly,
#:override '(font-size . -2)
Regards,
Neil
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user