Menu

#4108 Ossia is 'too long' if there is a key change in the other Staffs

Duplicate
nobody
None
Ugly
2014-10-06
2014-09-17
Anonymous
No

Originally created by: *anonymous

Originally created by: pkx1...@gmail.com
Originally owned by: dak@gnu.org

On 30/08/14 17:42, Peter Van Kranenburg wrote:

> If right after an ossia there is a key change in the other parts, the
> staff of the ossia extends with the length of the key signature. See
> below for an example.
>
> I tried to do \set Staff.explicitKeySignatureVisibility = #all-invisible
> in the ossia staff, but that didn't work.

>
>
> \version "2.18"
>
> <<
>   \new Staff = "ossia" \with {
>     \remove "Time_signature_engraver"
>     \hide Clef
>     fontSize = #-3
>     \override StaffSymbol.staff-space = #(magstep -3)
>     \override StaffSymbol.thickness = #(magstep -3)
>   }
>   { \stopStaff s1*6 }
>
>   \new Staff \relative c' {
>     c4 b c2
>     <<
>       { e4 f e2 }
>       \context Staff = "ossia" {
>         \startStaff e4 g8 f e2 \stopStaff
>       }
>     >>
>     \key a \major g4 a g2 \break
>     c4 b c2
>   }
>>>

Discussion

  • Google Importer

    Google Importer - 2014-09-17

    Originally posted by: pkx1...@gmail.com

    Peter Van Kranenburg <peter.van.kranenburg@meertens.knaw.nl>:

        I can't figure out how to make the ossia stop right at the bar line.

    On 30/08/14 20:56, Pierre Perol-Schneider wrote:

    No clue right now but here's a workaround :

    \context Staff = "ossia" {
            \override Staff.StaffSymbol.width = #73.4 % or whatever the right setting is.
            \startStaff
              e4 g8 f e2
            \stopStaff
          }

     
  • Google Importer

    Google Importer - 2014-09-17

    Originally posted by: pkx1...@gmail.com

    another solution would have been to put the ossia as a markup, e.g. :

    \version "2.18.2"

    ossia =
      \tweak self-alignment-X #RIGHT
      \tweak padding #3
      \mark\markup\score {
      \new Staff
      \with {
        alignAboveContext = #"myStaff"
        \omit Clef
        \omit TimeSignature
        fontSize = #-3
        \override StaffSymbol.staff-space = #(magstep -3)
        \override StaffSymbol.thickness = #(magstep -3)
      }
      \relative c' {
        \stopStaff\partial 8 s8
        \startStaff
          <<
            { e4 g8 f e2 }
            {
              % here's how to enlarge the ossia
              \hide MultiMeasureRest
              \override MultiMeasureRest.minimum-length = #31
              [r1]
            }
          >>
        \stopStaff
      }
      \layout { }
    }

    \new Staff \relative c' {
      c4 b c2
      e4 f e2
      \ossia
      \key a \major
      g4 a g2
      \break
      c4 b c2
    }

    Cheers,
    Pierre

     
  • Google Importer

    Google Importer - 2014-09-17

    Originally posted by: pkx1...@gmail.com

    On 31/08/14 11:24, David Kastrup wrote:

    Here is another:

    \version "2.19"

    \markup\italic "Ossia staff's too long at key change:"

    \new Staff = "main" \relative c'' {
      c4 b d c
      <<
        { c4 b d c }
        \new Staff \with {
          \omit TimeSignature
          alignAboveContext = #"main"
          \magnifyStaff #2/3
          firstClef = ##f
        }
        { e4 d f e }
      >>
      \key a\major
      c4 b c2
    }

    \markup\italic "This is almost a fix"
    \new Staff = "main" \relative c'' {
      c4 b d c
      <<
        { c4 b d c }
        \new Staff \with {
          \omit TimeSignature
          alignAboveContext = #"main"
          \magnifyStaff #2/3
          firstClef = ##f
        }
        { e4 d f e \grace { \stopStaff s } }
      >>
      \key a\major
      c4 b c2
    }

    However, it affects spacing somewhat curiously if you compare with the
    original.

    Maybe one should replace \magnifyStaff and check whether the artifacts
    in either version have a longer history or not.

     
  • Google Importer

    Google Importer - 2014-09-17

    Originally posted by: pkx1...@gmail.com

    Pierre Perol-Schneider wrote:

    Nice ! Plus it's also working for time changes issue :

    \version "2.19"

    \markup\italic "Ossia staff's too long at time change:"

    \new Staff = "main" \relative c'' {
      c4 b d c
      <<
        { c4 b d c }
        \new Staff \with {
          \omit TimeSignature
          alignAboveContext = #"main"
          \magnifyStaff #2/3
          firstClef = ##f
        }
        { e4 d f e }
      >>
      \time 3/4
      c4 b c
    }

     
  • Google Importer

    Google Importer - 2014-10-03

    Originally posted by: dak@gnu.org

    (No comment was entered for this change.)

    Mergedinto: 660
    Status: Duplicate

     
  • Google Importer

    Google Importer - 2014-10-06

    Originally posted by: dak@gnu.org

    (No comment was entered for this change.)

    Owner: dak@gnu.org