2003-07-04 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * input/test/spanner-after-break-tweak.ly: import
+ broken-spanner-adjustment
+
+ * input/no-notation/midi-transposing.ly: move from input/test/
+
+ * input/test/: remove chord-markup
+
* input/regression/instrument-name-partial.ly: move from input/test.
* input/test/vertical-text.ly: remove
--- /dev/null
+\version "1.7.18"
+
+\header { texidoc = "@cindex Transposing
+The transposing property leaves output invariant, but has effect on MIDI. "
+}
+
+\score {
+ \context Voice \notes\relative c {
+ % btw: this is not how transposing is done in lilypond
+ % this is a transposing performer, i.e. for midi-output only
+ \property Staff.transposing = #0 c
+ \property Staff.transposing = #2 c
+ \property Staff.transposing = #4 c
+ \property Staff.transposing = #5 c
+ \property Staff.transposing = #7 c
+ \property Staff.transposing = #9 c
+ \property Staff.transposing = #11 c
+ \property Staff.transposing = #12 c
+
+ }
+ \paper { raggedright = ##t }
+ \midi { }
+}
+
\musicglyph #"accidentals--1"
\combine "X" "+"
\combine "o" "/"
+
+ \box \column << { "string 1" } { "string 2" } >>
"$\\emptyset$"
\italic Norsk
\super "2"
-\version "1.7.18" %% or actually: 1.7.1 ...
+\version "1.7.23"
+
\header {
texidoc= "@cindex make-music Fingering
You can add various stuff to notes using make-music.
#(define (make-text-script x)
(let ((m (make-music-by-name 'TextScriptEvent)))
- (ly:set-mus-property! m 'text-type 'finger)
- (ly:set-mus-property! m 'text x)
+ (ly:set-mus-property! m 'direction DOWN)
+ (ly:set-mus-property! m 'text (make-simple-markup x))
m))
#(define (add-text-script m x)
- (if (equal? (ly:music-name m) 'RequestChord)
+ (if (equal? (ly:get-mus-property m 'name) 'EventChord)
(ly:set-mus-property! m 'elements
(cons (make-text-script x)
(ly:get-mus-property m 'elements)))
m)
\score {
- \apply #(lambda (x) (add-text-script x "6") (display x) x ) \notes { c4-3 }
+ \apply #(lambda (x) (add-text-script x "6") (display-music x) x ) \notes { c'4-3 }
\paper{ raggedright = ##t }
}
%
\score {
- \notes { \time 6/8 \partial 4
+ \notes { \time 6/8 \partial 4
\tieUp
\slurUp
f4 |
\score {
- \notes {
+ \notes \relative c''{
\property Score.barAlways = ##t
\property Score.defaultBarType = ":|:"
c4 c4 c4 c4 }
\score {
- \notes { c4 d4
+ \notes \relative c'' { c4 d4
\blanknotes e4 f4 \unblanknotes
g4 a
}
+++ /dev/null
-\version "1.7.18"
-\header {
-
- texidoc = "@cindex Broken Spanner Adjustment
-Broken spanners can be adjusted individually, but
-this requires complicated scheme code.
-" }
-
-#(define (my-callback grob)
- (let* (
- (o (ly:get-original grob))
- (b (if (ly:grob? o) (ly:get-broken-into o) '() ))
- )
-
- ;; Call the equivalent of Tie::after_line_breaking
- ;; if you're using this for other grob-types.
-
- (if (and (>= (length b) 2) (eq? (car (last-pair b)) grob))
- (ly:set-grob-property! grob 'extra-offset '(4 . -2))
- )
- ))
-
-#(debug-enable 'backtrace)
-
-\score {\notes {
- \property Voice.Tie \override #'after-line-breaking-callback =
- #my-callback
- c1\break ~ c2 ~ c
-}
- \paper { linewidth= 5.0 \cm }
- }
-
texidoc = "@cindex Capital Letters
You can set the font to use small caps.
" }
+
shapeSC = \property Lyrics.LyricText \override #'font-shape = #'caps
- shapeNorm = \property Lyrics.LyricText \revert #'font-shape
+shapeNorm = \property Lyrics.LyricText \revert #'font-shape
\score { <
- \notes \relative c'' { c4 c4 c8 c8 }
-\lyrics \context Lyrics {
- what4 is4 \shapeSC Bud8 -- dha?8 }>
-\paper { raggedright = ##t}
- }
+ \notes \relative c'' { c4 c4 c8 c8 c8 }
+ \lyrics \context Lyrics {
+ what4 is4 \shapeSC The8 Ma -- trix? }
+ >
+ \paper { raggedright = ##t}
+}
+++ /dev/null
-\version "1.7.18"
-\header{
- texidoc = "@cindex Chord Markup
-chord/markup test.
-" }
-
-\paper{ raggedright = ##t }
-
-\score{
- <
- \context Staff \notes \relative c'' {
- c^\markup { "foe" \raise #3 "bar" }
- c
- c^\markup { "foe" \super "12" \sub { "3 4" } }
- c
-
- %% broken for now
- c^\markup { \column << "" ";" "" >>
- \column << "1" { \bold "2" "3" } >> }
- }
- >
-\paper{raggedright = ##t}
-}
-
\header{ texidoc="@cindex Paper a4 Fill
This should fill a4 paper. "
}
+
\include "paper13.ly"
+
\score{
\context Voice \notes\relative c'{
\clef alto
\score {
- \notes { c1 c1 c1 c1 }
+ \relative c'' \notes { c1 c1 c1 c1 }
}
\score {
- \notes { c1 c1 c1 c1 }
+\relative c'' \notes { c1 c1 c1 c1 }
\header {
\version "1.7.19"
% TODO:
% check with ancient- stuff. rename, merge, something. -gp
-% check font size -- 26 looks too big, but need to ask. -gp
+
\header { texidoc = "@cindex Ancient Mensural Ligatures
Lilypond can print mensural ligatures."
}
-\include "paper26.ly"
+
% Note that the horizontal alignment of the fermatas obeys to the
% graphical width of the ligatures rather to the musical moment in time.
\score {
\notes \transpose c c' \context PianoStaff <
- \context Staff=up { \clef "G" s1*32 \enda }
- \context Staff=down { \clef "F" s1*32 < \context Voice=vup \endb
- \context Voice=vdwn \endc
- > }
+ \context Staff=up { \clef "G" }
+ \context Staff=down { \clef "F" }
{ \apply #transform {\pat {c e g c' e' }
\pat {c d a d' f' }
\pat {h, d g d' f' }
unusual output. "
}
-\score { \notes {
+\score { \notes \relative c'' {
% First a normal looking repeat:
c2 c
\property Score.repeatCommands = #'((volta "1."))
\version "1.7.21"
-\header { texidoc = "@cindex Spanner After Break Transparent
+\header { texidoc = "@cindex Spanner after break
+
To selectively tweak spanners after the linebreaking
process, Scheme code must be used. In this simple example, the tie
-after the line break is set transparent. "
-}
+after the line break is moved around. "
+
+ }
-\score { \notes {
- \property Voice.Tie \set #'after-line-breaking-callback
- = #(lambda (x)
- (if (eq? (cadr (ly:get-broken-into (ly:get-original x))) x)
- (ly:set-grob-property! x 'transparent #t)
- ))
+#(define (my-callback grob)
+ (let* (
+ (o (ly:get-original grob))
+ (b (if (ly:grob? o) (ly:get-broken-into o) '() ))
+ )
+
+ ;; Call the equivalent of Tie::after_line_breaking
+ ;; if you're using this for other grob-types.
- c'1 ~ \break c'1
+ (if (and (>= (length b) 2) (eq? (car (last-pair b)) grob))
+ (ly:set-grob-property! grob 'extra-offset '(-2 . -1))
+ )
+ ))
+
+#(debug-enable 'backtrace)
- }
- \paper { raggedright = ##t }
+\score {\notes {
+ \property Voice.Tie \override #'after-line-breaking-callback =
+ #my-callback
+ c1\break ~ c2 ~ c
}
+ \paper { raggedright = ##t }
+ }
+++ /dev/null
-\version "1.7.18"
-% possible rename to midi-something.
-
-\header { texidoc = "@cindex Transposing
-The transposing property leaves output invariant, but has effect on MIDI. "
-}
-
-\score {
- \context Voice \notes\relative c {
- % btw: this is not how transposing is done in lilypond
- % this is a transposing performer, i.e. for midi-output only
- \property Staff.transposing = #0 c
- \property Staff.transposing = #2 c
- \property Staff.transposing = #4 c
- \property Staff.transposing = #5 c
- \property Staff.transposing = #7 c
- \property Staff.transposing = #9 c
- \property Staff.transposing = #11 c
- \property Staff.transposing = #12 c
-
- }
- \paper { raggedright = ##t }
- \midi { }
-}
-
\score { \notes {
\mel \break
-%% \apply #unfold-repeats \mel FIXME
+ \apply #unfold-repeats \mel
}
}
ADD_INTERFACE (Mensural_ligature, "mensural-ligature-interface",
"A mensural ligature",
- "delta-pitch flexa-width head-width join-left "
+ "delta-pitch flexa-width head-width join-left join-left-amount "
"ligature-primitive-callback primitive thickness");