In the following sheet,
"Dave" and "Ed" are not on the same line.
How to properly group melodies and their matching lyrics into variables,
while keeping lyrics on the same line?
\version "2.24.1"
segmentA = {<<
{ c4 c4 c4 c8 r8 }
\addlyrics { Alice Bob Cathy Dave }
>>}
I want to achieve the following:
(1) $a is respects $x as its "startpitch"
(2) $b is respects $x as its "startpitch"
(3) removing A has no effect on B
\relative $x {
%{A%} { $a ... }
%{B%} { $b ... }
}
In the example above: (1)=ok (2)=fail (3)=fail
\relative $x {
%{A%} \relativ
[subject] How to define a macro that expands to a percussion "pitch"?
input is
m = hh
\drummode { \m 8 \m r4 \m }
expected output should be equivalent to
\drummode { hh8 hh8 r4 hh4 }
actual output (console)
percussion.ly:*:*: warning: Ignoring non-music expression
2:36 AM Jean Abou Samra wrote:
>
>
>
> Le 22/01/2023 à 17:33, Jean Abou Samra a écrit :
> >
> >
> > Le 22/01/2023 à 17:20, Darren Ng a écrit :
> >> Define substitution function accOne() as:
> >>
> >> accOne =
> >
x8
Unbound variable: x8
Interpreting music...
How to tell lilypond to look for variable "x" and make a 1/8 note out of it,
instead of looking for variable "x8"?
Thanks.
Darren Ng