]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.46
authorfred <fred>
Tue, 26 Mar 2002 21:50:01 +0000 (21:50 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:50:01 +0000 (21:50 +0000)
input/test/auto-beam-4-8.ly [new file with mode: 0644]
lily/auto-beam-engraver.cc
ly/auto-beam-settings.ly
mf/feta-generic.mf
mf/feta-test13.mf [new file with mode: 0644]
mutopia/gallina.ly

diff --git a/input/test/auto-beam-4-8.ly b/input/test/auto-beam-4-8.ly
new file mode 100644 (file)
index 0000000..c10e246
--- /dev/null
@@ -0,0 +1,25 @@
+\score{
+   \notes\relative c''{
+     \time 4/8;
+
+%{
+    the default for 4/8 (see ly/auto-beam-settings.ly)
+     ----  --------
+     |  |  |   |--|
+    x| x| x|  x| x|
+%}
+     c8 c c c16 c
+
+
+%{
+    user override
+     --------------
+     |  |  |   |--|
+    x| x| x|  x| x|
+%}
+     \property Voice.beamAutoEnd = "2/4"
+     c8 c c c16 c
+
+  }
+}
+    
index 3a74ab95cbcecab75d9b6a3256642c5b2cd58907..4e383675d7a8b154295f843f34a626c1cfdeaded 100644 (file)
@@ -22,7 +22,8 @@ ADD_THIS_TRANSLATOR (Auto_beam_engraver);
 Auto_beam_engraver::Auto_beam_engraver ()
 {
   stem_l_arr_p_ = 0;
-  shortest_mom_ = 1;
+  //shortest_mom_ = 1;
+  shortest_mom_ = Moment (1, 8);
   finished_beam_p_ = 0;
   finished_grouping_p_ = 0;
   grouping_p_ = 0;
@@ -197,7 +198,8 @@ Auto_beam_engraver::end_beam ()
       delete stem_l_arr_p_;
       stem_l_arr_p_ = 0;
       grouping_p_ = 0;
-      shortest_mom_ = 1;
+      //shortest_mom_ = 1;
+      shortest_mom_ = Moment (1, 8);
     }
 }
  
@@ -329,7 +331,8 @@ Auto_beam_engraver::junk_beam ()
   stem_l_arr_p_ = 0;
   delete grouping_p_;
   grouping_p_ = 0;
-  shortest_mom_ = 1;
+  //shortest_mom_ = 1;
+  shortest_mom_ = Moment (1, 8);
 }
 
 void
index b24a713d417df5551c3650d70fbacaaf3eda182b..329da4ec89a4f4c7e65efde2d510987b7034f9df 100644 (file)
@@ -1,31 +1,82 @@
+%%In the file ly/auto-beam-settings.ly, all necessary i-iii settings should
+%%be listed, here's a new version with more comments, (hw, please include).
+%%duh
+
+% auto-beam-settings.ly
+% setup for auto-beam engraver
 %
-% setup for auto beamer
-%
+% specify generic beam end times
 
-% *num_den (omitted if "1")
+% format:
+%
+%     [time-signature]'beamAutoEnd'[duration]
+%
+% where
+%
+%     time-signature = 'time'[numerator]'_'denominator; eg: 3_4
+%     duration = [numerator]'_'denominator; eg: 3_8, _16
+%
 
-time2_8beamAutoEnd = "2/8";
+% in 3/2 time:
+%   end beams each 1/2 note
+%   end beams with 16th notes each 1/4 note
+%   end beams with 32th notes each 1/8 note
 time3_2beamAutoEnd = "1/2";
 time3_2beamAutoEnd_16 = "1/4";
 time3_2beamAutoEnd_32 = "1/8";
+
 time3_4beamAutoBegin = "1/4";
 time3_4beamAutoEnd_8 = "3/4";
 time3_4beamAutoBegin_32 = "1/8";
 time3_4beamAutoEnd_32 = "1/8";
+
 time3_8beamAutoBegin = "1/8";
 time3_8beamAutoEnd = "3/8";
+
+% in common time:
+%   end beams each 1/2 note
+%   end beams with 32th notes each 1/8 note
+%   end beams with 1/8 triplets each 1/4 note
+
 time4_4beamAutoEnd_8 = "1/2";
-% 1/12 == 1/8 * 2/3
 time4_4beamAutoEnd_12 = "1/4";
 time4_4beamAutoEnd_32 = "1/8";
+
 time4_8beamAutoEnd_8 = "1/4";
 time4_8beamAutoEnd_16 = "1/4";
 time4_8beamAutoEnd_32 = "1/8";
+
 time4_16beamAutoEnd = "1/8";
+
 time6_8beamAutoEnd_8 = "3/8";
 time6_8beamAutoEnd_16 = "3/8";
 time6_8beamAutoEnd_32 = "1/8";
+
 time9_8beamAutoEnd_8 = "3/8";
 time9_8beamAutoEnd_16 = "3/8";
 time6_8beamAutoEnd_32 = "1/8";
 
+%{
+
+Users may override in most cases, simply by issuing
+
+    % from here on consider ending beam every 1/4 note
+    \property Voice.beamAutoEnd = "1/4"
+
+    % no autobeaming
+    \property Voice.beamAuto = "0"  
+
+or, more globally, by doing:
+
+ \paper{
+        \translator{
+            \VoiceContext
+            % consider ending beam at every 1/2 note
+            beamAutoEnd = "1/2";
+        }
+    }
+
+see also input/test/auto-beam-override.ly
+
+%}
+
index 4d38b9e1ddaedea5592e8069e4fa9b30990c0ece..9c88e2d9b6b3bb55bdd26aac77e3bcc75b095437 100644 (file)
@@ -35,13 +35,12 @@ if test = 0:
        input feta-klef;
        input feta-timesig;
 else:
-       input feta-bolletjes;   
+%      input feta-bolletjes;   
 %      input feta-banier;
 %      input feta-eindelijk;
 %      input feta-klef;
 %      input feta-toevallig;
-%      input feta-schrift;
-%      input feta-schrift;
+       input feta-schrift;
 %      input feta-haak;
 %      input feta-timesig;
 fi
diff --git a/mf/feta-test13.mf b/mf/feta-test13.mf
new file mode 100644 (file)
index 0000000..3d2ed3c
--- /dev/null
@@ -0,0 +1,21 @@
+% feta-test16
+% part of LilyPond's pretty-but-neat music font
+
+input feta-autometric;
+fet_beginfont("feta-test", 16);
+staffsize#:=16pt#;
+test:=1;
+
+% smoked cheese
+% test := -1;
+
+
+% dem piksels.
+%test := 1;
+
+input feta-generic;
+
+fet_endfont("feta");
+
+end.
+
index 8dcbb5fb154a0beb18a149d40e6a5b6838461a40..432a60cc1b0dc59c03634aaf227557df08584be4 100644 (file)
@@ -45,7 +45,7 @@ Voice engraver by uncommenting the lines in the paper
 definition below. --MB
 %} 
 
-\version "1.0.16";
+\version "1.0.18";
 
 global = \notes {
   \property StaffGroup.timeSignatureStyle = "old"