Compare commits

...

6 Commits

Author SHA1 Message Date
70ad9536bf Merge branch 'main' of https://git.dijkewijk.nl/hans/lilypond-hd.git into HEAD 2026-01-26 23:19:18 +01:00
ddb8395d18 - 2026-01-26 23:17:50 +01:00
79e5b3d165 - 2026-01-26 23:14:08 +01:00
4797000ca3 - 2026-01-26 20:01:13 +01:00
717b32cece ja 2026-01-22 10:01:55 +01:00
3ccd2aa9f7 ja 2026-01-21 00:48:54 +01:00
2 changed files with 100 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
\version "2.25.3"
\language "english"
stripArticulations = #(define-scheme-function stripArticulations = #(define-scheme-function
(music) (music)
@@ -174,4 +175,63 @@ tri = #(define-scheme-function
#{ #{
\times 2/3 { $n1 $n2 $n3 } \times 2/3 { $n1 $n2 $n3 }
#} #}
) )
triN = #(define-scheme-function
(n1 n2 n3)
(ly:music? ly:music? ly:music?)
#{
\tuplet 3/2 { \once \omit TupletNumber \once \omit TupletBracket $n1 $n2 $n3 }
#}
)
triG = #(define-scheme-function
(n1 n2 n3)
(ly:music? ly:music? ly:music?)
#{
\times 2/3 { $n1[ $n2 $n3] }
#}
)
triGn = #(define-scheme-function
(n1 n2 n3)
(ly:music? ly:music? ly:music?)
#{
\tuplet 3/2 { \once \omit TupletNumber $n1[ $n2 $n3] }
#}
)
markupBetween = #(define-scheme-function
(a b c)
(ly:music? ly:music? markup?)
#{
\once \override Stem.X-extent = #'(1 . 5) $a ^$c $b
#}
)
turnBetween = #(define-scheme-function
(a b)
(ly:music? ly:music?)
#{
\markupBetween $a $b \markup { \halign #-3 { \musicglyph #"scripts.turn" } }
#}
)
turnNaturalBetween = #(define-scheme-function
(a b)
(ly:music? ly:music?)
#{
\markupBetween $a $b \markup { \halign #-3 \column {
{ \musicglyph #"scripts.turn" }
\super { \musicglyph #"accidentals.natural" }
}
}
#}
)
turnNatural = ^\markup { \column {
{ \musicglyph #"scripts.turn" }
\super { \musicglyph #"accidentals.natural" }
}}

View File

@@ -1,3 +1,5 @@
\version "2.24.3"
\language "english"
makePiece = #(define-scheme-function makePiece = #(define-scheme-function
@@ -24,44 +26,52 @@ makeHdr = #(define-scheme-function
) )
makeScore = #(define-scheme-function makeScore = #(define-scheme-function
(instrument music) (instrument midi music)
(string? ly:music?) (string? string? ly:music?)
#{ (let ((moment (if (defined? 'sqCustomMoment) sqCustomMoment #(ly:make-moment 1/3))))
(display "MOMENT=")(display moment)(newline)
#{
\score { \score {
\new Staff \with { instrumentName = $instrument } \new Staff \with {
instrumentName = $instrument
midiInstrument = $midi
}
$music $music
\layout { \layout {
\context { \context {
\Score \Score
\override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/3) \override SpacingSpanner.common-shortest-duration = #moment
} }
} }
\midi {
}
} }
#} #}
) )
)
makeScoreVI = #(define-scheme-function makeScoreVI = #(define-scheme-function
(music) (music)
(ly:music?) (ly:music?)
(makeScore "Violin I" music) (makeScore "Violin I" "violin" music)
) )
makeScoreVII = #(define-scheme-function makeScoreVII = #(define-scheme-function
(music) (music)
(ly:music?) (ly:music?)
(makeScore "Violin II" music) (makeScore "Violin II" "violin" music)
) )
makeScoreVa = #(define-scheme-function makeScoreVa = #(define-scheme-function
(music) (music)
(ly:music?) (ly:music?)
(makeScore "Viola" #{ { \clef alto $music } #}) (makeScore "Viola" "viola" #{ { \clef alto $music } #})
) )
makeScoreCl = #(define-scheme-function makeScoreCl = #(define-scheme-function
(music) (music)
(ly:music?) (ly:music?)
(makeScore "Cello" #{ { \clef bass $music } #}) (makeScore "Cello" "cello" #{ { \clef bass $music } #})
) )
makeScoreFull = #(define-scheme-function makeScoreFull = #(define-scheme-function
@@ -70,10 +80,22 @@ makeScoreFull = #(define-scheme-function
#{ #{
\score { \score {
<< <<
\new Staff \with { instrumentName = "Violin I" } $vI \new Staff \with {
\new Staff \with { instrumentName = "Violin II" } $vII instrumentName = "Violin I"
\new Staff \with { instrumentName = "Viola" } { \clef alto $va } midiInstrument = "violin"
\new Staff \with { instrumentName = "Cello" } { \clef bass $va } } $vI
\new Staff \with {
instrumentName = "Violin II"
midiInstrument = "violin"
} $vII
\new Staff \with {
instrumentName = "Viola"
midiInstrument = "viola"
} { \clef alto $va }
\new Staff \with {
instrumentName = "Cello"
midiInstrument = "cello"
} { \clef bass $cl }
>> >>
\layout { \layout {
\context { \context {
@@ -81,6 +103,8 @@ makeScoreFull = #(define-scheme-function
\override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/3) \override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/3)
} }
} }
\midi {
}
} }
#} #}
) )