Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1156)

Unified Diff: lily/multi-measure-rest.cc

Issue 6827072: Uses single algorithm for side-position spacing. (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Patch Set: Uses cross-staff note columns for pure height estimations Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lily/multi-measure-rest.cc
diff --git a/lily/multi-measure-rest.cc b/lily/multi-measure-rest.cc
index 47718a2fec86d906e0b3ce0adb7211c17f07237b..df06f790dfb00e8f6201682fe3466c22ff0524ee 100644
--- a/lily/multi-measure-rest.cc
+++ b/lily/multi-measure-rest.cc
@@ -115,6 +115,21 @@ Multi_measure_rest::print (SCM smob)
return mol.smobbed_copy ();
}
+MAKE_SCHEME_CALLBACK (Multi_measure_rest, height, 1);
+SCM
+Multi_measure_rest::height (SCM smob)
+{
+ Grob *me = unsmob_grob (smob);
+ Spanner *sp = dynamic_cast<Spanner *> (me);
dak 2013/02/19 18:44:03 The compiler complains that sp is not being used h
+
+ Real space = 1000000; // something very large...
+
+ Stencil mol;
+ mol.add_stencil (symbol_stencil (me, space));
+
+ return ly_interval2scm (mol.extent (Y_AXIS));
+}
+
int
calc_closest_duration_log (Grob *me, double duration, bool force_round_up, bool paranoid)
{

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b