lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beam.positions affecting space between staves


From: Karim Haddad
Subject: Re: Beam.positions affecting space between staves
Date: Tue, 20 Aug 2024 02:59:42 +0200

Thank you a lot all of you for your feedbacks.

I have figured it out, however it is not that straight forward thing.

First let me show you the not so MWE example in "real" context, ie in the score 
i am producing for Keyboard and live elecronics. The 01.png screenshot is what 
i get  at first. And thanx for the crossStaff suggestion by Xavier, i adjusted 
it in 02.png. Ok I admit, the score is scarry (but in rpogress), but waht the 
hell... it was saturday night time :-)

[The change/hack is on the first beat of the 5/8 measure (third meas.)  the 5/6 
tuplet.]

So my solution  as a MWE that i posted first was the following:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.25.1"
 
"one"=
{
%%%%%%%%%%%%%%%%%%%%%%% MESURE : 1 %%%%%%%%%%%%%%%%%%%%%%%
\tempo 4 = 60
\time 4/4
\once \override Beam.positions=#'(6  . 6)
\override NoteHead.transparent=##t
\override NoteHead.no-ledgers = ##t
\override Accidental.transparent = ##t
c'8 c'8 c'8 c'8
\revert NoteHead.transparent
\revert NoteHead.no-ledgers
\revert Accidental.transparent
c'4
c'4
|
} 
 

"two"=
{
\time 4/4
\autoBeamOff
\stemUp
\crossStaff { c'8 c'8 c'8 c'8}
\autoBeamOn
\stemNeutral

c'4
c'4
|
} 
 
\score { 
 { 
<<
\new PianoStaff
 << 
\new Staff = "up" {
\one
}

\new Staff = "down" {
\two
}
 >> 
 >> 
} 
\layout {
ragged-last = ##f
indent = 0.0
        \context {\PianoStaff
          \consists #Span_stem_engraver
            }
            }
            }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


But i must admit, i hoped a more simpler solution involving Grobs. But here I 
am a novice. I mean by that, a way to override the spacing without all the 
above overrides. But what the heck, it works with this solution so i will live 
with that. :-)


I Thank you all a lot, and all the Lilypond community and dev team.
Love all

Best
Karim



On Tue, Aug 20, 2024 at 01:36:48AM +0200, Leo Correia de Verdier wrote:
> I’m at the hospital, far from my library, and anyways not sure about exactly 
> how Karim wants them to look or behave. I was just pointing out it’s nothing 
> really exotic in contemporary music.
> 
> Anyway: An alternative approach, somewhat blunter but simpler
> 
> \version "2.25.12"
> one =   { 
>     s2 c'4 c'4
>   }
> two =   { 
>     \temporary \override Stem.vertical-skylines = ##f
>     \temporary \override Beam.vertical-skylines = ##f
>     \override Beam.positions = #'( 18 . 18 ) c'8 8 8 8
>     \revert Stem.vertical-skylines
>     \revert Beam.vertical-skylines
>   c'4 c'4
>   }
>   
> \new StaffGroup 
> <<
>   \new Staff
>  \one
>   \new Staff
>  \two
> >>
> 
> > 19 aug. 2024 kl. 22:49 skrev Werner LEMBERG <wl@gnu.org>:
> > 
> > 
> >> Common beams for both staves, sometimes pulled outside them are used
> >> in contemporary music when the resultant rhythm from both staves of
> >> a single instrument are significantly easier to grasp than the
> >> separate rhythms of the separate staves.  It also hints at both
> >> staves having a common voice or musical material.
> > 
> > Please provide a scan of a real-world example to show what you really
> > want to achieve.
> > 
> > 
> >    Werner
> 

-- 
Karim Haddad

Music Representations Team, IRCAM
Research and development manager.
email   : karim.haddad@ircam.fr
webpage : http://karim.haddad.free.fr

Attachment: 01.png
Description: PNG image

Attachment: 02.png
Description: PNG image

Attachment: solution_simplex.ly
Description: Text Data

Attachment: solution_simplex.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]