\score {
\notes \relative c' { c1
- \context Score \outputproperty #(make-type-checker 'paper-column-interface)
- #'between-system-string = #"(pagebreak)\n\n"
+ \context Score \applyoutput #(outputproperty-compatibility (make-type-checker 'paper-column-interface) 'between-system-string "(pagebreak)\n\n")
\break
c1 }
\property Staff.Clef \override #'transparent = ##t
\clef "treble" c'1^"transparent=\#t" \bar "||"
\property Staff.Clef \override #'transparent = ##f
- \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
+ \context Staff \applyoutput #(outputproperty-compatibility (make-type-checker 'clef-interface) 'full-size-change #t)
\clef "french" c'1^"full-size-change = \#t" \bar "|."
}
\paper{
\score{
\notes\relative c''{
- \outputproperty #(make-type-checker 'note-head-interface)
- #'extra-offset = #'(2 . 3)
+ \applyoutput #(outputproperty-compatibility (make-type-checker 'note-head-interface) 'extra-offset '(2 . 3))
c2
c
\context Score {
- \outputproperty #(make-type-checker 'mark-interface)
- #'extra-offset = #'(-1 . 4)
+ \applyoutput #(outputproperty-compatibility (make-type-checker 'mark-interface) 'extra-offset '(-1 . 4))
}
\mark A
d1
+++ /dev/null
-
-\header { texidoc = "
-
-Setting @code{\outputproperty} is a clumsy and deprecated way of changing
-grob definitions. In this example, the predicate checks the @code{text}
-object property, to shift only the `m.d.' text, but not the `two'
-text. Since both scripts are @code{TextScript} grobs, using
-possible to use @code{\override} would shift both texts.
-
-"
-
-}
-
-\version "1.9.4"
-
-#(define (make-text-checker text)
- (lambda (grob) (equal? text (ly:get-grob-property grob 'text))))
-
-\score {
- \notes\relative c''' {
- a^"two"^"m.d."
- \context Voice
- \outputproperty #(make-text-checker (make-simple-markup "m.d."))
- #'extra-offset = #'(-4.0 . -3.5)
- a^"two"^"m.d."
- a^"two"^"m.d."
- }
-}
\property Voice.tupletNumberFormatFunction = #fraction-tuplet-formatter
- \outputproperty #(make-text-checker-once "2:3")
- #'extra-offset = #'(0 . 1.5)
+ \applyoutput #(outputproperty-compatibility (make-text-checker-once "2:3")
+ 'extra-offset '(0 . 1.5))
\times 2/3 {
\times 2/3 {
a a a
% this is broken until further notice -- see refman
% \property Staff.StaffSymbol \override #'line-count = #4
- \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface)
- #'line-count = #4
+ \context Staff \applyoutput #(outputproperty-compatibility (make-type-checker 'staff-symbol-interface) 'line-count 4)
\notes \transpose c c {
\property Staff.KeySignature \override #'style = #'vaticana
% this is broken until further notice -- see refman
% \property Staff.StaffSymbol \override #'line-count = #5
- \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface)
- #'line-count = #5
+ \context Staff \applyoutput #(outputproperty-compatibility (make-type-checker 'staff-symbol-interface) 'line-count 5)
\notes \transpose c c {
\property Voice.autoBeaming = ##f
+++ /dev/null
-
-\version "1.9.4"
-\header { texidoc = "@cindex Scheme Move Notehead
-You can move objects around with scheme. This example shows how to
-move noteheads around. " }
-
-fragment = \notes {
- \outputproperty #(make-type-checker 'note-head-interface)
- #'extra-offset = #'(2 . 3)
- c''2 c
-}
-
-\paper { raggedright = ##t}
-
-\score {
- \notes\relative c \fragment
- \paper { }
-}
-
c2.
<<
\property Staff.AccidentalPlacement = \turnOff
-\context Staff \outputproperty #(make-acc-position-checker 9)
- #'extra-offset = #'(-1 . 0)
-\context Staff \outputproperty #(make-acc-position-checker 5)
- #'extra-offset = #'(-2 . 0)
-\context Staff \outputproperty #(make-acc-position-checker 3)
- #'extra-offset = #'(-3 . 0)
-\context Staff \outputproperty #(make-acc-position-checker 2)
- #'extra-offset = #'(-4 . 0)
+\context Staff \applyoutput #(outputproperty-compatibility (make-acc-position-checker 9)
+ 'extra-offset '(-1 . 0))
+\context Staff \applyoutput #(outputproperty-compatibility (make-acc-position-checker 5)
+ 'extra-offset '(-2 . 0))
+\context Staff \applyoutput #(outputproperty-compatibility (make-acc-position-checker 3)
+ 'extra-offset '(-3 . 0))
+\context Staff \applyoutput #(outputproperty-compatibility (make-acc-position-checker 2)
+ 'extra-offset '(-4 . 0))
d!4
eis
gis
+++ /dev/null
-
-\version "1.9.4"
-\header { texidoc = "@cindex Scheme Move Notehead
-
-You can move objects around with the property extra-offset. This
-example shows how to move noteheads around. It uses the
-@code{\outputproperty} command.
-
-" }
-
-fragment = \notes {
- \outputproperty #(make-type-checker 'note-head-interface)
- #'extra-offset = #'(2 . 3)
- c''2 c
-}
-
-\paper { raggedright = ##t}
-
-\score {
- \notes\relative c \fragment
- \paper { }
-}
-
\score {
\notes\relative c''' {
\property Voice.Stem \set #'direction = #1
- \outputproperty #(make-text-checker (make-simple-markup "m.d."))
- #'extra-offset = #'(-3.5 . -4.5)
+ \applyoutput #(outputproperty (make-text-checker (make-simple-markup "m.d."))
+ 'extra-offset '(-3.5 . -4.5))
a^2^"m.d."
}
\paper { raggedright = ##t}
}
x = {
- \outputproperty #(make-type-checker 'note-head-interface)
- #'extra-offset = #'(-1 . 0)
+ \applyoutput #(outputproperty-compatibility (make-type-checker 'note-head-interface)
+ 'extra-offset '(-1 . 0))
}
\score {
%\time 4/4
\new Staff <<
\upper
- \outputproperty #(make-type-checker 'staff-symbol-interface)
- #'line-count = #5
>>
\new Staff <<
\clef bass
\lower
- \outputproperty #(make-type-checker 'staff-symbol-interface)
- #'line-count = #4
+ \applyoutput #(outputproperty-compatibility (make-type-checker 'staff-symbol-interface)
+ 'line-count = 4)
>>
>>
\paper { raggedright=##t}
Setting staff sizes is a little clumsy. There are two options: using
@code{StaffContainer} and override/revert, or
-@code{\outputproperty}. Both methods are shown in this example. "
+@code{\applyoutput}. Both methods are shown in this example. "
}
\new Staff \relative c'' { \dynamicDown c,,4 \ff c c c }
\new Staff {
- \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface)
- #'staff-space = #0.8
+ \context Staff \applyoutput #(outputproperty-compatibility (make-type-checker 'staff-symbol-interface) 'staff-space 0.8)
\property Staff.fontSize = #-1
\clef bass
c8 c c c c c c c
;;(eq? #t (ly:get-grob-property elt symbol))
(not (eq? #f (memq symbol (ly:get-grob-property elt 'interfaces))))))
+(define-public ((outputproperty-compatibility func sym val) grob g-context ao-context)
+ (if (func grob)
+ (ly:set-grob-property! grob sym val)))
;;
(define-public (smart-bar-check n)
return '(ly:make-pitch %s %s %s)' % (m.group(1), m.group (2), alt)
str =re.sub ("\\(ly:make-pitch *([0-9-]+) *([0-9-]+) *([0-9-]+) *\\)", sub_alteration, str)
+
+ m= re.search ("\\\\outputproperty #([^#]+)[\t\n ]*#'([^ ]+)", str)
+ if m:
+ sys.stderr.write (\
+ r"""\outputproperty found,
+Please hand-edit, using
+
+ \applyoutput #(outputproperty-compatibility %s '%s <GROB PROPERTY VALUE>)
+
+as a substitution text.""" % (m.group (1), m.group (2)) )
+ raise FatalConversionError
+
return str
-conversions.append (((1,9,7), conv, 'use symbolic constants for alterations.'))
+conversions.append (((1,9,7), conv, 'use symbolic constants for alterations, remove \\outputproperty'))