Re: What does everyone want? (2)

2017-04-20 Thread Jacques Menu Muzhic
Thanks David for the explanation!

JM

> Le 20 avr. 2017 à 08:51, David Kastrup  a écrit :
> 
> Jacques Menu Muzhic  writes:
> 
>> Hello David,
>> 
>>> LilyPond 3 could be a rework of the optimization engine doing away with
>>> the hard pure/unpure distinction.
>> 
>> Not sure I understand this, can you tell us more?
> 
> It's not a user-level distinction.  LilyPond currently makes line breaks
> first, page breaks afterwards.  Page break decisions do not influence
> the line break decisions.  Grobs/callbacks basically have to declare
> whether they are dependent on line break decisions or not and use
> different mechanisms and callbacks if they are.  That's awkward because
> there often are very rare circumstances where this makes a difference in
> results.
> 
> It's the main source of unexpected interactions when refining
> typesetting stuff and consequently a major roadblock for
> extending/fixing LilyPond: quite often a change has consequences where
> other stuff is falling apart unexpectedly.  That makes a lot of the
> typesetting a mine field mostly navigatable by "backend experts" since
> they have experience patching up the things falling apart as they go.
> 
> -- 
> David Kastrup


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


vocalName vs. instrumentName

2017-04-20 Thread Simon Albrecht

Hello everybody,

I’m wondering: what are the historic and functional differences between 
vocalName and instrumentName? Are there any? Does anybody have a clever 
policy when to use vocalName? Does anybody use it at all?


Best, Simon


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


Discern post-event in music function

2017-04-20 Thread Simon Albrecht

Hello,

I currently use this implementation of the \after function:

after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
   #{
 \context Bottom <<
   #m
   { \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
 >>
   #})

Unfortunately, it doesn’t allow using it with e.g. \tempo expressions, 
since it expects a post-event. So I need the music function to do 
different things depending on whether the second argument is a 
post-event or not.  How could one implement a ‘post-event?’ predicate?


Best, Simon


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


Re: Discern post-event in music function

2017-04-20 Thread caagr98
There's a `post-event?` predicate defined in 
scm/define-music-display-methods.scm. I don't think that one's easily 
accessible outside that module, but you can copy it:


(define (post-event? m)
  (music-is-of-type? m 'post-event))


On 04/20/17 16:59, Simon Albrecht wrote:

Hello,

I currently use this implementation of the \after function:

after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
#{
  \context Bottom <<
#m
{ \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
  >>
#})

Unfortunately, it doesn’t allow using it with e.g. \tempo expressions, 
since it expects a post-event. So I need the music function to do 
different things depending on whether the second argument is a 
post-event or not.  How could one implement a ‘post-event?’ predicate?


Best, Simon


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


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


Re: Discern post-event in music function

2017-04-20 Thread Simon Albrecht

Am 20.04.2017 um 17:25 schrieb caag...@gmail.com:

(define (post-event? m)
  (music-is-of-type? m 'post-event))


That’s reasonably simple :-)

Thanks, Simon

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


Re: Discern post-event in music function

2017-04-20 Thread Simon Albrecht

Am 20.04.2017 um 17:25 schrieb caag...@gmail.com:
There's a `post-event?` predicate defined in 
scm/define-music-display-methods.scm. I don't think that one's easily 
accessible outside that module, but you can copy it:


(define (post-event? m)
  (music-is-of-type? m 'post-event))


Here’s the resulting function:

after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
   (let* ((post-event? (lambda (m)
 (music-is-of-type? m 'post-event)))
  (post (post-event? e)))
 #{
   \context Bottom <<
 #m
 {
   \skip $t
   #(if post
#{ <> -\tweak extra-spacing-width #empty-interval $e #}
e)
 }
   >>
 #}))

Best, Simon

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


Re: Discern post-event in music function

2017-04-20 Thread caagr98
You could just do (let ((post (music-is-of-type? e 'post-event))) 
(stuff)). No point in creating a lambda for it.


On 04/20/17 17:43, Simon Albrecht wrote:

Am 20.04.2017 um 17:25 schrieb caag...@gmail.com:
There's a `post-event?` predicate defined in 
scm/define-music-display-methods.scm. I don't think that one's easily 
accessible outside that module, but you can copy it:


(define (post-event? m)
  (music-is-of-type? m 'post-event))


Here’s the resulting function:

after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
(let* ((post-event? (lambda (m)
  (music-is-of-type? m 'post-event)))
   (post (post-event? e)))
  #{
\context Bottom <<
  #m
  {
\skip $t
#(if post
 #{ <> -\tweak extra-spacing-width #empty-interval $e #}
 e)
  }
>>
  #}))

Best, Simon


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


Re: vocalName vs. instrumentName

2017-04-20 Thread David Kastrup
Simon Albrecht  writes:

> Hello everybody,
>
> I’m wondering: what are the historic and functional differences
> between vocalName and instrumentName?

vocalName/shortVocalName are fallbacks when neither instrumentName nor
shortInstrumentName are set.  That's all seemingly.

> Are there any? Does anybody have a clever policy when to use
> vocalName? Does anybody use it at all?

Looks rather pointless to me, to be honest.

-- 
David Kastrup

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


Re: Discern post-event in music function

2017-04-20 Thread David Kastrup
Simon Albrecht  writes:

> Am 20.04.2017 um 17:25 schrieb caag...@gmail.com:
>> There's a `post-event?` predicate defined in
>> scm/define-music-display-methods.scm. I don't think that one's
>> easily accessible outside that module, but you can copy it:
>>
>> (define (post-event? m)
>>   (music-is-of-type? m 'post-event))
>
> Here’s the resulting function:
>
> after =
> #(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
>(let* ((post-event? (lambda (m)
>  (music-is-of-type? m 'post-event)))
>   (post (post-event? e)))
>  #{
>\context Bottom <<
>  #m
>  {
>\skip $t
>#(if post
> #{ <> -\tweak extra-spacing-width #empty-interval $e #}
> e)
>  }
>>>
>  #}))

Well, one could just do

after =
#(define-music-function (t e m) (ly:duration? ly:music? ly:music?)
 #{
   \context Bottom <<
 #m
 {
   \skip $t
   <> $(tweak 'extra-spacing-width empty-interval e)
 }
   >>
 #})

since the $ will produce the proper kind of event (post-event or not).
Admittedly, this is cheating quite a bit.


-- 
David Kastrup

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


Re: how to get markup formatting to survive a font-name change

2017-04-20 Thread Abraham Lee
On Wed, Apr 19, 2017 at 9:50 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Abraham,
>
> > The \paper block should look like this (and this should be below any
> #(set-global-staff-size ...) because that resets the "fonts" variable and
> you need to add to it):
> >
> > %
> >
> > \paper {
> >   #(add-pango-fonts fonts 'minion "Minion Pro" (/ staff-height pt 20))
> >   bookTitleMarkup = ##f
> >   scoreTitleMarkup = \markup {
> > \override #'(font-family . 'minion)
> > \fromproperty #'header:title
> >   }
> > }
> >
> > %
> >
> > Now, the font choice should propagate through to the \italic command.
>
> This is fabulous! Thanks. It also propagates through \bold, with is
> wonderful.
> But my family (Crimson Text) has bold and semibold variants — can I have
> access to both?
>

Yes and no. By default, no. When you run add-pango-fonts, it only creates
entries for the following weight-style combinations:
1. normal-upright
2. normal-caps
3. bold-upright
4. normal-italic
5. bold-italic

If there isn't one of those variants, pango seems to fall-back to a closest
relative in the family.

So, you have three options:
1. do nothing and live with the above combinations
2. create a new font family that has the desired semibold as the "normal",
which would also grab the semibold italic as well
3. modify the add-pango-fonts function to create more nodes, but I'm not
sure if Pango knows how to grab variants outside of those listed above. The
nice thing is that you can modify font.scm without needing to re-compile
everything from source. I'll try adding a couple of combinations to see
what happens and report back. Otherwise, it might be a more involved
re-write to get convenient access to less common font variants without
specifying the exact font name.

I know that there was some work a while back by Alexander Kobel on
extending this to a larger family of weights/styles/widths/etc., but I
don't think it ever got finished, or did it? Perhaps Alexander can comment.
This would be a great feature, IMO.

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


[no subject]

2017-04-20 Thread Mirosław Doroszewski
Only telling the Truth sincerely, frankly, is powerful, helpful, hopeful.
Who is telling the Truth sincerely, frankly, is powerful, helpful,
hopeful — even when is telling about his/her false, powerless,
helpless, hopeless, desperate — is paradoxically powerful, helpful,
hopeful, and is begging mercy.

So: Telling false is powerless, helpless, hopeless, desperate.
Who is telling false, is powerless, helpless, hopeless, desperate.
And when see his/her powerless, helpless, hopeless, desperate — may
tell about it truly and sincerely, frankly, or may not tell about it
and think false about himself/herself, giving false ideas telling
others that are true.

What about somebody who cannot tell the Truth?
Let him/her do like a linker only trying: in a whisper, with little
voice, sincerely, being quite frank: "I cannot tell the Truth. I
cannot live with the Truth".
If the somebody is telling this, paradoxically is at once, now telling
the Truth about himself/herself — and at once, now: is powerful,
helpful, hopeful, and is sorry, regrets, begging mercy.

If I can do something, I can tell this.

If I cannot do something, let me do not tell that I can.

If the world would not pay 100,000,000,000 dollars or euro every month
for bulbs (=electric lights) in computers and computer peripherals,
even loud-speakers — i.e. Musescore and LilyPond would be in version 2
a long time ago.

Conclusions:
1) "Be good, if you are able" (Saint Philippe Neri).
2) And mercy for these, whoever wants asking or begging as long as has
chance, till death...

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


Re: (unknown)

2017-04-20 Thread David Kastrup
Mirosław Doroszewski  writes:

> Only telling the Truth sincerely, frankly, is powerful, helpful,
> hopeful.

The truth is that your content does not belong on this mailing list, and
you have been told so already.  This mailing list's description is

This list is for discussing how to use
lilypond. (www.gnu.org/software/lilypond)

If you don't have anything relevant to the list's purpose to contribute,
please do those reading the list the favor of not abusing their list for
your own agenda.

There is a time for everything, and a season for every activity under
the heavens.  Take yours where it belongs.

> If the world would not pay 100,000,000,000 dollars or euro every month
> for bulbs (=electric lights) in computers and computer peripherals,
> even loud-speakers — i.e. Musescore and LilyPond would be in version 2
> a long time ago.

LilyPond has been in version 2 for a long time already.  Your flimsy
pretense of posting something relevant to the list by adding a single
factually wrong and confused paragraph is pathetic.

If you want to discuss how to use LilyPond, this is the right place.  If
not, it isn't.  Adding some random paragraph with the word "LilyPond" to
an otherwise off-topic rant does not make it the right place, either.

Thanks for your consideration

-- 
David Kastrup

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


Re: (unknown)

2017-04-20 Thread Martin Tarenskeen



On Thu, 20 Apr 2017, David Kastrup wrote:


Musescore and LilyPond would be in version 2 a long time ago.



LilyPond has been in version 2 for a long time already.


And so has Musescore


If you want to discuss how to use LilyPond, this is the right place.  If
not, it isn't.  Adding some random paragraph with the word "LilyPond" to
an otherwise off-topic rant does not make it the right place, either.


+10

--

MT

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


What does anyone want? (4)

2017-04-20 Thread Mirosław Doroszewski
Sometime ago someone has given me an advice to turn off at all
computer from electric current always.

And someday I calculate, that these who uses computers or similar
devices, pays about 100,000,000,000 dollars or euro every month for
bulbs (=electric lights) turned on in just computer and similar
devices.

So, as yet, accordingly to the advice, I turn off computer and
computer peripherals regularly:
1) for you homeless, who leaves in the streets, who have no home, no
wifes, no children;
2) for you who want free of charge softwares;
3) for you, future priests, who want study in special seminaries which
take non-little money as high schools;
4) for you, computer customers with logo "Energy Star", who listen
from time to time not to turn on your bulbs.

Conclusion:
And mercy for all, but till death, to get future homeland, where is
harmony, no pain, no death, Life who is God without beginning...
For whom? I do not know...

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


Re: What does anyone want? (4)

2017-04-20 Thread Simon Albrecht

Am 20.04.2017 um 20:42 schrieb Mirosław Doroszewski:

Sometime ago someone has given me an advice to turn off at all
computer from electric current always.


Well, if we stop supplying our computers with electricity, we won’t have 
to worry about propagating free software anymore… :-)


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


Re: What does anyone want? (4)

2017-04-20 Thread Jeffery Shivers
Hi Miroslaw,

On Thu, Apr 20, 2017 at 2:42 PM, Mirosław Doroszewski
 wrote:
> [trimmed gobbledygook]

Please stop sending this series of rambling / off-topic / distracting
messages to the lilypond-user list. Most people come here for help or
to offer any kind of constructive conversation. You aren't doing
either. People can block you (I certainly will), but your off-topic
posts are still going to be wasting space in the archives that could
otherwise go to meaningful threads.

Thanks,
Jeffery
-- 

Jeffery Shivers
 jefferyshivers.com
 soundcloud.com/jefferyshivers

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


Re: What does anyone want? (4)

2017-04-20 Thread H. S. Teoh
On Thu, Apr 20, 2017 at 03:24:23PM -0400, Jeffery Shivers wrote:
> Hi Miroslaw,
> 
> On Thu, Apr 20, 2017 at 2:42 PM, Mirosław Doroszewski
>  wrote:
> > [trimmed gobbledygook]
> 
> Please stop sending this series of rambling / off-topic / distracting
> messages to the lilypond-user list. Most people come here for help or
> to offer any kind of constructive conversation. You aren't doing
> either. People can block you (I certainly will), but your off-topic
> posts are still going to be wasting space in the archives that could
> otherwise go to meaningful threads.
[...]

Yes, please stop sending off-topic posts to this list.  You are actually
destroying your own cause by doing this, because your inappropriate
behaviour is turning people away rather than convince them to be
sympathetic to what you have to say.  There are forums where your posts
would be welcomed, but this mailing list is not it.  Bombarding mailing
lists intended for discussing topics unrelated to your cause is not the
way to convince anyone, and you'd do yourself a favor to stop doing
that.


T

-- 
I see that you JS got Bach.

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


Re: What does anyone want? (4)

2017-04-20 Thread caagr98
For that matter, I have no idea what he's trying to say at all. It seems 
like just insane rambling.


On 04/20/17 21:36, H. S. Teoh wrote:

On Thu, Apr 20, 2017 at 03:24:23PM -0400, Jeffery Shivers wrote:

Hi Miroslaw,

On Thu, Apr 20, 2017 at 2:42 PM, Mirosław Doroszewski
 wrote:

[trimmed gobbledygook]


Please stop sending this series of rambling / off-topic / distracting
messages to the lilypond-user list. Most people come here for help or
to offer any kind of constructive conversation. You aren't doing
either. People can block you (I certainly will), but your off-topic
posts are still going to be wasting space in the archives that could
otherwise go to meaningful threads.

[...]

Yes, please stop sending off-topic posts to this list.  You are actually
destroying your own cause by doing this, because your inappropriate
behaviour is turning people away rather than convince them to be
sympathetic to what you have to say.  There are forums where your posts
would be welcomed, but this mailing list is not it.  Bombarding mailing
lists intended for discussing topics unrelated to your cause is not the
way to convince anyone, and you'd do yourself a favor to stop doing
that.


T



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


is the lyric tie tweakable?

2017-04-20 Thread Kieren MacMillan
Hi all,

Is the built-in** lyric tie/elision tweakable? I’ve found that the 
kerning/positioning changes fairly dramatically depending on the font being 
used. I’d like to try to set its position globally (rather than having to 
adjust each lyric pair it appears under), but couldn’t find the appropriate 
grobs/interfaces/properties to attack.

Thanks,
Kieren.

** I know I can roll my own undertie glyph — I was doing that as early as 2006 
— but I’d rather adjust the built-in glyph/curve.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: is the lyric tie tweakable?

2017-04-20 Thread David Nalesnik
On Thu, Apr 20, 2017 at 6:02 PM, Kieren MacMillan
 wrote:
> Hi all,
>
> Is the built-in** lyric tie/elision tweakable? I’ve found that the 
> kerning/positioning changes fairly dramatically depending on the font being 
> used. I’d like to try to set its position globally (rather than having to 
> adjust each lyric pair it appears under), but couldn’t find the appropriate 
> grobs/interfaces/properties to attack.
>
> Thanks,
> Kieren.
>
> ** I know I can roll my own undertie glyph — I was doing that as early as 
> 2006 — but I’d rather adjust the built-in glyph/curve.
> 
>

There's no LyricTie grob, so no convenient way to tweak it.   You
could modify "tied-lyric" in scm/define-markup-commands.scm, since
that's what's engaged with the tilde.

-David

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


Re: Problem with /accepts

2017-04-20 Thread Simon Albrecht

Am 17.04.2017 um 22:06 schrieb Thomas Morley:

\layout {
 \context {
 \Staff
 \accepts PP
 }
 %% copy "Voice"-settings, rename to "PP"
 \context {
 \Voice
 \name PP
 \alias Voice
 %% all engravers from Voice are present
 %% remove/add what you want
 %% add overrides as well
 }
}


This can be ‘simplified’ using \inherit-acceptability:

\layout {
\inherit-acceptability "PP" "Voice"
%% copy "Voice"-settings, rename to "PP"
\context {
\Voice
\name PP
\alias Voice
%% all engravers from Voice are present
%% remove/add what you want
%% add overrides as well
}
}

Best, Simon

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


Re:

2017-04-20 Thread Rachael Carlson
All:

I'm done with these emails. I rather enjoy reading the LilyPond mailing
list. I do not believe that this email is acceptable for the list. What can
be done?

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


Re: (unknown)

2017-04-20 Thread Rachael Carlson
The truth is that your content does not belong on this mailing list, and
you have been told so already.  This mailing list's description is

This list is for discussing how to use
lilypond. (www.gnu.org/software/lilypond)

If you don't have anything relevant to the list's purpose to contribute,
please do those reading the list the favor of not abusing their list for
your own agenda.

There is a time for everything, and a season for every activity under
the heavens.  Take yours where it belongs.


Thank you, David.

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


Re:

2017-04-20 Thread Andrew Bernard
Hi Rachael,

Cranks like this arise from time to time. The policy of the moderator is
non interference. Therefore, the best thing to do is to block messages from
this sender in your email client program. Pretty much all email programs
allow you to filter undesired senders individually.

In my opinion, the best way to remove such noise from a list is for all to
simply ignore it and not respond. The psychology of a lot of these people
is that sadly they crave attention, and posting lunatic religious rants
always stirs people up and they get the attention they crave. By utterly
ignoring them they are deprived of oxygen and they go on to the next list.
Even this email feeds his attention-getting craving, so enough!

The other way to discourage the offending behaviour is simply to laugh at
him. There is no more powerful thing than Satire! :-)

Andrew




On 21 April 2017 at 03:59, Rachael Carlson  wrote:

> All:
>
> I'm done with these emails. I rather enjoy reading the LilyPond mailing
> list. I do not believe that this email is acceptable for the list. What can
> be done?
>
> Rachael Carlson
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re:

2017-04-20 Thread Andrew Bromage

G'day.

On 21/4/17 12:16 pm, Andrew Bernard wrote:
The other way to discourage the offending behaviour is simply to laugh 
at him. There is no more powerful thing than Satire! :-)
We could always keep it on topic and turn the discussion to notating 
church music...


Andrew Bromage

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


Hairpin endings

2017-04-20 Thread Andrew Bernard
I posted a while ago with a query about hairpins, to which no response.

Would there be any way to have hairpins that don't start, or end in the
other direction, with the lines converging to the same point? I have need
from time to time of hairpins where the end points are still separated,
rather than coming to a termination together. Sure this can be done with a
whiteout box, but that is always fiddly and the position tends to move when
the score is repaginated etc etc. In the same way as the 'height' property
allows you to specify the separation at the open end, it would be useful to
have some property for this sort of thing at the pointy end. Yes,
definitely not Common Era engraving practice, but this keeps coming up in
the New Complexity scores I work with.

Any thoughts?

And by the way, a big thank you to the developers for recently adding
shorten-pair support to Hairpin.

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


Re: Hairpin endings

2017-04-20 Thread Nathan Ho

On 2017-04-20 20:42, Andrew Bernard wrote:

I posted a while ago with a query about hairpins, to which no
response.

Would there be any way to have hairpins that don't start, or end in
the other direction, with the lines converging to the same point? I
have need from time to time of hairpins where the end points are still
separated, rather than coming to a termination together. Sure this can
be done with a whiteout box, but that is always fiddly and the
position tends to move when the score is repaginated etc etc. In the
same way as the 'height' property allows you to specify the separation
at the open end, it would be useful to have some property for this
sort of thing at the pointy end. Yes, definitely not Common Era
engraving practice, but this keeps coming up in the New Complexity
scores I work with.


hi andrew,

check it out:

#(define ((open-hairpin left-open right-open) grob)
   (let* ((stencil (ly:hairpin::print grob))
  (X-ext (ly:stencil-extent stencil X))
  (Y-ext (ly:stencil-extent stencil Y))
  (width (interval-length X-ext))
  (height (interval-length Y-ext)))
 (ly:stencil-translate
   (grob-interpret-markup grob
 (markup
   (#:path 0.1
 (list (list 'moveto 0 (* height (- 0.5 (* 0.5 left-open
   (list 'lineto width (* height (- 0.5 (* 0.5 
right-open

   (list 'moveto 0 (* height (+ 0.5 (* 0.5 left-open
   (list 'lineto width (* height (+ 0.5 (* 0.5 
right-open

   (cons 0 (interval-start Y-ext)

{
  c'1\> c'1 c'1\!
  \once \override Hairpin.stencil = #(open-hairpin 1.0 0.5)
  c'1\> c'1 c'1\!
  \once \override Hairpin.stencil = #(open-hairpin 0.5 0.0)
  c'1\> c'1 c'1\!
}

respects height, but not thickness. anyone know how to convert a 
thickness value into staff spaces?



nathan

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


Re: Page frames/watermarks

2017-04-20 Thread Johan Vromans
On Wed, 19 Apr 2017 09:53:39 +0200, Psalle  wrote:

> >> I was wondering how to add a decorative frame to a score within
> >> lilypond, 
> > Thread starting at
> > http://lists.gnu.org/archive/html/lilypond-user/2017-04/msg00135.html  
> Thanks! So it seems there's no easy in-lilypond way to do such absolute 
> positioning of things... I could try the latex route suggested therein.

I find it often much easier to just produce a PDF and use some PDF tools to
add watermarks/decorations.

-- Johan

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