]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/molecule-hacking.ly
Imported sources
[lilypond.git] / input / regression / molecule-hacking.ly
index 9ff04511611060712ee90a446e6631e35b0c3e06..6dd67c9004a3f3a6fa6cbd47791e3358a95e2b6c 100644 (file)
@@ -1,5 +1,5 @@
-#(ly:set-option 'old-relative)
-\version "1.9.1"
+
+\version "2.1.21"
 
 \header { texidoc=" You can write molecule callbacks in Scheme, thus
 providing custom glyphs for notation elements.  A simple example is
@@ -16,9 +16,9 @@ parens are also not seen by accidentals.
    "Construct a function that will do CALLBACK and add parentheses.
 Example usage:
 
-  \property Voice.NoteHead \\override #'molecule-callback
+  \\property Voice.NoteHead \\override #'print-function
                      =
-                     #(parenthesize-callback Note_head::brew_molecule)
+                     #(parenthesize-callback Note_head::print)
                    
 "
 
@@ -59,14 +59,14 @@ GROB.  The dimensions of the molecule is not affected.
 \score {
        \notes \relative c' { c4 e
 
-                   \property Voice.NoteHead \override #'molecule-callback
+                   \property Voice.NoteHead \override #'print-function
                      =
-                     #(parenthesize-callback Note_head::brew_molecule)
+                     #(parenthesize-callback Note_head::print)
                    g bes
-                   \property Voice.NoteHead \revert #'molecule-callback
-                   \property Voice.Beam \override #'molecule-callback
+                   \property Voice.NoteHead \revert #'print-function
+                   \property Voice.Beam \override #'print-function
                      =
-                     #(parenthesize-callback Beam::brew_molecule)
+                     #(parenthesize-callback Beam::print)
 
                    a8 gis8 a2.