[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: |
Lukas-Fabian Moser |
Subject: |
Re: How to define a macro that expands to a percussion "pitch"? |
Date: |
Sat, 28 Jan 2023 14:44:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
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 = \drummode { hh }
\drummode { \m 8 \m r4 \m }
\drummode { hh8 hh8 r4 hh4 }
But what you can do is:
\version "2.24.0"
drumPitchNames.m = #'hihat
\drummode { m8 m r4 m }
(which might be even better than the OP hoped for).
Lukas