Thank you!

-Ahanu

On Fri, Jul 1, 2022, 04:00 Paul Hodges <p...@cassland.org> wrote:

> The ottava bracket needs both ends defined to appear, so the ottava
> command and its cancellation should be at the start and end of the music to
> be affected, like this:
>
>   << { \ottava 1 \repeat unfold 4 c'' \ottava 0 } \\ { \repeat unfold 4
> d,, } >>
>
> However, the command is acted on at the staff level, so both voices are
> affected as you have observed.  This is changed not by what you have tried
> doing, but by removing the engraver from the staff context and inserting it
> in the voice context so that only the voice containing the commands is
> affected, like so:
>
> \layout {
>   \context {
>     \Staff
>     \remove Ottava_spanner_engraver
>   }
>   \context {
>     \Voice
>     \consists Ottava_spanner_engraver
>   }
> }
>
> See the first snippet at
> https://lilypond.org/doc/v2.23/Documentation/snippets/tweaks-and-overrides
>
> Paul
>
>
> * From: * Ahanu Banerjee <athecell...@gmail.com>
> * To: * lilypond-user <lilypond-user@gnu.org>
> * Sent: * 01/07/2022 0:24
> * Subject: * Simultaneous ottava and non-ottava voices
>
> Hi,
>
> Is it possible to have two voices in one measure, on one staff, with one
> voice as "Ottava 1" and the other as "Ottava 0"? (I realise this notation
> may seem unclear, but I have a specific use case.)
>
> If I try the following, each ottava overrides the other:
>
> \version "2.23.10"
> \relative c' {
>   << { \ottava 1 \repeat unfold 4 c'' } \\ { \ottava 0 \repeat unfold 4
> d,, } >>
> }
>
> Thanks,
> -Ahanu
>
>

Reply via email to