]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/auto-beam.scm
Remove obsolete music property.
[lilypond.git] / scm / auto-beam.scm
index 1e77399b06df0ceec87f7c774fdab2799f490a9b..43ec64e9b4e82e1a2b431d36935f16b9ec3a0209 100644 (file)
@@ -1,8 +1,19 @@
-;;;; auto-beam.scm -- Auto-beam-engraver settings
+;;;; This file is part of LilyPond, the GNU music typesetter.
 ;;;;
-;;;; source file of the GNU LilyPond music typesetter
+;;;; Copyright (C) 2000--2010 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;;
-;;;; (c) 2000--2009 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; LilyPond is free software: you can redistribute it and/or modify
+;;;; it under the terms of the GNU General Public License as published by
+;;;; the Free Software Foundation, either version 3 of the License, or
+;;;; (at your option) any later version.
+;;;;
+;;;; LilyPond is distributed in the hope that it will be useful,
+;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;;; GNU General Public License for more details.
+;;;;
+;;;; You should have received a copy of the GNU General Public License
+;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;  Determine end moment for auto beaming (or begin moment, but mostly
 ;;  0== anywhere).  We only consider the current time signature.
@@ -23,7 +34,7 @@
 ;;  2. exceptions for specific time signature, for specific duration type
 
 
-(define-public (default-auto-beam-check context dir test-beam)
+(define-public (default-auto-beam-check context dir measure-pos test-beam)
   (define (get name default)
     (let ((value (ly:context-property context name)))
       (if (not (null? value)) value default)))
@@ -49,7 +60,6 @@
                  (measure-length (get 'measureLength (ly:make-moment 1 1)))
                  (time-signature-fraction
                    (get 'timeSignatureFraction '(4 . 4)))
-                 (measure-pos (get 'measurePosition ZERO-MOMENT))
                  (settings (get 'beamSettings '()))
                  (function (if (= dir START) 'begin 'end))
                  (type (cons (ly:moment-main-numerator test-beam)
@@ -85,4 +95,4 @@
                 ;; start/end at beginning of measure
                 (= (ly:moment-main-numerator pos) 0)
                 ;; end if measure-pos matches a specified ending moment
-                (member measure-pos grouping-moments)))))))
+                (member pos grouping-moments)))))))