[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to define a macro that expands to a percussion "pitch"?
From: |
Pierre-Luc Gauthier |
Subject: |
Re: How to define a macro that expands to a percussion "pitch"? |
Date: |
Sat, 28 Jan 2023 08:02:47 -0500 |
m = \drummode { hh }
Le sam. 28 janv. 2023, à 02 h 01, Darren Ng <un1gfn@gmail.com> 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 }
>
> actual output (console)
>
> percussion.ly:*:*: warning: Ignoring non-music expression
>
> \m 8 \m r4 \m
> percussion.ly:*:*: warning: Ignoring non-music expression
> \m 8
> \m r4 \m
> percussion.ly:*:*: warning: Ignoring non-music expression
> \m 8 \m r4
> \m
>
> actual output (midi)
>
> (I hear no percussion at all)
>
--
Pierre-Luc Gauthier