X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspan-arpeggio-engraver.cc;h=adb465b382f2426f1cfcdaa1005f9c49ecd71934;hb=8d1d9740b8d0ed9a2315909c7fdcccdf68894889;hp=4a81d5bdbab3bbacba2e8bd047606b5dc27f37d9;hpb=f3487cef38f45d65137225ece9f5c289569138bd;p=lilypond.git diff --git a/lily/span-arpeggio-engraver.cc b/lily/span-arpeggio-engraver.cc index 4a81d5bdba..adb465b382 100644 --- a/lily/span-arpeggio-engraver.cc +++ b/lily/span-arpeggio-engraver.cc @@ -1,11 +1,22 @@ /* - span-arpeggio-engraver.cc -- implement Span_arpeggio_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter - - (c) 2000--2006 Jan Nieuwenhuizen + Copyright (C) 2000--2011 Jan Nieuwenhuizen Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "engraver.hh" @@ -58,7 +69,10 @@ Span_arpeggio_engraver::process_acknowledged () */ if (!span_arpeggio_ && arpeggios_.size () > 1 && to_boolean (get_property ("connectArpeggios"))) - span_arpeggio_ = make_item ("Arpeggio", SCM_EOL); + { + span_arpeggio_ = make_item ("Arpeggio", SCM_EOL); + span_arpeggio_->set_property ("cross-staff", SCM_BOOL_T); + } } void @@ -89,6 +103,8 @@ Span_arpeggio_engraver::stop_translation_timestep () arpeggios_[j]->set_property ("transparent", SCM_BOOL_T); } + + span_arpeggio_->set_parent (arpeggios_[0]->get_parent (Y_AXIS), Y_AXIS); span_arpeggio_ = 0; } arpeggios_.clear (); @@ -98,7 +114,15 @@ Span_arpeggio_engraver::stop_translation_timestep () ADD_ACKNOWLEDGER (Span_arpeggio_engraver, arpeggio); ADD_TRANSLATOR (Span_arpeggio_engraver, - /* doc */ "", - /* create */ "Arpeggio", - /* read */ "connectArpeggios", - /* write */ ""); + /* doc */ + "Make arpeggios that span multiple staves.", + + /* create */ + "Arpeggio ", + + /* read */ + "connectArpeggios ", + + /* write */ + "" + );