On Fri, 2024-08-30 at 07:07 +0200, Lukas-Fabian Moser wrote:
Firstly, thanks very much for the help. This approach does not
work
well with polyphony as you suggest. I did give it a try.
This new version implemented as an engraver does:
<SNIP>
Thanks for that. Like I said, it doesn't fix the core problem, but it
might help in some specific cases.
The approach of moving notes to different voices doesn't solve the
core
problem either. Now that I've thought about it.
The core problem is that I can't just move notes.
To be honest, I still do not understand what it is you want to
achieve in the end - and I suspect the core problem from the second
sentence is different from the core problem mentioned in the first :-
).
What I want to achieve in the end are different voicings for drum
notation using the same input notes. The different voicings are
described here:
<
https://www.onlinedrummer.com/blogs/drum-lessons/introduction-to-voicing-in-drum-notation
From that web page is a good image showing what the different voicings
look like. There are 4 songs, each notated in the 3 common voicings.
See attached. To which the author writes:
Example 1: The single-voice method (A) is preferred. Linear beats and
fills are usually best notated in a single voice.
Example 2: Splitting the part into ‘Hands’ and ‘Feet’ (B) works best.
The hands play an alternating sixteenth-note flow over an eighth-note
pulse, played on the bass drum. Note that styles A and C do not allow
for the snare to be accented by itself, so B is the clear winner.
Example 3: The bass drum and snare work together to create the rhythm,
while the crash cymbal anchors the pulse. Grouping the ‘Cymbals’ and
‘Drums’ (C) separately illustrates this most clearly.
Example 4: The alternating double-bass drum part can be thought of as a
separate entity to the ‘rhythm’ component — played with the cowbell
(triangle note head) and snare drum. The ‘B’ grouping illustrates this
most clearly.
When drumset music is written in a single voice, the addition of rests
is usually not necessary. Because there is usually a constant hihat.
If you look at all the single voice examples, there are no rests.
There is a dotted snare and bass in example 3, but those same dotted
notes appear in all the different voicings.
However in example 3, there are some added rests for the hands and feet
representation, that aren't in the other two representations. And that
is the challenge. Converting from one rhythmic representation to
another when notes are added or removed from a voice.
Hopefully that explains what I want to do. I want to input the drum
parts always in the same way and produce different output based on the
type of notation desired.
My knowledge of musical notation is limited, which is why I've been
asking the wrong questions. And now that I understand the problem
better, I don't think there is a solution within lilypond.