-;;;; 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.
;; 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)))
(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)
;; 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)))))))