X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fauto-beam.scm;h=0a6d94b1955bf910bd9831f2edd2ef67be6d9f3f;hb=368c6346e0d46aed9931f43f662ff5207dd943d8;hp=ec78e2b2f6238942693cab3b9e2f321bae351f3d;hpb=1b80dbfffcca6d22e170eb98ef355ae354d1a7f8;p=lilypond.git diff --git a/scm/auto-beam.scm b/scm/auto-beam.scm index ec78e2b2f6..0a6d94b195 100644 --- a/scm/auto-beam.scm +++ b/scm/auto-beam.scm @@ -3,7 +3,7 @@ ;;; ;;; source file of the GNU LilyPond music typesetter ;;; -;;; (c) 2000 Jan Nieuwenhuizen +;;; (c) 2000--2002 Jan Nieuwenhuizen ;;; ;;; specify generic beam begin and end times @@ -28,7 +28,7 @@ ;;; end beams with 16th notes each 1 4 note ;;; end beams with 32th notes each 1 8 note -(define auto-beam-settings +(define-public auto-beam-settings `( ((end * * 3 2) . ,(make-moment 1 2)) ((end 1 16 3 2) . ,(make-moment 1 4)) @@ -60,6 +60,9 @@ ((end 1 16 2 4) . ,(make-moment 1 4)) ((end 1 32 2 4) . ,(make-moment 1 8)) + ;; It seems that, because of a bug in the previous auto-beamer, + ;; we had the effect of this setting x + ;; ((end * * 2 8) . ,(make-moment 2 8)) ((end * * 4 8) . ,(make-moment 1 4)) ((end 1 16 4 8) . ,(make-moment 1 4)) @@ -78,26 +81,4 @@ ((end * * 12 8) . ,(make-moment 3 8)) ((end 1 16 12 8) . ,(make-moment 3 8)) ((end 1 32 12 8) . ,(make-moment 1 8)) - (meta . ,(element-description "autoBeamSettings")) )) - -;;; Users may override in most cases, simply by issuing -;;; -;;; % from here on consider ending beam every 1 4 note -;;; \property Voice.autoBeamSettings \push #'(end * * * *) = #(make-moment 1 4) -;;; -;;; % no autobeaming -;;; \property Voice.beamAuto = ##f -;;; -;;; or, more globally, by doing: -;;; -;;; \paper{ -;;; \translator{ -;;; \VoiceContext -;;; % consider ending beam at every 1 2 note -;;; autoBeamSettings \push #'(end * * * *) = #(make-moment 1 2) -;;; } -;;; } -;;; -;;; see also input test auto-beam-override.ly -