\version "2.14.2" %% up to "2.19.32" %% early 2.19.-versions may fail, though %%%% Get and print info about spanners with line-(spanner-)interface and %%%% properties of line-(spanner-)interface and ottava-bracket-interface %%{ %% Send the info to a file, called .log: #(define print-to-file? #t) %% To display in terminal uncomment %#(set! print-to-file? #f) #(define port (if print-to-file? (let* ((output-name (if (string-ci\startTextSpan\startTrillSpan\sustainOn b\glissando \break \time 2/2 \clef alto \key cis \major c d\!\stopTextSpan\stopTrillSpan\sustainOff } \ottava #0 \key c \major R1 \ottava #-2 \times 1/1 { a2\>\startTextSpan\startTrillSpan\sustainOn b\glissando \break c d\!\stopTextSpan\stopTrillSpan\sustainOff } \ottava #0 } \score { \new StaffGroup << \new Staff { c''1\cresc c''2 c''2\! R1 c''1\cresc c''2 c''2\! } \new Staff \mus \new Staff \repeat unfold 5 R1 >> %% Using old #'-syntax to make it compile with older versions %% tested with 2.14.2 uo to 2.19.32 \layout { \context { \Staff \override OttavaBracket #'color = #blue \override PianoPedalBracket #'color = #blue pedalSustainStyle = #'bracket } \context { \Voice \override DynamicTextSpanner #'color = #red \override Glissando #'color = #red \override TextSpanner #'color = #red \override TrillSpanner #'color = #red \override Hairpin #'color = #blue \override TupletBracket #'color = #blue \override TextSpanner #'style = #'solid \override DynamicTextSpanner #'style = #'solid \override TextSpanner #'bound-details #'left #'text = #"tp" \override Glissando #'breakable = ##t } } \header { title = #(format #f "~a" (lilypond-version)) piece = \markup \column { "TESTING SPANNERS" "from top to bottom:" DynamicTextSpanner TextSpanner TrillSpanner TupletBracket Glissando Hairpin OttavaBracket PianoPedalBracket } opus = \markup \column { "Spanners" "- with line-spanner-interface are colored red" "- with line-interface but without line-spanner-interface are colored blue" } } } \paper { print-all-headers = ##t } \pointAndClickOff