Re: Simultaneous ottava and non-ottava voices
Thank you! -Ahanu On Fri, Jul 1, 2022, 04:00 Paul Hodges 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 > * To: * lilypond-user > * 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 > >
Re: Simultaneous ottava and non-ottava voices
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 To: lilypond-user 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
Re: Simultaneous ottava and non-ottava voices
Dear Ahanu, There is an example ( https://lilypond.org/doc/v2.22/Documentation/notation/displaying-pitches#ottava-brackets ) in the documentation which covers this subject. Is there anything else about this that isn't working for you? -William --- { \clef bass << { 1~ q2 } \\ { r2. \set Staff.ottavation = #"8vb" \once \override Staff.OttavaBracket.direction = #DOWN \set Voice.middleCPosition = #(+ 6 7) 4 ~ | q2 \unset Staff.ottavation \unset Voice.middleCPosition 2 } >> } On 6/30/22 19:24, Ahanu Banerjee wrote: 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 -- William Rehwinkel will...@williamrehwinkel.net https://williamrehwinkel.net