for Fingering.
* lily/side-position-interface.cc (out_of_staff): don't do
anything if staff-padding not defined.
* scm/define-grobs.scm (all-grob-descriptions): remove
enclose-bounds in OttavaBracket and PianoPedalBracket
2004-01-25 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/define-grobs.scm (all-grob-descriptions): use staff-padding
+ for Fingering.
+
+ * lily/side-position-interface.cc (out_of_staff): don't do
+ anything if staff-padding not defined.
+
* mf/feta-params.mf (stafflines): introduce linethickness as
general blackness of the font.
@itemize @bullet
+@item There is now a Scheme macro for defining markup
+commands. Special mark-up commands can be defined in user-files too.
+
@item Many fixes for dimension scaling have been made,
resulting in correct results for scores that mix staves in different
sizes.
platform, then refer to the installation instructions for more
information.
-For VIM, a vimrc is supplied, along with syntax coloring tools. For
-more information, refer to the
+For @uref{http://www.vim.org,VIM}, a vimrc is supplied, along with
+syntax coloring tools. For more information, refer to the
@ifhtml
@uref{../../../topdocs/out-www/INSTALL.html,installation instructions}.
@end ifhtml
to the source of errors in the graphical output. See @ref{Point and
click}.
-There exists a plugin jEdit. Refer to the
-@uref{website,lily4jedit.sourceforget.net} for more information.
+There exists a plugin for @uref{http://www.jedit.org/,jEdit}. Refer to
+the @uref{http://lily4jedit.sourceforget.net,plugin website} for more
+information.
@node Point and click
\property Voice.fingeringOrientations = #'(down left up)
< c-1 e-2 g-3 b-5 > 4
+ \once \property Voice.Fingering \set #'staff-padding = #'()
+ < c-1 e-2 g-3 b-5 > 4
+
\property Voice.fingeringOrientations = #'(up left)
< c-1 e-2 g-3 b-5 > 4
f->set_grob_property ("script-priority",
gh_int2scm (finger_prio + i));
f->add_offset_callback (Side_position_interface::aligned_side_proc, Y_AXIS);
+ f->add_offset_callback (Side_position_interface::out_of_staff_proc, Y_AXIS);
f->add_offset_callback (Self_alignment_interface::centered_on_parent_proc, X_AXIS);
f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
f->set_grob_property ("direction", gh_int2scm (UP));
- Side_position_interface::add_staff_support (f);
typeset_grob (f);
}
f->add_offset_callback (Self_alignment_interface::centered_on_parent_proc, X_AXIS);
f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
f->add_offset_callback (Side_position_interface::aligned_side_proc, Y_AXIS);
+ f->add_offset_callback (Side_position_interface::out_of_staff_proc, Y_AXIS);
f->set_grob_property ("direction", gh_int2scm (DOWN));
- Side_position_interface::add_staff_support (f);
typeset_grob (f);
}
}
if (!st)
return gh_int2scm (0);
+ SCM scm_padding = me->get_grob_property ("staff-padding");
+ if (!gh_number_p (scm_padding))
+ return gh_int2scm (0);
+
Real padding=
Staff_symbol_referencer::staff_space (me)
- * robust_scm2double (me->get_grob_property ("staff-padding"), 0);
+ * gh_scm2double (scm_padding);
Grob *common = me->common_refpoint (st, Y_AXIS);
Direction d = Side_position_interface::get_direction (me);
ADD_INTERFACE (Side_position_interface,"side-position-interface",
- "Position a victim object (this one) next to other objects (the "
-"support). In this case, the property @code{direction} signifies where to put the "
-"victim object relative to the support (left or right, up or down?) "
-,
- "staff-padding side-support-elements direction-source direction side-relative-direction minimum-space padding");
+ "Position a victim object (this one) next to other objects (the "
+ "support). In this case, the property @code{direction} signifies where to put the "
+ "victim object relative to the support (left or right, up or down?)\n\n "
+ "The @code{out_of_staff} routine puts objects at a distance of the staff. If the property "
+ "@code{staff-padding} is not defined, the routine doesn't do anything."
+ ,
+ "staff-padding side-support-elements direction-source "
+ "direction side-relative-direction minimum-space padding");
font_x_height ex#;
font_normal_space horizontal_space#;
-define_pixels (staffspace, stafflinethickness, ex, descender, ascender);
+define_pixels (staffspace, linethickness, stafflinethickness, ex, descender, ascender);
fet_beginfont("feta-din", design_size);
. (
(molecule-callback . ,Text_item::brew_molecule)
(padding . 0.6)
+ (staff-padding . 0.5)
(self-alignment-X . 0)
(self-alignment-Y . 0)
(script-priority . 100)