-;;;; define-grobs.scm --
+;;;; This file is part of LilyPond, the GNU music typesetter.
;;;;
-;;;; source file of the GNU LilyPond music typesetter
-;;;;
-;;;; (c) 1998--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+;;;; Copyright (C) 1998--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
;;;; 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/>.
;;;; distances are given in line-thickness (thicknesses) and
;;;; staff-space (distances)
(AmbitusAccidental
. (
(direction . ,LEFT)
- (font-family . music)
(glyph-name-alist . ,standard-alteration-glyph-name-alist)
(padding . 0.5)
(side-axis . ,X)
(break-align-anchor . ,ly:break-aligned-interface::calc-extent-aligned-anchor)
(break-align-symbol . clef)
(break-visibility . ,begin-of-line-visible)
- (font-family . music)
(glyph-name . ,ly:clef::calc-glyph-name)
(non-musical . #t)
(space-alist . ((ambitus . (extra-space . 2.0))
(clef . (extra-space . 0.8))
(first-note . (fixed-space . 2.0))
(right-edge . (extra-space . 0.0))
- (key-signature . (extra-space . 0.0))
+ (key-signature . (extra-space . 0.8))
(key-cancellation . (extra-space . 0.0))
))
(X-extent . (0 . 0))
(StaffGrouper
. (
- (between-staff-spacing . ((space . 9) (minimum-distance . 7)))
- (after-last-staff-spacing . ((space . 10.5) (minimum-distance . 8)))
+ (between-staff-spacing . ((space . 9)
+ (minimum-distance . 7)
+ (padding . 1)))
+ (after-last-staff-spacing . ((space . 10.5)
+ (minimum-distance . 8)
+ (padding . 1)))
(meta . ((class . Spanner)
(interfaces . (staff-grouper-interface))))))
(TabNoteHead
. (
+ (details . ((tied-properties . ((break-visibility . ,begin-of-line-visible)
+ (parenthesize . #t)))
+ (repeat-tied-properties . ((note-head-visible . #t)
+ (parenthesize . #t)))))
(direction . ,CENTER)
(duration-log . ,note-head::calc-duration-log)
(font-series . bold)
rhythmic-grob-interface
rhythmic-head-interface
staff-symbol-referencer-interface
+ tab-note-head-interface
text-interface))))))
(TextScript
(padding . 0.25)
(attach-dir . ,LEFT)
))
+ (left-broken . ((end-on-note . #t)))
(right . ((Y . 0)
(padding . 0.25)
))
. (
(adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
(axes . (,Y))
- (default-next-staff-spacing . ((space . 9) (minimum-distance . 8)))
+ (default-next-staff-spacing . ((space . 9)
+ (minimum-distance . 8)
+ (padding . 1)))
(next-staff-spacing . ,ly:axis-group-interface::calc-next-staff-spacing)
+ (non-affinity-spacing . ((padding . 0.5)))
(stencil . ,ly:axis-group-interface::print)
(vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
(X-extent . ,ly:axis-group-interface::width)
(font-encoding . fetaNumber)
(font-size . -4)
(stencil . ,ly:volta-bracket-interface::print)
- (thickness . 1.6) ;; line-thickness
+ (thickness . 1.6) ;; line-thickness
(word-space . 0.6)
(meta . ((class . Spanner)
(interfaces . (font-interface
line-interface
side-position-interface
text-interface
- volta-bracket-interface))))))
+ volta-bracket-interface
+ volta-interface))))))
(VoltaBracketSpanner
. (
(after-line-breaking . ,ly:side-position-interface::move-to-extremal-staff)
(axes . (,Y))
(direction . ,UP)
- (no-alignment . ,#t)
+ (no-alignment . #t)
(outside-staff-priority . 600)
(padding . 1)
(side-axis . ,Y)
(Y-offset . ,ly:side-position-interface::y-aligned-side)
(meta . ((class . Spanner)
(interfaces . (axis-group-interface
- side-position-interface))))))
+ side-position-interface
+ volta-interface))))))
))
;; (newline)
(let* ((name-sym (car x))
(grob-entry (cdr x))
- (meta-entry (cdr (assoc 'meta grob-entry)))
- (class (cdr (assoc 'class meta-entry)))
+ (meta-entry (assoc-get 'meta grob-entry))
+ (class (assoc-get 'class meta-entry))
(ifaces-entry
- (cdr (assoc 'interfaces meta-entry))))
+ (assoc-get 'interfaces meta-entry)))
(cond
((eq? 'Item class)
(define pure-print-callbacks
(list
fret-board::calc-stencil
+ note-head::brew-ez-stencil
print-circled-text-callback
lyric-text::print
ly:arpeggio::print
ly:text-interface::print
ly:script-interface::print))
-;; ly:grob::stencil-extent is safe iff the print callback is safe too
+;; ly:grob::stencil-extent is safe if the print callback is safe too
(define (pure-stencil-height grob start stop)
(let ((sten (ly:grob-property-data grob 'stencil)))
(if (or