Re: Ignore stems

2022-03-25 Thread Simon Albrecht

Hi Jean,

On 25/03/2022 13:20, Jean Abou Samra wrote:

In English: these properties (X-extent, Y-extent, horizontal-skylines,
vertical-skylines) have implicit defaults, which are given when the
property is found not to be set. Now you're setting them to the empty
list, which for some reason (David calls it a Lispism, I agree with
him) has been chosen as the value representing lack of value, so the
default gets applied. Try #f instead. 



thanks a lot for the expert explanation! I was so sure that I have 
always seen people use #'() for clearing skylines that I didn’t try the 
obvious alternative.


Best regards!
Simon




Re: Ignore stems

2022-03-25 Thread Aaron Hill

On 2022-03-25 5:11 am, Simon Albrecht wrote:

Hello everybody,

I want to try having Lyrics placed without regard for any stems in the
adjacent staff (and then using whiteout to remedy the clash, of
course). The below approach doesn’t work. Why? Can I make it work?


You'll typically need to use negative padding to get overlapping ink.


  \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((minimum-distance . 4.5) (padding . -2))



-- Aaron Hill



Re: Ignore stems

2022-03-25 Thread Jean Abou Samra

Le 25/03/2022 à 13:11, Simon Albrecht a écrit :

Hello everybody,

I want to try having Lyrics placed without regard for any stems in the 
adjacent staff (and then using whiteout to remedy the clash, of 
course). The below approach doesn’t work. Why? Can I make it work?




From grob.cc:

Grob::Grob (SCM basicprops)
{
  [...]
  if (scm_is_null (get_property_data (this, "X-extent")))
    set_property (this, "X-extent", Grob::stencil_width_proc);
  if (scm_is_null (get_property_data (this, "Y-extent")))
    set_property (this, "Y-extent",
  Unpure_pure_container::make_smob 
(Grob::stencil_height_proc,

Grob::pure_stencil_height_proc));
  if (scm_is_null (get_property_data (this, "vertical-skylines")))
    set_property (this, "vertical-skylines",
  Unpure_pure_container::make_smob 
(Grob::simple_vertical_skylines_from_extents_proc,

Grob::pure_simple_vertical_skylines_from_extents_proc));
  if (scm_is_null (get_property_data (this, "horizontal-skylines")))
    set_property (this, "horizontal-skylines",
  Unpure_pure_container::make_smob 
(Grob::simple_horizontal_skylines_from_extents_proc,

Grob::pure_simple_horizontal_skylines_from_extents_proc));
}


In English: these properties (X-extent, Y-extent, horizontal-skylines,
vertical-skylines) have implicit defaults, which are given when the
property is found not to be set. Now you're setting them to the empty
list, which for some reason (David calls it a Lispism, I agree with
him) has been chosen as the value representing lack of value, so the
default gets applied. Try #f instead.

Jean



Ignore stems

2022-03-25 Thread Simon Albrecht

Hello everybody,

I want to try having Lyrics placed without regard for any stems in the 
adjacent staff (and then using whiteout to remedy the clash, of course). 
The below approach doesn’t work. Why? Can I make it work?


Best, Simon


\version "2.23.6"

\layout {
  \context {
    \Lyrics
    \override LyricText.show-vertical-skylines = ##t
    \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = 
#'((padding . 0.2))

  }
  \context {
    \Voice
    \override Stem.show-vertical-skylines = ##t
    \override Stem.vertical-skylines = #'()
  }
}

<<
  { b'4 }
  \addlyrics { M }
  { a'4 }
  \addlyrics { M }
>>


How to make slurs ignore stems?

2011-12-22 Thread Jakub Pavlík
In regular modern scores it is logical that the ends of a slur attach to a 
notehead or to an end of a stem, depending on the direction of stems of the 
notes connected by the slur.

I'm typesetting chant transcriptions and make stems transparent:
\override Stem #'transparent = ##t
Some slurs, attached to invisible stems, then fly high over the notes.

Is there any way to tell LilyPond to ignore stems when making slurs and attach 
slur always to noteheads?

(I attach an image showing the problem. Red dots emphasize slurs attached to 
invisible stems.)

Thanks for any help.
Jakubattachment: slursexamples.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to make slurs ignore stems?

2011-12-22 Thread David Nalesnik
Hi Jakub,

2011/12/22 Jakub Pavlík seve...@post.cz

 In regular modern scores it is logical that the ends of a slur attach to a
 notehead or to an end of a stem, depending on the direction of stems of the
 notes connected by the slur.

 I'm typesetting chant transcriptions and make stems transparent:
 \override Stem #'transparent = ##t
 Some slurs, attached to invisible stems, then fly high over the notes.

 Is there any way to tell LilyPond to ignore stems when making slurs and
 attach slur always to noteheads?


There are probably better ways to go about this, but this seems to work:

\version 2.15.16

\relative c'' {
  \override Stem #'transparent = ##t
  \override Stem #'Y-extent = ##f
  c( a g)
}

-David
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to make slurs ignore stems?

2011-12-22 Thread James
Hello,

2011/12/22 Jakub Pavlík seve...@post.cz:
 In regular modern scores it is logical that the ends of a slur attach to a 
 notehead or to an end of a stem, depending on the direction of stems of the 
 notes connected by the slur.

 I'm typesetting chant transcriptions and make stems transparent:
 \override Stem #'transparent = ##t
 Some slurs, attached to invisible stems, then fly high over the notes.

 Is there any way to tell LilyPond to ignore stems when making slurs and 
 attach slur always to noteheads?

\version 2.14.1

music = \relative c' {
\override Stem #'stencil = #point-stencil
\override Beam #'stencil = #point-stencil
 a'8( b c d) e( f g) a( | a,) b c( d e f g a)
}

\score {
  \music
}

This help?

http://lilypond.org/doc/v2.14/Documentation/learning/visibility-and-color-of-objects

'stencil'



-- 
--

James

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to make slurs ignore stems?

2011-12-22 Thread David Nalesnik
Hi again,

2011/12/22 David Nalesnik david.nales...@gmail.com


 There are probably better ways to go about this, but this seems to work:


Here's another way:

 \relative c'' {
  \override Stem #'transparent = ##t
  \stemDown
  c( a g)
}

-David
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to make slurs ignore stems?

2011-12-22 Thread Jakub Pavlík
Thank you both, David and James.
J

  Původní zpráva 
 Od: David Nalesnik david.nales...@gmail.com
 Předmět: Re: How to make slurs ignore stems?
 Datum: 22.12.2011 20:44:59
 
 Hi Jakub,
 
 2011/12/22 Jakub Pavlík seve...@post.cz
 
  In regular modern scores it is logical that the ends of a slur attach to a
  notehead or to an end of a stem, depending on the direction of stems of the
  notes connected by the slur.
 
  I'm typesetting chant transcriptions and make stems transparent:
  \override Stem #'transparent = ##t
  Some slurs, attached to invisible stems, then fly high over the notes.
 
  Is there any way to tell LilyPond to ignore stems when making slurs and
  attach slur always to noteheads?
 
 
 There are probably better ways to go about this, but this seems to work:
 
 \version 2.15.16
 
 \relative c'' {
   \override Stem #'transparent = ##t
   \override Stem #'Y-extent = ##f
   c( a g)
 }
 
 -David
 
 
 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user