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?)
"Woodwind fingerings."
(interpret-markup layout props
(markup  (

#:override #'(baseline-skip . 1.5) (

(make-column-markup (#:column ( #:line (#:override #'(font-size . -3)
#:natural)
#:line ( #:override #'(font-size . -2))  ))
((make-column-markup (#:column (   #:draw-circle #0.5 #0.1 $finger1
     #:draw-circle #0.5 #0.1 $finger2
     #:draw-circle #0.5 #0.1 $finger3
     #:draw-circle #0.5 #0.1 $finger4
     #:draw-circle #0.5 #0.1 $finger5
     #:draw-circle #0.5 #0.1 $finger6
#:override #'(font-size . -2)
))
)
)
))))


On 12 April 2010 18:49, Bernardo Barros <[email protected]> wrote:

> I made a try with this, but that's also wrong
>
>
> #(define-markup-command (fing layout props finger1 finger2 finger3 finger4
> finger5 finger6)
> (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 $finger1
>      #:draw-circle #0.5 #0.1 $finger2
>      #:draw-circle #0.5 #0.1 $finger3
>      #:draw-circle #0.5 #0.1 $finger4
>      #:draw-circle #0.5 #0.1 $finger5
>      #:draw-circle #0.5 #0.1 $finger6
> #:override #'(font-size . -2) " D#"
>  )
> )
> )
> )))
>
>
>
> On 12 April 2010 18:33, Bernardo Barros <[email protected]> wrote:
>
>> Hum. That means that I have to write it in scheme? Not possible for me
>> with the knowledge I have now. :-(
>>
>> But I think this is a good and general solution for the fingerings of all
>> woodwinds instruments. Maybe someone else want to implement it and a core
>> markup command.
>>
>>
>> On 12 April 2010 17:28, Mark Polesky <[email protected]> wrote:
>>
>>> Bernardo Barros wrote:
>>> > I tried but it didn't work.  Did I made a mistake here?
>>> > fing = #(define-music-function [...]
>>>
>>> Yes, the problem is that (if I understand correctly) you
>>> can't use a music function to define a markup command; you
>>> need to use a markup function:
>>>
>>> http://lilypond.org/doc/v2.13/Documentation/extending/markup-functions
>>>
>>> Let me know if anything in the documentation there is
>>> confusing.  Sorry if this is not the answer you wanted!
>>>
>>> - Mark
>>>
>>>
>>>
>>>
>>
>
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to