@ignore
TODO
- * add more un/badly-documented features
+ * add more un/badly documented features
* write some text
* add to/merge with refman
@end ignore
* Manual beam settings:: Manual beam settings
* Slur attachments:: Slur attachments
* Text spanner:: Text spanner
-* Output property:: Output property
-* Markup text:: Markup text
* Engraver hacking:: Engraver hacking
+* Markup text:: Markup text
+* Output property:: Output property
+* Embedded TeX:: Embedded TeX
+* Embedded PostScript:: Embedded PostScript
@end menu
Testin'' a b c...
>
@end lilypond
+@c part combiner
@node Manual beam settings
@section Manual beam settings
@end lilypond
-@c ugly slurs
+@c steep slur correct
@c high slurs, eg from gnossienes
@end lilypond
-@node Output property
-@section Output property
+@node Engraver hacking
+@section Engraver hacking
-@lilypond[fragment,relative,verbatim,center]
- \outputproperty #(make-type-checker 'note-head-interface)
- #'extra-offset = #'(2 . 3)
- c''2 c
+No time signature, no barlines...
+@lilypond[verbatim,center]
+\score {
+ \notes \relative c'' {
+ a b c d
+ d c b a
+ }
+ \paper {
+ \translator {
+ \StaffContext
+ whichBar = #""
+ \remove "Time_signature_engraver";
+ linewidth = -1.;
+ }
+ }
+}
@end lilypond
-Don't move the finger 2, only text "m.d." ...
+No staff, no clef, squash pitches
@lilypond[verbatim,center]
-#(define (make-text-checker text)
- (lambda (grob) (equal? text (ly-get-elt-property grob 'text))))
-
-\score {
- \notes\relative c''' {
- \property Voice.Stem \set #'direction = #1
- \outputproperty #(make-text-checker "m.d.")
- #'extra-offset = #'(-3.5 . -4.5)
- a^2^"m.d."
+\score {
+ \notes { c4 c4 c8 c8 }
+ \paper {
+ \translator {
+ \StaffContext
+ \remove Staff_symbol_engraver;
+ \consists Pitch_squash_engraver;
+ \remove Clef_engraver;
+ }
+ linewidth = -1.;
}
- \paper { linewidth = -1.; }
}
@end lilypond
}
@end lilypond
-@node Engraver hacking
-@section Engraver hacking
-No time signature, no barlines...
+@node Output property
+@section Output property
+
+@lilypond[fragment,relative,verbatim,center]
+ \outputproperty #(make-type-checker 'note-head-interface)
+ #'extra-offset = #'(2 . 3)
+ c''2 c
+@end lilypond
+
+Don't move the finger 2, only text "m.d." ...
@lilypond[verbatim,center]
-\score {
- \notes \relative c'' {
- a b c d
- d c b a
- }
- \paper {
- \translator {
- \StaffContext
- whichBar = #""
- \remove "Time_signature_engraver";
- linewidth = -1.;
- }
+#(define (make-text-checker text)
+ (lambda (grob) (equal? text (ly-get-elt-property grob 'text))))
+
+\score {
+ \notes\relative c''' {
+ \property Voice.Stem \set #'direction = #1
+ \outputproperty #(make-text-checker "m.d.")
+ #'extra-offset = #'(-3.5 . -4.5)
+ a^2^"m.d."
}
+ \paper { linewidth = -1.; }
}
@end lilypond
-No staff, no clef, squash pitches
+
+@c subsection no clefs
+@c equalizer
+
+
+@c Embedded TeX
+
+@node Embedded TeX
+@section Embedded TeX
+@lilypond[fragment,relative,verbatim,center]
+ a''^"3 $\\times$ \\`a deux"
+@end lilypond
+
+@node Embedded PostScript
+@section Embedded PostScript
+
+Arbitrary lines and curves not supported...
@lilypond[verbatim,center]
\score {
- \notes { c4 c4 c8 c8 }
+ \notes \relative c'' {
+ a-#"\\embeddedps{3 4 moveto 5 3 rlineto stroke}"
+ -#"\\embeddedps{ [ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke}"
+ b-#"\\embeddedps{3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke}"
+ s2
+ a'1
+ }
\paper {
- \translator {
- \StaffContext
- \remove Staff_symbol_engraver;
- \consists Pitch_squash_engraver;
- \remove Clef_engraver;
- }
- linewidth = -1.;
+ linewidth = 70.0*\staffspace;
}
}
@end lilypond
-
-@c subsection no clefs
-
-
-@c equalizer
@bye
--- /dev/null
+%{
+Hi,
+ I want to write some music that has the structure:
+
+ Intro
+ \repeat 4 { Chorus [first-ending] verse }
+ fifth-ending final
+
+ The obvious:
+
+ \repeat 4 { Chorus \alternative{{first-ending}{}} verse}
+ \alternative{{}{fifth-ending}}
+ final
+
+ doesn't work.
+
+ And the (logically correct but ugly)
+
+ \repeat 4 {Chorus}
+ \alternative {{first-ending verse}{fifth ending}}
+ final
+
+ is very ugly, because the volta bracket keeps going for so
+ long.
+
+ Peter C
+%}
+
+\score{
+ <
+ \context Staff \notes\relative c''{
+ c c c c
+ % coda-klugde: let volta span only one bar
+ \property Staff.voltaSpannerDuration = #(make-moment 1 1)
+ \repeat "volta" 5 { d d d d }
+ \alternative { { e e e e f f f f }
+ { g g g g } }
+ }
+ \context Lyrics \lyrics{
+ intro1
+ \repeat fold 5 {}
+ \alternative {
+ { chorus1 one verse1 }
+ { chorus1 two verse1 }
+ { chorus1 three verse }
+ { chorus1 four verse }
+ }
+ five1
+ }
+ >
+}
+
+
+%\version "1.0.16";