[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple voices inside CueVoice
From: |
Jean Abou Samra |
Subject: |
Re: multiple voices inside CueVoice |
Date: |
Sat, 11 Jun 2022 17:56:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
Le 11/06/2022 à 17:48, Kieren MacMillan a écrit :
Hi all,
Am I the only one that wishes this snippet behaved “as expected”**?
%%% SNIPPET BEGINS
\version "2.22.1"
\new CueVoice {
c'4 4 4 4
\voices 1,2 << { d'4 4 4 4 } \\ { b2 2 } >>
c'4 4 4 4
}
%%% SNIPPET ENDS
** By “as expected”, I mean that I believe most users would expect all of the
notes within a \new CueVoice {} construct to behave like a CueVoice, and thus
(e.g.) be of the same font size. I basically understand why it behaves as it
does… but is there an easy way to make this Do The Right Thing™ without the
need for extra coding (e.g., \tiny) on the part of the user?
Yeah, that's a bit unfortunate. Basically, the default
child of Staff is Voice, and there isn't a way for
a command issued in CueVoice to "know" that it's in
CueVoice and let other CueVoices be created instead.
You could use this hack though:
\version "2.22.1"
\layout {
\context {
\Staff
\accepts CueGroup
}
\context {
\name CueGroup
\type Engraver_group
\accepts CueVoice
\alias Staff
}
}
\new CueGroup {
c'4 4 4 4
\voices 1,2 << { d'4 4 4 4 } \\ { b2 2 } >>
c'4 4 4 4
}
Best,
Jean