lilypond-user
[Top][All Lists]
Advanced

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

Re: Function to add a "-" before finger number


From: James Bailey
Subject: Re: Function to add a "-" before finger number
Date: Tue, 3 Aug 2010 20:07:05 +0200

you can left, center, or right align the markup. I'm pretty sure that the 
default is to center-align it.
On Aug 3, 2010, at 6:02 PM, Antheo wrote:

> 
> great i added the \finger command to use the same font as the regular
> fingering.
> shiftII  = \markup \finger \concat {\char ##x2012 2} 
> 
> Now the dash moves the number way too far on the right. I tried to move it
> back to the left by adding an override but i got an error
> 
> shiftIII = \once \override TextScript #'extra-offset = #'(-1 . 0) \markup
> \finger \concat {\char ##x2012 3}
> 
> 
> 
> James Bailey-4 wrote:
>> 
>> Is that them em or en dash? On a macintosh, I would just type them
>> directly, either – or —, if you absolutely have to use the unicode, I
>> would do it:
>> 
>> \version "2.12.3"
>> 
>> shiftTwo=\markup \finger "–2"
>> shiftThree = \markup \concat {\char ##x2012 3} 
>> 
>> { a4-\shiftTwo g-\shiftThree}
>> 
>> 
>> 
>> On Aug 3, 2010, at 3:58 PM, Antheo wrote:
>> 
>>> 
>>> 
>>> James Bailey-4 wrote:
>>>> 
>>>> I realize it's not exactly what you want, but what about:
>>>> \version "2.12.3"
>>>> shiftTwo=\markup \finger "-2"
>>>> { c''4-\shiftTwo }
>>>> 
>>> 
>>> Yep not exactly but could be a workaround. I'd like to replace the short
>>> "-"
>>> by a middle one like with the character \char ##x2012. I tried this 
>>> shiftIV=\markup \finger "\char ##x2012 4"
>>> but that printed the command and not the character.
>>> 
>>> Any idea how to make the function more generic? I tried 
>>> 
>>> 
>>> sf = #(define-music-function (parser location finger) ( integer? ) #{
>>>   \mark \markup { \tiny \concat {\char ##x2012 $finger }}
>>> #})
>>> 
>>> {c''4^\sf#3 d''4^\sf#4}
>>> 
>>> but it failed.
>>> 
>>> 
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29335731.html
>>> Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
>>> 
>>> 
>>> _______________________________________________
>>> lilypond-user mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>> 
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Function-to-add-a-%22-%22-before-finger-number-tp29331036p29337139.html
> Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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