-
This commit is contained in:
54
functions.ly
54
functions.ly
@@ -175,4 +175,56 @@ tri = #(define-scheme-function
|
|||||||
#{
|
#{
|
||||||
\times 2/3 { $n1 $n2 $n3 }
|
\times 2/3 { $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?)
|
||||||
|
#{
|
||||||
|
%\omit TupletNumber {
|
||||||
|
\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" }
|
||||||
|
}}
|
||||||
|
|||||||
@@ -28,7 +28,9 @@ makeHdr = #(define-scheme-function
|
|||||||
makeScore = #(define-scheme-function
|
makeScore = #(define-scheme-function
|
||||||
(instrument midi music)
|
(instrument midi music)
|
||||||
(string? 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 {
|
\new Staff \with {
|
||||||
instrumentName = $instrument
|
instrumentName = $instrument
|
||||||
@@ -38,14 +40,15 @@ makeScore = #(define-scheme-function
|
|||||||
\layout {
|
\layout {
|
||||||
\context {
|
\context {
|
||||||
\Score
|
\Score
|
||||||
\override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/3)
|
\override SpacingSpanner.common-shortest-duration = #moment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\midi {
|
\midi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#}
|
#}
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
makeScoreVI = #(define-scheme-function
|
makeScoreVI = #(define-scheme-function
|
||||||
(music)
|
(music)
|
||||||
|
|||||||
Reference in New Issue
Block a user