X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspan-arpeggio-engraver.cc;h=adb465b382f2426f1cfcdaa1005f9c49ecd71934;hb=0052082fd05c21b95cdd5f20c2a11d14e3ce2d1f;hp=a465b7da1141551eb63a811baed536d274a03cfc;hpb=474c8729dc274a30558102a015a01fa5882673db;p=lilypond.git diff --git a/lily/span-arpeggio-engraver.cc b/lily/span-arpeggio-engraver.cc index a465b7da11..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--2007 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 */ + "" + );