m = \drummode { hh }
Le sam. 28 janv. 2023, à 02 h 01, Darren Ng a écrit :
>
> [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 }
>
Furthermore, for the record, the same trick also works in the case where there
is no break after the end-repeat sign. In this case the second of the three
inner lists in Score.BreakAlignment.break-align-orders governs the order. So I
want to modify both the 1st and the 2nd list. From the documen
Hi Pierre-Luc,
Am 28.01.23 um 14:02 schrieb Pierre-Luc Gauthier:
m = \drummode { hh }
Unfortunately not: This turns m into "music" including a duration.
Hence, \m 8 will be interpreted as "first \m" (with its own pitch), then
another one of duration 8.
Compare:
\version "2.24.0"
m = \dru
> Le 28 janv. 2023 à 08:01, Darren Ng a écrit :
>
> [subject] How to define a macro that expands to a percussion "pitch"?
It may be worth noting that LilyPond does not have macros, only variables and
regular functions. Call me pedantic, but I think it is helpful not to conflate
the two. Th
Jean Abou Samra writes:
>> Le 28 janv. 2023 à 08:01, Darren Ng a écrit :
>>
>> [subject] How to define a macro that expands to a percussion "pitch"?
>
>
> It may be worth noting that LilyPond does not have macros, only
> variables and regular functions. Call me pedantic, but I think it is
> he
On 28/01/2023 16:51, David Kastrup wrote:
> Jean Abou Samra writes:
>
>>> Le 28 janv. 2023 à 08:01, Darren Ng a écrit :
>>>
>>> [subject] How to define a macro that expands to a percussion "pitch"?
>>
>>
>> It may be worth noting that LilyPond does not have macros, only
>> variables and regular
On 28/01/2023 06:52, Ole V. Villumsen wrote:
> Thanks, everyone, for your contributions.
>
> First of all Jean. Your code gives me exactly what I wanted. I haven’t
> learned to use the internals, but see here that it’s useful.
>
>> Not sure, but my guess is that LilyPond might be trying to make
>> Under 2.22 I do not get extra space.
>
> That’s still more curious. On 2.22.2 I get a warning
> that the break is overwritten by another event, so we
> don’t get the line break that I had specified and wanted.
It's expected. 2.22 doesn't accept mid-measure breaks without
a bar line. You need
On 22/01/2023 18:31, Jean Abou Samra wrote:
> Le 22/01/2023 à 18:22, Darren Ng a écrit :
>> Thanks. The following works:
>>
>> accOne =
>> #(define-music-function
>> (x )
>> (ly:pitch?)
>> #{
>> $x 8 $x 8
>> #})
>>
>> My ultimate goal is a function which
Hi Christian,
Unless I'm misunderstanding what you want, it really seems to me like
this would be better solved by building the scores independently, rather
than using tags and “breaking down” the scores late in the process.
Have you considered that option?
Do you know about \partCombine, etc
10 matches
Mail list logo