organizing pieces with variables - lyrics not aligned

2023-02-18 Thread Darren Ng
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 } >>}

nested \relative ?

2023-02-10 Thread Darren Ng
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

How to define a macro that expands to a percussion "pitch"?

2023-01-27 Thread Darren Ng
[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

Re: substitution function variable name

2023-01-22 Thread Darren Ng
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 = > >

substitution function variable name

2023-01-22 Thread Darren Ng
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