-\version "2.7.2"
+\version "2.9.5"
#(use-modules (srfi srfi-13)
(ice-9 format))
#(define (lily-string->markup str)
(make-column-markup (string-split str #\NewLine)))
-initTest = #(def-music-function (parser location) ()
- ;; Before using display-lily-music, it must be
- ;; inited using display-lily-init
- (display-lily-init parser)
- (set! test-number 0)
- (make-music 'SequentialMusic))
-
-test = #(def-music-function (parser location result-info strings) (string? pair?)
+test = #(define-music-function (parser location result-info strings) (string? pair?)
(display-lily-init parser)
(let ((input (car strings))
(output (cdr strings)))
(make-music 'SequentialMusic
'elements
(list (make-music 'EventChord
- 'elements (list (make-music 'BreakEvent
- 'page-penalty 0
- 'penalty -10001)))
+ 'elements (list (make-music 'LineBreakEvent
+ 'break-permission 'force)))
(make-music 'EventChord
'elements (list (make-music 'SkipEvent
'duration (ly:make-duration 0 0 1 1))
\context {
\Staff
\override StaffSymbol #'line-count = #1
- %\remove "Staff_symbol_engraver"
\remove "Time_signature_engraver"
\remove "Clef_engraver"
}
}
}
{
- \initTest
+ \fatText
%% Sequential music
\test #"" ##[ { { a b } { c d } } #] % SequentialMusic
\test #"" ##[ << { a b } { c d } >> #] % SimultaneousMusic
%% tags
\test #"" ##[ { \tag #'foo { c4 d } } #]
- \test #"" ##[ c-\tag #'(foo baz) -^ -. #]
+ \test #"" ##[ c-\tag #'foo -\tag #'baz -^ -. #]
%% Graces
\test #"" ##[ { \grace c8 d2 } #] % GraceMusic
\test #"" ##[ \lyricsto "foo" { bla bla } #] % LyricCombineMusic
\test #"" ##[ { { c d }
\addlyrics { bla bla } } #]
- \test #"" ##[ \oldaddlyrics { c d }
-\lyricmode { bla bla } #] % OldLyricCombineMusic
%% Drums
\test #"" ##[ \drums { hihat } #]
\test #"" ##[ \~ #] % PesOrFlexaEvent
\test #"" ##[ \break #]
+ \test #"" ##[ \noBreak #]
+ \test #"" ##[ \pageBreak #]
+ \test #"" ##[ \noPageBreak #]
+ \test #"" ##[ \pageTurn #]
+ \test #"" ##[ \noPageTurn #]
%% Checks
\test #"" ##[ \octave a' #] % RelativeOctaveCheck
%% Context creation
\test #"" ##[ \new Staff { c d } #] % ContextSpeccedMusic
+ \test #"" ##[ \new Staff = "up" { c d } #] % ContextSpeccedMusic
\test #"" ##[ \context Staff { c d } #]
\test #"" ##[ \context Staff = "up" { c d } #]
\test #"" ##[
\test #"" ##[ \revert Staff . Stem #'thickness #] % RevertProperty
\test #"" ##[ \revert Beam #'thickness #]
- %% \partial
-
+ %% \applyOutput
+ \test #"" ##[ \applyOutput #'Foo #(lambda (arg) (list)) #]
+ %% \applyContext
+ \test #"" ##[ \applyContext #(lambda (arg) (list)) #]
+ %% \partial
\test #"" ##[ \partial 2 #]
\test #"" ##[ \partial 8. #]
\test #"TODO? exotic durations in \\partial" ##[ \partial 4*2/3 #]
%% Cue notes
\test #"" ##[ \cueDuring #"foo" #1 { c d } #]
\test #"" ##[ \quoteDuring #"foo" { c d } #]
+
}