|
From: | William Rehwinkel |
Subject: | Re: Change stem direction for voice? |
Date: | Sun, 25 Aug 2024 20:44:19 -0400 |
User-agent: | Mozilla Thunderbird |
Dear Stefano, Replying back to you and re-adding the list to this.I see. Quick note about your example: in your attached file on line 98 if you replace
\layout { \context { \Voice \override Beam.positions = #'(5 . 5) } with \layout { \context { \Score \stemUp \override Beam.positions = #'(5 . 5) } I think the stems and beams will work as you were hoping.As for a template to write drum rhythms in multiple ways, I don't know if that has been done yet. You would have to ask someone else who has more experience writing drum parts. Maybe someone has written a .ily file which has functions to handle that kind of thing, or you could write it someday. But it would be very difficult, because you have to combine voices with different rhythms on the same stem. But anything is possible with lilypond when we are able to use scheme, it's just a question of how difficult it is.
As an aside, I think that it is not a good idea to write the notes in different voices and have the beams collide. One reason is that if you change the rhythm of one voice, such as making the snare be dotted eighth, sixteenth, the notation will be incorrect (see attached image).
Thanks, -William On 8/25/24 18:02, Stefano Antonelli wrote:
On Sun, 2024-08-25 at 16:45 -0400, William Rehwinkel wrote:Dear Stefano,Hi William,See the attached example which may fix what you have in mind. In it the default lilypond procedure "make-voice-props-set" (which is called when you use << // >> as well as \voiceOne \voiceTwo etc.) is overwritten so that Stems are always up.I was thinking of doing exactly that and didn't know how. Thank you for doing that.Thanks, let me know if this is what you were intendingWhile it worked in your example, when I eventually tried it with my own music, it didn't behave well. See attached. Oddly there were still down stems. And the override I was using for beam position no longer had any effect. Even though the effect wasn't what I wanted. But thank you for trying. Ideally, I could choose whether stems are up or down depending on the convention. There are three for drum notation: 1. all stems up 2. hands stems up, feet stems down 3. cymbals stems up, drums stems down I'd like the same music input for all 3 conventions. That's what I am intending. I think the only sensible way to go about this is ugly. up = \stemUp \slurDown \override Beam.positions = #'(5 . 5) down = \stemDown \slurUp \override Beam.positions = #'(-5 . -5) % change v1 to v4 to suit convention vA = \up vB = \up vC = \down vD = \down beat = \drummode { << {\vA ...} \\ {\vB ...} \\ {\vC ...} \\ {\vD ...} >> } I have not tested it, but there doesn't seem to be an easier way around it. Maybe a scheme function could be used to do some text substitution, but I wouldn't know where to start with that.
-- William Rehwinkel (any pronouns) Juilliard School '26 - Oberlin Conservatory '24 william@williamrehwinkel.net - https://williamrehwinkel.net PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt
mwe2.cropped.png
Description: PNG image
OpenPGP_signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |