* lily/paper-score.cc (process): run get_paper_systems() only once.
2005-04-18 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * input/regression/line-arrows.ly: new file.
+
* lily/paper-score.cc (process): run get_paper_systems() only once.
* lily/line-interface.cc (make_arrow): new function. Patch by
--- /dev/null
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\version "2.5.18"
+
+%% demonstration of line arrows
+%% By Jonatan Liljedahl <http://kymatica.com>
+
+\relative c'' {
+ %% Arrow between two texts
+ \override TextSpanner #'edge-text = #'("foo" . "bar")
+ \override TextSpanner #'dash-fraction = #'()
+ \override TextSpanner #'style = #'line
+ \override TextSpanner #'arrow = ##t
+
+ %% Default arrow size
+% \override TextSpanner #'arrow-length = #1.3
+% \override TextSpanner #'arrow-width = #0.5
+
+ %% We can put arrows to a glissando line
+ \override Glissando #'arrow = ##t
+
+ a8\startTextSpan gis8\< a2 b4\glissando
+ c,4 g'\! c\stopTextSpan c
+}
}
else if (Paper_score *pscore = dynamic_cast<Paper_score *> (output))
{
- SCM systems = pscore->get_systems ();
+ SCM systems = pscore->get_paper_systems ();
if (ly_c_module_p (score->header_))
paper_book->add_score (score->header_);
paper_book->add_score (systems);
void typeset_system (System *);
Array<Column_x_positions> calc_breaking ();
- SCM get_systems () const;
+ SCM get_paper_systems () const;
protected:
virtual void process ();
virtual void derived_mark () const;
*/
#include "paper-book.hh"
-
+#include "paper-score.hh"
#include "main.hh"
#include "output-def.hh"
#include "paper-score.hh"
if (header_0_ == SCM_EOL)
header_0_ = header;
}
- else if (scm_is_vector (scm_car (s)))
+ else if (Paper_score *pscore
+ = dynamic_cast<Paper_score *> (unsmob_music_output (scm_car (s))))
{
+
Stencil title = score_title (header);
if (title.is_empty ())
title = score_title (header_);
}
header = SCM_EOL;
- SCM system_list = scm_vector_to_list (scm_car (s));
+
+ SCM system_list = scm_vector_to_list (pscore->get_paper_systems ());
system_list = scm_reverse (system_list);
systems_ = scm_append (scm_list_2 (system_list, systems_));
}
SCM
-Paper_score::get_systems () const
+Paper_score::get_paper_systems () const
{
return paper_systems_;
}