music_function_call
| repeated_music
| music_bare
+ | LYRICSTO simple_string lyric_mode_music {
+ $$ = MAKE_SYNTAX ("lyric-combine", @$, $2, $3);
+ }
;
contextable_music:
{
$$ = MAKE_SYNTAX ("add-lyrics", @$, $1, scm_reverse_x ($2, SCM_EOL));
} %prec COMPOSITE
- | LYRICSTO simple_string lyric_mode_music {
- $$ = MAKE_SYNTAX ("lyric-combine", @$, $2, $3);
- }
;
music_bare:
'context-type ctx
'origin location)))
-;; TODO: It seems that this function rarely returns anything useful.
(define (get-first-context-id type mus)
"Find the name of a ContextSpeccedMusic with given type"
(let ((id (ly:music-property mus 'context-id)))
- (if (and (eq? (ly:music-property mus 'type) 'ContextSpeccedMusic)
+ (if (and (eq? (ly:music-property mus 'name) 'ContextSpeccedMusic)
(eq? (ly:music-property mus 'context-type) type)
(string? id)
(not (string-null? id)))
existing-voice-name
(get-next-unique-voice-name)))
(voice (if (string? existing-voice-name)
- (music)
+ music
(make-music 'ContextSpeccedMusic
'element music
'context-type 'Voice