{"lyricmode", LYRICMODE},
{"lyrics", LYRICS},
{"lyricsto", LYRICSTO},
- {"mark", MARK},
{"markup", MARKUP},
{"markuplist", MARKUPLIST},
{"midi", MIDI},
%token LYRICMODE "\\lyricmode"
%token LYRICS "\\lyrics"
%token LYRICSTO "\\lyricsto"
-%token MARK "\\mark"
%token MARKUP "\\markup"
%token MARKUPLIST "\\markuplist"
%token MIDI "\\midi"
$$ = MAKE_SYNTAX ("bar-check", @$);
}
- | MARK scalar {
- $$ = MAKE_SYNTAX ("make-mark-set", @$, $2);
- }
;
command_event:
E_TILDE {
$$ = MY_MAKE_MUSIC ("PesOrFlexaEvent", @$)->unprotect ();
}
- | MARK DEFAULT {
- Music *m = MY_MAKE_MUSIC ("MarkEvent", @$);
- $$ = m->unprotect ();
- }
| tempo_event {
$$ = $1;
}
transpose from @var{around} to @var{to}.")
(music-invert around to music))
+mark =
+#(define-music-function
+ (parser location label) ((scheme? '()))
+ "Make the music for the \\mark command."
+ (let* ((set (and (integer? label)
+ (context-spec-music (make-property-set 'rehearsalMark label)
+ 'Score)))
+ (ev (make-music 'MarkEvent
+ 'origin location)))
+
+ (if set
+ (make-sequential-music (list set ev))
+ (begin
+ (set! (ly:music-property ev 'label) label)
+ ev))))
+
musicMap =
#(define-music-function (parser location proc mus) (procedure? ly:music?)
(_i "Apply @var{proc} to @var{mus} and all of the music it contains.")
'origin loc)))
addlyrics-list)))
(make-simultaneous-music (cons voice lyricstos))))
-
-(define-ly-syntax (make-mark-set parser location label)
- "Make the music for the \\mark command."
- (let* ((set (and (integer? label)
- (context-spec-music (make-property-set 'rehearsalMark label)
- 'Score)))
- (ev (make-music 'MarkEvent
- 'origin location)))
-
- (if set
- (make-sequential-music (list set ev))
- (begin
- (set! (ly:music-property ev 'label) label)
- ev))))