LilyPond is a music typesetter. It produces beautiful sheet music
-using a high level description file as input. It is part of the GNU
-project.
+using a high level description file as input. LilyPond is part of
+the GNU Project.
--- /dev/null
+% when tightly spaced, hinterfleisch -> 0 (and not: -> note-width)
+% we need a mininum of about a note-width/interline space before
+% bar line
+
+% set rediculously tight
+\score {
+ \notes { \time 2/2; c'2 c'2 \time 2/2; }
+ \paper { linewidth = 2.0 \cm;
+ indent = 0.0;
+ }
+}
--- /dev/null
+\score{
+ \notes\relative c{
+ \include "stem-direction.sly";
+ }
+ \paper{
+ stem_default_neutral_direction=-1.0;
+ }
+}
*/
Drul_array<Real> yextent_drul_;
-public: // urg, autobeamer needs to know if there are (only) rests here?
+public:
Link_array<Note_head> head_l_arr_;
Link_array<Rest> rest_l_arr_;
-public:
/// log of the duration. Eg. 4 -> 16th note -> 2 flags
int flag_i_;
{
int m = (head_l_drul_[LEFT]->position_i_
+ head_l_drul_[RIGHT]->position_i_) /2;
+
/*
If dir is not determined: inverse of stem: down
(see stem::get_default_dir ())
*/
- return (m <= 0)? DOWN : UP;
+ Direction neutral_dir = (int)paper_l ()->get_var ("stem_default_neutral_direction");
+ return (m == 0) ? other_dir (neutral_dir) : (m < 0) ? DOWN : UP;
}
void
prelude_a = \notes<
\$prelude_notes
- % Han-Wen: help: adding slurs breaks auto-beaming??
- %\$prelude_slurs
+ \$prelude_slurs
>
prelude = \context Staff \notes<