Quoting Nicolas Sceaux <[EMAIL PROTECTED]>:
But there must be a cleaner way. Maybe that, if you don't mind repeating
the \layout block in longer examples:
\layout {
indent = 10\mm
raggedright = ##t
}
musicExample = #(def-music-function (parser location music) (ly:music?)
#{ \new Staff \with {
\remove Time_signature_engraver
\remove Bar_engraver
} $music #})
%% A short Example
\musicExample { c' d' e' f' }
%% A longer example
\score {
{ c' d' e' f' c' d' e' f' }
\layout { raggedright = ##f }
}
%% A short Example
\musicExample { c' d' e' f' }
nicolas
Why not redefine the Staff context once and for all and get rid of
all the Scheme functions?
\layout {
indent = 10\mm
raggedright = ##t
\context{
Staff
\remove Time_signature_engraver
\remove Bar_engraver
}
}
%% A short Example
{ c' d' e' f' }
%% A longer example
\score {
{ c' d' e' f' c' d' e' f' }
\layout { raggedright = ##f }
}
%% A short Example
{ c' d' e' f' }
/Mats
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user