LilyPond Visual Index

2023-09-15 Thread Werner LEMBERG
Folks, I've just submitted a Merge Request for a new version of the LilyPond Visual Index, to be added to LilyPond's documentation. https://gitlab.com/lilypond/lilypond/-/merge_requests/2107 Please comment! Werner

Re: Array variables and loops (for lyrics)

2023-09-15 Thread Jean Abou Samra
Hi, Try \version "2.24.2" textArray = << { \lyricmode { \set stanza = "1" fo -- o bar } } { \lyricmode { \set stanza = "2" fo -- o bar } } >> \score { << \new Voice = "soprano" { c'1 1 1 } #@(map (lambda (mus) #{ \new Lyrics { \lyricsto "soprano" { #mus } } #}) (ly:musi

Re: Array variables and loops (for lyrics)

2023-09-15 Thread Mauro Levra
Wonderful! Thank you very much. It works perfectly. Is is possible to conditionally execute the #@ expression based on whether the 'textArray' variable is bound? I have tried, but I have not succeeded. As a workaround I have defined an empty 'textArray' in my head.ly which is sometimes redefine

Merging dynamics with music

2023-09-15 Thread mskala
I'm trying to use a Dynamics context to put dynamics between the staves of a PianoStaff. As such, I've got my notes and my dynamics in two separate variables. For MIDI output, I'd like to merge the contents of the music variable and the dynamics variable and generate MIDI from the result. But I c

Re: Merging dynamics with music

2023-09-15 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > I'm trying to use a Dynamics context to put dynamics between the staves of > a PianoStaff. As such, I've got my notes and my dynamics in two separate > variables. For MIDI output, I'd like to merge the contents of the music > variable and the dynamics variable