2012/8/2 and...@andis59.se <and...@andis59.se>: > I have made a small function that allows me to put out the fret number (of a > guitar) below a note. My problem is that the text is positioned below the > note at a specific distance. Which means that if the note is high on the > staff the text will be high and if the note is low on the staff it will be > lower. > > Is there someway of setting that I want all text the same distance from the > staff, not from the note?
How about: \version "2.14.2" fN = #(define-music-function (parser location fretp) (string?) (let ((m (make-music 'TextScriptEvent 'text fretp))) (set! (ly:music-property m 'tweaks) (acons 'staff-padding 4 (ly:music-property m 'tweaks))) m)) %% end of function fN \relative c' { c4-\fN "8" d e c'-\fN "10" } -Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user