|
From: | Mats Bengtsson |
Subject: | Re: Scheme error - what am I doing wrong? |
Date: | Sun, 09 Oct 2005 20:37:07 +0200 |
User-agent: | Internet Messaging Program (IMP) H3 (4.0.3) |
Quoting Nicolas Sceaux <address@hidden>:
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
[Prev in Thread] | Current Thread | [Next in Thread] |