opensubscriber
   Find in this group all groups
 
Unknown more information…

l : lilypond-user@gnu.org 24 June 2012 • 6:40PM -0400

Re: function does not replicate \markup?
by Thomas Morley

REPLY TO AUTHOR
 
REPLY TO GROUP




2012/6/24 anders@andi... <anders@andi...>:
> I want the first result. Where the
> number is located directly under the note or chord.

Try:

\version "2.14.2"

fN =
#(define-music-function (parser location fretp) (string?)
    (make-music
     'TextScriptEvent
     'direction
     -1
     'text
     (markup #:line (#:box (#:italic fretp)))))

{
        <c' e' g' >_\markup { \box \italic { 8 } }
        <c' e' g'>-\fN "8"
}

HTH,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu....
https://lists.gnu.org/mailman/listinfo/lilypond-user

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.