Am Montag, 21. Januar 2008 schrieb James E. Bailey:
> Yeah, the forbid_line_engraver did the trick. I shortened it a bit because
> the computer segmentation faulted at the original lengths, but it works.
> \new Staff \with {
> \remove "Time_signature_engraver"
> \remove "Bar_engraver"
> } \new Voice \with {\remove "Forbid_line_break_engraver"}
> {
You know that if you want to add/remove engravers from all staves or voices in
a piece, you don't have to add the \with {...} to every staff/voice...
Rather, you can simply remove the engravers from the \Voice, \Staff or
\RhythmicStaff contexts altogether in a \layout section. See the attached
file for your example, where I only moved the \remove commands to the \layout
section.
This makes lilypond files much easier to read (and easier to write, since you
don't have to repeat the same commands for all staves).
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\layout {
\context {
\Voice
\remove "Forbid_line_break_engraver"
}
\context {
\Staff
\remove "Time_signature_engraver"
\remove "Bar_engraver"
}
\context {
\RhythmicStaff
\remove "Time_signature_engraver"
\remove "Bar_engraver"
}
}
\relative c'' { <<
\new Staff
\new Voice {
\time 1/8
\cadenzaOn
\set Staff.timeSignatureFraction = #'(51 . 8)
\compressMusic #'(379 . 51) { \repeat unfold 51 {b8\noBeam \bar ""} }
}
\new Staff
\new Voice {
\time 1/8
\cadenzaOn
\set Staff.timeSignatureFraction = #'(63 . 8)
\compressMusic #'(379 . 63) { \repeat unfold 63 {b8\noBeam \bar ""} }
}
\new RhythmicStaff
\new Voice {
\time 1/8
\cadenzaOn
\set Staff.timeSignatureFraction = #'(83 . 8)
\compressMusic #'(379 . 83) { \repeat unfold 83 {b8\noBeam \bar ""} }
}
\new RhythmicStaff
\new Voice {
\time 1/8
\cadenzaOn
\repeat unfold 379 {b8\noBeam \bar ""}
}
>>}
\version "2.10.33"_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user