Fwd: [Frescobaldi] Re: export the user guide to HTML (issue 825)

2019-01-29 Thread Urs Liska
Forwarding this to lilypond-user because I think not all potential 
addressees are also subscribed to the Frescobaldi mailing list ...



 Weitergeleitete Nachricht 
Betreff:[Frescobaldi] Re: export the user guide to HTML (issue 825)
Datum:  Tue, 29 Jan 2019 23:34:24 -0800 (PST)
Von:g...@ursliska.de
Antwort an: frescoba...@googlegroups.com
An: Frescobaldi 



Am Mittwoch, 30. Januar 2019 07:23:45 UTC+1 schrieb Federico Bruni:

   Hi folks

   As you know, the current user guide for Frescobaldi 3 is available only
   within the application. Exporting it to HTML is a long standing issue
   (at least since 2016):
   >

   There's anybody who's willing to work on it? :-)
   It would be great to get this done in the next future, as I'm working
   on the new website for Frescobaldi and it would be good to be able to
   include the HTML user manual.

   You don't have to be acquainted with Frescobaldi code base - Urs told
   me. Here's what he wrote to me:

> When displaying a page in the user guide Frescobaldi converts the
> Markdown file to HTML and then loads that in the text browser
   widget.
> So it should be *fairly* straightforward to write a harvesting tool
> that does that for the whole structure - it's basically about
> *managing*, not about doing the basic work.
> It should be equally possible to implement that within Frescobaldi
> ("Export User Guide") or as a standalone tool. The latter would look
> more natural to me while the former might be easier to do.

   
>


   Any volunteer?


Let me just add that this would be a great way to support Frescobaldi 
development with a medium-commitment contribution ;-)


Urs


   Thanks
   Federico

   PS
   The website I'm working on is generated with Hugo from Markdown
   sources.
   In theory I may add above userguide as a git submodule in a content
   directory and let Hugo convert it to HTML. This would work if the user
   guide files were simple Markdown, but they contain variables and other
   stuff which only Frescobaldi scripts can understand.



--
Frescobaldi homepage: http://www.frescobaldi.org/
Mailing list: http://groups.google.com/group/frescobaldi
Issue tracker: https://github.com/wbsoft/frescobaldi/issues
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Configuration Point & Click

2019-01-29 Thread Federico Bruni




Il giorno mar 29 gen 2019 alle 22:21, foxfanfare  
ha scritto:

Hi fellow lilyponders!

I would have need some of your help understanding how the Point & 
Click
option works. I switched from Windows to Linux some weeks ago (please 
be
gentle with me, I'm still a noob in this world!) and I'm trying to 
set-up a
minimalist desktop. I've installed ArchLinux and configured already 
some
basic things and I am trying now to set up all my LilyPond 
workstation.


What I can do: I can edit my lilypond file with vim (my main editor),
compile it with a shortcut, see at the same time the PDF in another 
window

(I've choosen Zathura) which is updated automatically.

What I can't do: set-up the point & click!

I'm sorry, I read the documentation several times, tried a lot of 
things,
but I have to admit that I can't figure how this works by myself... 
Is there

by any chance someone using a similar configuration who could help me?

What I think I've understood so far:
-LP generate a PDF with URL links which start with textedit:///...
- I should set-up zathura to open those links with 
lilypond-invoke-editor

(... I didn't found how yet...)
-lilpypond-invoke-editor should interract properly with vim.

Right now, when I click on the PDF link, the textedit:///... link 
goes to

firefox, and I get a message in my vim file at the same time saying
"/usr/bin/xdg-open: line 881: x-www-browser: commande introuvable"
And when I type in the console lilypond-invoke-editor following with 
the
textedit link, it opens correctly the vim file, but the cursor isn't 
at the

good position...

To make a long story short, I'm lost here!



Hi

I have a blog post draft (since some months...) for lilypondblog.org on 
this subject. It's not released yet because I had some troubles 
configuring Windows and especially Mac. Hopefully I'll finalize it next 
week (the last famous words...).


You have two problems:

1. lilypond-invoke-editor doesn't open the correct position because you 
did not set the correct vim command in your .bashrc, that is:


export LYEDITOR="vim '+call cursor(%(line)s, %(column)s)'"

This command may be added to LilyPond _in the future_ and then you will 
be able to simply set vim:


export LYEDITOR=vim


2. xdg-open error
Configuring Linux should be easy and it's explained in the docs.
Which desktop environment are you using in Arch?
You'll probably have to follow the instructions for GNOME 3.. which I 
guess it should work for any Freedesktop.org desktop environment, but I 
didn't check.


http://lilypond.org/doc/v2.19/Documentation/usage/configuring-the-system-for-point-and-click#using-gnome-3-for-point-and-click





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


Re: Please test new lilypond installers

2019-01-29 Thread Michael Käppler

Am 29.01.2019 um 10:19 schrieb Knut Petersen:


lilypond-2.21.0-1.linux-64.sh


Works fine, Ubuntu 18.04.1 LTS, Kernel 4.15.0-36-generic running as
guest in VirtualBox 5.2.22 r126460, host Windows 10 Version 1803.


lilypond-2.21.0-1.mingw.exe


Works fine too, Windows 10 Version 1803.

Thank you all for your great work!

Michael

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


Configuration Point & Click

2019-01-29 Thread foxfanfare
Hi fellow lilyponders!

I would have need some of your help understanding how the Point & Click
option works. I switched from Windows to Linux some weeks ago (please be
gentle with me, I'm still a noob in this world!) and I'm trying to set-up a
minimalist desktop. I've installed ArchLinux and configured already some
basic things and I am trying now to set up all my LilyPond workstation.

What I can do: I can edit my lilypond file with vim (my main editor),
compile it with a shortcut, see at the same time the PDF in another window
(I've choosen Zathura) which is updated automatically.

What I can't do: set-up the point & click! 

I'm sorry, I read the documentation several times, tried a lot of things,
but I have to admit that I can't figure how this works by myself... Is there
by any chance someone using a similar configuration who could help me?

What I think I've understood so far:
-LP generate a PDF with URL links which start with textedit:///...
- I should set-up zathura to open those links with lilypond-invoke-editor
(... I didn't found how yet...)
-lilpypond-invoke-editor should interract properly with vim.

Right now, when I click on the PDF link, the textedit:///... link goes to
firefox, and I get a message in my vim file at the same time saying
"/usr/bin/xdg-open: line 881: x-www-browser: commande introuvable"
And when I type in the console lilypond-invoke-editor following with the
textedit link, it opens correctly the vim file, but the cursor isn't at the
good position...

To make a long story short, I'm lost here!



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Forcing horizontal space between successive notes

2019-01-29 Thread Kieren MacMillan
Hi David,

> How can one force additional space between 2 successive musical moments
> in a score, without affecting the spacing algorithm to the left and right?


{
  c'4 \tweak extra-spacing-width #'(0 . 4) 4 4 4
}

??

Hope that helps!
Kieren.


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: postscript printers for lilypond

2019-01-29 Thread David Kastrup
k...@aspodata.se writes:

> Karl:
>> David:
> ...
>> >  I just
>> > recently removed a Ghostscriptism (using max/mix operators) that would
>> > have made regular PostScript interpreters barf.  Maybe that's fixed in
>> > master now?
>
> Yes, I see it.
>
>> I'll try that, though there where some problems with the guile version 
>> and some fonts last time I compiled lilypond.
>
> Ok, compiled new lilypond, only problem vas guile and texi2html 
> versions and I had to rebuild extractpdfmark also for make doc to work.
>
> Still, the printer reports error.

Sorry for the wasted effort: I think it was worth a try.

-- 
David Kastrup

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


Re: Please test new lilypond installers

2019-01-29 Thread Paul Morris

On 1/29/19 1:24 PM, David Kastrup wrote:


Paul Morris  writes:


On 1/29/19 4:19 AM, Knut Petersen wrote:


lilypond-2.21.0-1.linux-64.sh

Installed on Ubuntu 18.04.1 LTS and tested with a couple of
pieces. Everything appears to be working fine.

Thanks to all for the work on GUB and the next stable LilyPond release!

Well, 21.0 is the next unstable release...


Ah, yes, I didn't intend to imply otherwise, but I see how what I wrote 
could have been misleading.  (I was just thinking along the lines of 
'work on GUB contributes to the release of the next stable', but I may 
not be fully aware of all the details there.)


Thanks for the clarification.

-Paul


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


Re: postscript printers for lilypond

2019-01-29 Thread karl
Karl:
> David:
...
> >  I just
> > recently removed a Ghostscriptism (using max/mix operators) that would
> > have made regular PostScript interpreters barf.  Maybe that's fixed in
> > master now?

Yes, I see it.

> I'll try that, though there where some problems with the guile version 
> and some fonts last time I compiled lilypond.

Ok, compiled new lilypond, only problem vas guile and texi2html 
versions and I had to rebuild extractpdfmark also for make doc to work.

Still, the printer reports error.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden



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


Re: Please test new lilypond installers

2019-01-29 Thread David Wright
On Tue 29 Jan 2019 at 13:56:00 (-0600), David Wright wrote:
> On Tue 29 Jan 2019 at 10:19:33 (+0100), Knut Petersen wrote:
> > Hi everybody
> > 
> > Urs Liska provides installers for branch master of lilypond, generated by 
> > an updated version of our build system GUB:
> > 
> >https://cloud.ursliska.de/s/QPINwLqJNeVslCu
> > 
> > There you'll find
> > 
> >lilypond-2.21.0-1.darwin-ppc.tar.bz2
> >lilypond-2.21.0-1.darwin-x86.tar.bz2
> >lilypond-2.21.0-1.freebsd-64.sh
> >lilypond-2.21.0-1.freebsd-x86.sh
> >lilypond-2.21.0-1.linux-64.sh
> >lilypond-2.21.0-1.linux-ppc.sh
> >lilypond-2.21.0-1.linux-x86.sh
> >lilypond-2.21.0-1.mingw.exe
> >lilypond-2.21.0.tar.gz
> > 
> > Please test if those files provide valid lilypond installations and report 
> > success / failure by replying to this thread if no identical test results 
> > already have been posted.
> 
> I downloaded and installed lilypond-2.21.0-1.linux-64.sh.
> Running this on a couple of scores, things looked fine.

And just the same with lilypond-2.21.0-1.linux-x86.sh,
both these on Debian 9 stretch.

Cheers,
David.

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


Re: Please test new lilypond installers

2019-01-29 Thread David Wright
On Tue 29 Jan 2019 at 10:19:33 (+0100), Knut Petersen wrote:
> Hi everybody
> 
> Urs Liska provides installers for branch master of lilypond, generated by an 
> updated version of our build system GUB:
> 
>https://cloud.ursliska.de/s/QPINwLqJNeVslCu
> 
> There you'll find
> 
>lilypond-2.21.0-1.darwin-ppc.tar.bz2
>lilypond-2.21.0-1.darwin-x86.tar.bz2
>lilypond-2.21.0-1.freebsd-64.sh
>lilypond-2.21.0-1.freebsd-x86.sh
>lilypond-2.21.0-1.linux-64.sh
>lilypond-2.21.0-1.linux-ppc.sh
>lilypond-2.21.0-1.linux-x86.sh
>lilypond-2.21.0-1.mingw.exe
>lilypond-2.21.0.tar.gz
> 
> Please test if those files provide valid lilypond installations and report 
> success / failure by replying to this thread if no identical test results 
> already have been posted.

I downloaded and installed lilypond-2.21.0-1.linux-64.sh.
Running this on a couple of scores, things looked fine.
(One slight spacing difference in comparison with 2.19.80.)

The tree of files has some differences, but I don't know enough
about where things should be to have an opinion on what's right/better.

The only thing that might concern you is that I went to the web page
above, RightClicked on the file I wanted, selected 'Copy link location'
and pasted the result as the target of wget.

Here's the resulting dialogue:

$ wget 
https://cloud.ursliska.de/s/QPINwLqJNeVslCu/download?path=%2F&files=lilypond-2.21.0-1.linux-64.sh
[1] 24275
$ --2019-01-29 12:58:33-- 
https://cloud.ursliska.de/s/QPINwLqJNeVslCu/download?path=%2F
Resolving cloud.ursliska.de (cloud.ursliska.de)... 85.25.3.15
Connecting to cloud.ursliska.de (cloud.ursliska.de)|85.25.3.15|:443... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘download?path=%2F’

download?path=%2F[<=>] 245.60M  
2.14MB/sin 2m 48s

2019-01-29 13:01:24 (1.46 MB/s) - ‘download?path=%2F’ saved [257530138]

^C
[1]+  Done  wget 
https://cloud.ursliska.de/s/QPINwLqJNeVslCu/download?path=%2F
$ 

In other words, I got the lot. It doesn't concern me, but you might
prefer less traffic on the site.

Archive:  download?path=%2F
  Length  DateTimeName
-  -- -   
0  2019-01-29 18:58   gub/
 26609979  2019-01-29 07:36   gub/lilypond-2.21.0-1.darwin-ppc.tar.bz2
 26597456  2019-01-29 07:37   gub/lilypond-2.21.0-1.darwin-x86.tar.bz2
 31320357  2019-01-29 07:38   gub/lilypond-2.21.0-1.freebsd-64.sh
 28015239  2019-01-29 07:38   gub/lilypond-2.21.0-1.freebsd-x86.sh
 31292293  2019-01-29 07:39   gub/lilypond-2.21.0-1.linux-64.sh
 30542915  2019-01-29 07:40   gub/lilypond-2.21.0-1.linux-ppc.sh
 31158331  2019-01-29 07:41   gub/lilypond-2.21.0-1.linux-x86.sh
 34771252  2019-01-29 07:42   gub/lilypond-2.21.0-1.mingw.exe
 17220012  2019-01-29 07:35   gub/lilypond-2.21.0.tar.gz
- ---
257527834 10 files

Cheers,
David.

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


Re: Please test new lilypond installers

2019-01-29 Thread Hans Åberg


> On 29 Jan 2019, at 20:00, Urs Liska  wrote:
> 
> If you use alternative notation fonts you have to "install" them for every 
> new LilyPond installation.

On MacOS it used used to work installing as a system font, and then only once 
is required. Tried with Bravura.otf.



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


Re: Forcing horizontal space between successive notes

2019-01-29 Thread Lukas-Fabian Moser

Hi David,

I have various clunky workarounds for this problem, but I am still
wondering whether there isn't a neater way.

How can one force additional space between 2 successive musical moments
in a score, without affecting the spacing algorithm to the left and
right?  This is occasionally desirable, for instance to leave
horizontal space for some textual instruction or narration.

I have experimented with all sorts of parameters for various items such
as PaperColumn, VerticalAlignment, SpacingSpanner and others, but so
far without any success.


Not perfect, but you could use the fact that in proportional notation it 
is possible (necessary) to define a factor which basically controls how 
much the music is going to be stretched:


\version "2.19.82"

\new Staff {
  <<
    {
  \repeat unfold 100 c'16 }

  {
    % Force extension between 1st and 2nd quaver in bar 2
    s1
    \set Score.proportionalNotationDuration = #(ly:make-moment 1/100)
    s8
    \unset Score.proportionalNotationDuration
  }
  >>
}

Increasing the denominator (100 in this case) increases the amount of 
stretching.


Drawback: Maybe you do not actually want proportional spacing to be used 
between the musical moments taken as left and right boundary of the area 
to be stretched. But for me this always was acceptable.


Lukas


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


Re: Please test new lilypond installers

2019-01-29 Thread Urs Liska



Am 29. Januar 2019 19:47:07 MEZ schrieb Michael Hendry 
:
>> On 29 Jan 2019, at 09:19, Knut Petersen 
>wrote:
>> 
>> Hi everybody
>> 
>> Urs Liska provides installers for branch master of lilypond,
>generated by an updated version of our build system GUB:
>> https://cloud.ursliska.de/s/QPINwLqJNeVslCu
>> There you'll find
>> lilypond-2.21.0-1.darwin-ppc.tar.bz2
>> lilypond-2.21.0-1.darwin-x86.tar.bz2
>> lilypond-2.21.0-1.freebsd-64.sh
>> lilypond-2.21.0-1.freebsd-x86.sh
>> lilypond-2.21.0-1.linux-64.sh
>> lilypond-2.21.0-1.linux-ppc.sh
>> lilypond-2.21.0-1.linux-x86.sh
>> lilypond-2.21.0-1.mingw.exe
>> lilypond-2.21.0.tar.gz
>> Please test if those files provide valid lilypond installations and
>report success / failure by replying to this thread if no identical
>test results already have been posted.
>> 
>> Knut
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>Failed with a previously successfully compiled leadsheet file. Same
>result after running convert.ly.
>
>Michael
>
>
> Starting lilypond 2.21.0 [Swing 39.ly]...
>Processing `/Users/michaelhendry/LilyPond Working/Swing 39/Swing 39.ly'
>Parsing...
>Interpreting
>music...[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][224]
>Preprocessing graphical objects...
>fatal error: cannot find font: `lilyjazz-11'
>Exited with return code 1.

If you use alternative notation fonts you have to "install" them for every new 
LilyPond installation.

>___
>lilypond-devel mailing list
>lilypond-de...@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-devel

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


Re: Please test new lilypond installers

2019-01-29 Thread Michael Hendry
> On 29 Jan 2019, at 09:19, Knut Petersen  wrote:
> 
> Hi everybody
> 
> Urs Liska provides installers for branch master of lilypond, generated by an 
> updated version of our build system GUB:
> https://cloud.ursliska.de/s/QPINwLqJNeVslCu
> There you'll find
> lilypond-2.21.0-1.darwin-ppc.tar.bz2
> lilypond-2.21.0-1.darwin-x86.tar.bz2
> lilypond-2.21.0-1.freebsd-64.sh
> lilypond-2.21.0-1.freebsd-x86.sh
> lilypond-2.21.0-1.linux-64.sh
> lilypond-2.21.0-1.linux-ppc.sh
> lilypond-2.21.0-1.linux-x86.sh
> lilypond-2.21.0-1.mingw.exe
> lilypond-2.21.0.tar.gz
> Please test if those files provide valid lilypond installations and report 
> success / failure by replying to this thread if no identical test results 
> already have been posted.
> 
> Knut
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

PS Apologies, should have said I’m using an iMac with High Sierra, and had 
launched the compilation from Frescobaldi.

Michael


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


Re: Please test new lilypond installers

2019-01-29 Thread Michael Hendry
> On 29 Jan 2019, at 09:19, Knut Petersen  wrote:
> 
> Hi everybody
> 
> Urs Liska provides installers for branch master of lilypond, generated by an 
> updated version of our build system GUB:
> https://cloud.ursliska.de/s/QPINwLqJNeVslCu
> There you'll find
> lilypond-2.21.0-1.darwin-ppc.tar.bz2
> lilypond-2.21.0-1.darwin-x86.tar.bz2
> lilypond-2.21.0-1.freebsd-64.sh
> lilypond-2.21.0-1.freebsd-x86.sh
> lilypond-2.21.0-1.linux-64.sh
> lilypond-2.21.0-1.linux-ppc.sh
> lilypond-2.21.0-1.linux-x86.sh
> lilypond-2.21.0-1.mingw.exe
> lilypond-2.21.0.tar.gz
> Please test if those files provide valid lilypond installations and report 
> success / failure by replying to this thread if no identical test results 
> already have been posted.
> 
> Knut
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Failed with a previously successfully compiled leadsheet file. Same result 
after running convert.ly.

Michael


 Starting lilypond 2.21.0 [Swing 39.ly]...
Processing `/Users/michaelhendry/LilyPond Working/Swing 39/Swing 39.ly'
Parsing...
Interpreting 
music...[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][224]
Preprocessing graphical objects...
fatal error: cannot find font: `lilyjazz-11'
Exited with return code 1.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please test new lilypond installers

2019-01-29 Thread Paul Morris

On 1/29/19 4:19 AM, Knut Petersen wrote:


lilypond-2.21.0-1.linux-64.sh


Installed on Ubuntu 18.04.1 LTS and tested with a couple of pieces. 
Everything appears to be working fine.


Thanks to all for the work on GUB and the next stable LilyPond release!

-Paul


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


Re: Please test new lilypond installers

2019-01-29 Thread David Kastrup
Paul Morris  writes:

> On 1/29/19 4:19 AM, Knut Petersen wrote:
>
>> lilypond-2.21.0-1.linux-64.sh
>
> Installed on Ubuntu 18.04.1 LTS and tested with a couple of
> pieces. Everything appears to be working fine.
>
> Thanks to all for the work on GUB and the next stable LilyPond release!

Well, 21.0 is the next unstable release...

-- 
David Kastrup

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


Forcing horizontal space between successive notes

2019-01-29 Thread David Sumbler
I have various clunky workarounds for this problem, but I am still
wondering whether there isn't a neater way.

How can one force additional space between 2 successive musical moments
in a score, without affecting the spacing algorithm to the left and
right?  This is occasionally desirable, for instance to leave
horizontal space for some textual instruction or narration.

I have experimented with all sorts of parameters for various items such
as PaperColumn, VerticalAlignment, SpacingSpanner and others, but so
far without any success.

David


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


Re: Start score with barline (after time signature)

2019-01-29 Thread David Kastrup
Aaron Hill  writes:

> On 2019-01-29 8:05 am, Urs Liska wrote:
>> I need to engrave a score that starts with a barline immediately after
>> the time signature (to demonstrate the barline, that is), as can be
>> seen in the attached image.
>>
>> By default this barline is not printed at all, but when I insert a
>> very short skip (even 1/128) there is a pretty huge gap between the
>> time signature and the barline.
>
> You can change the default behavior for bar lines:
>
> 
> \version "2.19.82"
> #(define-bar-line "||" "||" "||" "||")
> { \bar "||" b'1 }
> 

Probably better for both spacing and Midi than my hack.

-- 
David Kastrup

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


Re: select a note in a chord

2019-01-29 Thread Davide Bonetti

Ok, now it works well!

D.

Il 28/01/2019 21:11, Valentin Villenave ha scritto:

On 1/28/19, Davide Bonetti  wrote:

It reminds me something that happens when a variable in lilypond is
called with $ instead of # , but in scheme I don't see this difference.
Could it be something like that?

Nope, it turned out to be a lot more idiotic: I was modifying the
'octavation property of some notes… then not taking that into account
when sorting the pitches. (And, as David noted, I was displacing the
pitches onto the notes without moving any articulations they might
have attached.)

Here’s the new updated function, now it sort of works!

#(define-public (move-chord-note n direction)
(_i "Transpose a note (numbered as @var{n}) by one octave in
@var{direction}.")
(lambda (music)
  (let* ((elts (ly:music-property music 'elements))
 (l (length elts))
 ;; if direction is up, count from the bottom note upward,
 ;; if direction is down, count from the top note downward.
 (count-from (cond ((= direction UP) (- n 1))
   ((= direction DOWN) (- l n
 ;; Notes may not have been entered from bottom to top;
 ;; extract the pitches and their possible octavation.
 (pitches (map
   (lambda (x)
 (let ((oct (ly:music-property x 'octavation))
   (p (ly:music-property x 'pitch)))
   (if (null? oct) p
   (ly:pitch-transpose p
 (ly:make-pitch oct 0 0)
   (filter
(lambda (y)
  (music-is-of-type? y 'note-event))
elts
(if (and (music-is-of-type? music 'event-chord)
 (not (zero? n)) (>= l n))
(begin
 ;; Sort the actual notes, depending on their pitch.
 (set! elts
   (sort elts
 (lambda (a b)
   (ly:pitch

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


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


Re: Start score with barline (after time signature)

2019-01-29 Thread Aaron Hill

On 2019-01-29 8:05 am, Urs Liska wrote:

I need to engrave a score that starts with a barline immediately after
the time signature (to demonstrate the barline, that is), as can be
seen in the attached image.

By default this barline is not printed at all, but when I insert a
very short skip (even 1/128) there is a pretty huge gap between the
time signature and the barline.


You can change the default behavior for bar lines:


\version "2.19.82"
#(define-bar-line "||" "||" "||" "||")
{ \bar "||" b'1 }



-- Aaron Hill

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


Re: Start score with barline (after time signature)

2019-01-29 Thread Urs Liska



Am 29.01.19 um 17:15 schrieb David Kastrup:

Urs Liska  writes:


I need to engrave a score that starts with a barline immediately after
the time signature (to demonstrate the barline, that is), as can be
seen in the attached image.

By default this barline is not printed at all, but when I insert a
very short skip (even 1/128) there is a pretty huge gap between the
time signature and the barline.

How can I control and/or remove this space?
Thanks for any pointers
Urs

{ \grace s128 \bar "||" c'1 }



Thank you!

I was wondering if I should hope for or be afraid of such a trivial 
solution ;-)


Best
Urs


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


Re: Start score with barline (after time signature)

2019-01-29 Thread David Kastrup
Urs Liska  writes:

> I need to engrave a score that starts with a barline immediately after
> the time signature (to demonstrate the barline, that is), as can be
> seen in the attached image.
>
> By default this barline is not printed at all, but when I insert a
> very short skip (even 1/128) there is a pretty huge gap between the
> time signature and the barline.
>
> How can I control and/or remove this space?
> Thanks for any pointers
> Urs

{ \grace s128 \bar "||" c'1 }


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


Start score with barline (after time signature)

2019-01-29 Thread Urs Liska
I need to engrave a score that starts with a barline immediately after 
the time signature (to demonstrate the barline, that is), as can be seen 
in the attached image.


By default this barline is not printed at all, but when I insert a very 
short skip (even 1/128) there is a pretty huge gap between the time 
signature and the barline.


How can I control and/or remove this space?
Thanks for any pointers
Urs

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


Re: Can we change text font while keep it italic?

2019-01-29 Thread Aaron Hill

On 2019-01-29 12:51 am, Fan Hongtao wrote:

User backend properties

says:


font-name (string)
Specifies a file name (without extension) of the font to load. This
setting overrides
selection using font-family, font-series and font-shape.


So I try to reset these properties.

\version "2.18.2"
\markup {
  \override #'(font-name . "Century")
  \override #'(font-family . roman)
  \override #'(font-series . medium)
  \override #'(font-shape . italic)
  \italic { Hello, world. }
}

Unfortunately, it does not work. Any suggestion?


When you specify font-name, you are effectively telling LilyPond not to 
use font-family, font-series or font-shape.  That is what the 
documentation means when it says that setting overrides font selection.  
Commands like \italic will have no effect once you have set a font-name. 
 See the following:



\version "2.19.82"

\markup {
  \override #'(font-name . "Roboto") "Regular"
  \override #'(font-name . "Roboto, Bold") "Bold"
  \override #'(font-name . "Roboto, Italic") "Italic"
}

\paper { #(define fonts (set-global-fonts #:sans "Roboto")) }
\markup \sans { "Regular" \bold "Bold" \italic "Italic" }


The first case above uses the font-name to explicitly select a font.  
Note that you must include the style within the name.  This option is 
useful for one-off fonts.


The second case above redefines one of the provided font families and, 
as such, will work with the markup commands like \italic.  This option 
is best for most general use, as it ensure consistent font usage 
throughout a document.


LilyPond defines three font families for text: roman, sans, and 
typewriter.  With a little bit of work, you technically can define your 
own family in addition to these:



\version "2.19.82"

\paper {
  #(define fonts
(let ((n (set-global-fonts))
  (factor (/ staff-height pt 20)))
  (add-pango-fonts n 'handwriting "Alex Brush" (* 1.5 factor))
  n))
}

#(define-markup-command (handwriting layout props arg) (markup?)
  (interpret-markup layout
(prepend-alist-chain 'font-family 'handwriting props) arg))

\markup { This is \handwriting hand-written text. }


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


Re: Title help (from a blind user)

2019-01-29 Thread Aaron Hill

On 2019-01-28 11:00 pm, Daniel Contreras wrote:

Hello all,
I am trying to typeset parts for a jazz ensemble piece more
efficiently. My question is:
If i include a header block before all of the book blocks, will that
typeset the same title for each output file?
Example...
\header { }
\book { }
\book { }


Yes.  A top-level \header block defines values that will be inherited by 
each subsequent \book.



Also, if i include a midi block at the top before the book blocks,
will receive a midi file for each resulting output file?


No.  MIDI output applies to scores, not books.  And each \score you want 
to emit a MIDI file needs to have its own nested \midi block.



-- Aaron Hill

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


Re: Please test new lilypond installers

2019-01-29 Thread David Wright
On Tue 29 Jan 2019 at 12:19:11 (+0100), Johan Vromans wrote:
> On Tue, 29 Jan 2019 10:19:33 +0100, Knut Petersen
>  wrote:
> 
> > lilypond-2.21.0-1.linux-64.sh
> 
> I tried an install into /opt/lilypond. I do not have access to /opt but the
> folder /opt/lilypond is completely mine.
> 
> The help says it will install into PREFIX/lilypond, but it also tries to
> install scripts outside this directory in PREFIX/bin.

Yes, PREFIX/lilypond contains the distribution and PREFIX/bin is for
all the wrappers which can go into your PATH.

So, if /opt/lilypond is under your control, you'd normally put a
distribution into, say, PREFIX/lilypond/lilypond-2.21.0-1.linux-64
which (a) makes it trivial to support multiple versions and (b)
means you can put, say, your own local lilypond-support-programs
into /opt/lilypond without polluting the distribution.

> It refuses to install into an existing (even empty¹) directory. While this
> may be good in some cases, it would be nice if this could be overridden.
> 
> Fun fact: The script first checks if the directory exists and bails out if
> so. If not, it carefully checks if the directory exists before creating
> it :).

Creating the top-level directory is safe. Anything else risks
polluting the distribution with other files. It's trivial to
move the new lilypond-xxx tree yourself after it's been created
and, that way, you take responsibility for any merging or overwriting
that takes place as a result.

So it's not worth putting the complication² into the installer
rather than leaving it as the responsibility of the sysadmin.

> I choose to install with PREFIX=/opt/lilypond and everything went fine.
> 
>$ /opt/lilypond/bin/lilypond --version
>GNU LilyPond 2.21.0
> 
> Verified some scores with Frescobaldi, looks ok.
> 
> Good job!

¹ It's no big deal to install into PREFIX=…//
and then type
  mv …///* …//
  rmdir …//

² for example, what happens when there's a file in the distribution
whose name coincides with a directory in the target? (Or vice versa.)
If you decide under those circumstances to back out, who's responsible
for cleaning up the files already written? We now need a manifest with
MD5s so the installer can distinguish its own files from the ones that
were or were not overwritten.

Cheers,
David.

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


Can we change text font while keep it italic?

2019-01-29 Thread Fan Hongtao
Hi all,

When I write italic text in markup, code looks like

\version "2.18.2"
\markup {
  \italic { Hello, world. }
}


If I change font in the markup, the text are not italic anymore.

\version "2.18.2"
\markup {
  \override #'(font-name . "Century")
  \italic { Hello, world. }
}

User backend properties

says:

> font-name (string)
> Specifies a file name (without extension) of the font to load. This
> setting overrides
> selection using font-family, font-series and font-shape.


So I try to reset these properties.

\version "2.18.2"
\markup {
  \override #'(font-name . "Century")
  \override #'(font-family . roman)
  \override #'(font-series . medium)
  \override #'(font-shape . italic)
  \italic { Hello, world. }
}

Unfortunately, it does not work. Any suggestion?

-- 
Best Wishes,
Fan Hongtao

I have a dream.
http://fanhongtao.github.io/ 
\version "2.18.2"

\markup {
  \override #'(font-name . "Century")
  \override #'(font-family . roman)
  \override #'(font-series . medium)
  \override #'(font-shape . italic)
  \italic { Hello, world. }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Title help (from a blind user)

2019-01-29 Thread Daniel Contreras
Hello all, 
I am trying to typeset parts for a jazz ensemble piece more efficiently. My 
question is: 
If i include a header block before all of the book blocks, will that typeset 
the same title for each output file? 
Example...
\header { } 
\book { } 
\book { } 

Also, if i include a midi block at the top before the book blocks, will receive 
a midi file for each resulting output file?
Thank you all for your time.

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


Re: Please test new lilypond installers

2019-01-29 Thread Matthias Böhringer

Hello there,

seems to work just fine: Windows 10 Home 1809, installation proceeds 
without problems.


I tested one small file with Frescobaldi (so, Frescobladi, too, seems to 
do Just The Right Thing(TM)), and this was (type)set without problems.


HTH
Matthias


Am 29.01.2019 um 10:19 schrieb Knut Petersen:

Hi everybody

Urs Liska provides installers for branch master of lilypond, generated 
by an updated version of our build system GUB:


https://cloud.ursliska.de/s/QPINwLqJNeVslCu

There you'll find

lilypond-2.21.0-1.darwin-ppc.tar.bz2
lilypond-2.21.0-1.darwin-x86.tar.bz2
lilypond-2.21.0-1.freebsd-64.sh
lilypond-2.21.0-1.freebsd-x86.sh
lilypond-2.21.0-1.linux-64.sh
lilypond-2.21.0-1.linux-ppc.sh
lilypond-2.21.0-1.linux-x86.sh
lilypond-2.21.0-1.mingw.exe
lilypond-2.21.0.tar.gz

Please test if those files provide valid lilypond installations and 
report success / failure by replying to this thread if no identical test 
results already have been posted.


Knut


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




--
Matthias Böhringer
Brunnenstraße 6
72296 Schopfloch-Unteriflingen

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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi Urs,

Many thanks. You seem to have cut the knot I had.

Am Di den 29. Jan 2019 um 12:58 schrieb Urs Liska:
> \set changes a property of a *context*, for example the Voice or the Staff
> while \override changes the property of an object (grob) like NoteHead, Beam
> etc.

So, Both are setting a property but the difference that they are for
different kind of Objects...

And a big question, could it be that \set and #(set are the same or is
it different thinks? I found them sometime in a interchangeable matter.

> > And
> > how do I decide when to use one or the other?
> You have to find out if what you want to change is a property of the context
> or the graphical object. Essentially these are documented in
> 
> http://lilypond.org/doc/v2.19/Documentation/internals/contexts and
> http://lilypond.org/doc/v2.19/Documentation/internals/all-layout-objects
> 
> However, these "internal references" are pretty hard to digest, and to some
> extent you just have to acquire some familiarity with the matter to become
> comfortable with all of this.

Hmm.. Yea, maybe.

Currently I just use settings from the examples and try to get them to
work properly.

Seeing my problems I had with the layout in my past mails, I try to
figure out what went wrong and how to solve it. Ending in the swamp of
internals that I do not understand. :-O

> But discerning between contexts and layout objects as targets should be a
> good start.

Thanks, I think, it helped some.

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQREcACgkQpnwKsYAZ
9qxMTgwAqBs8rxvjE9MNNcO0ffnksn5Gr6couBxdh90RfRP2juQiJPxH0ZOlI2wj
IOKl+32jk4839EH+HNl58r1bH1jS9n2p5yHdWgCpCWutSBV6wxMoST66dpaDvLYC
QO2JM56ASkT/1H8NoewYR/l0lMh5ROSN3fSUWGedUKoOTH8UdR9dfXH+JMRa8Pm/
/3bD7x5lmobaHr/ZAaUsqdbhSc9HyrkpNRTeE5GzuGuIpoqTiY5FDC1vaY3mQz8n
Jc7aqjFZTK2Y4Pe1WpVMtH6iuHW3NvjBihZkNveGkmXQEg3JE9qld7RZxbQfAB07
0oiUKNqq5AtmlMLlT8xOUgL4Ets0sPqm9gal/YknOLTlRZ7QDBVv4PANHMR6Xe05
AOPf6fqRPCmLKXafUGe/JSdDw5waJwKEQvw70PhMmpp0Y6Cuq0GAAt73PUTIXLQ9
PWtcfUQvzWIHlnyaJO34NCJAUaJHfrycd2+XzlIFwtV2lWKnYofqdLZ2mu0N0TuR
Q4fuEHYd
=wrrC
-END PGP SIGNATURE-

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


Re: Please test new lilypond installers

2019-01-29 Thread Karlin High

On 1/29/2019 3:19 AM, Knut Petersen wrote:

    lilypond-2.21.0-1.darwin-x86.tar.bz2


Works on MacBook Air (mid 2012) with Intel Core i5 and macOS Mojave 10.14.2
--
Karlin High
Missouri, USA

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


Re: Please test new lilypond installers

2019-01-29 Thread Urs Liska


Am 29.01.19 um 13:06 schrieb Trevor:
Looking good! Many thanks to David, Knut, Urs and all those involved 
in generating this release!



Just to be clear (I assume you know it but your comment might mislead 
others): What is currently being discussed is testing LilyPond's 
cross-platform build system. The installers that I uploaded to my cloud 
are *not* a "release"!


Best
Urs

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


Re: Please test new lilypond installers

2019-01-29 Thread Trevor

Knut Petersen wrote 29/01/2019 09:19:33

Urs Liska provides installers for branch master of lilypond, generated by an 
updated version of our build system GUB:

   https://cloud.ursliska.de/s/QPINwLqJNeVslCu

There you'll find

   lilypond-2.21.0-1.darwin-ppc.tar.bz2
   lilypond-2.21.0-1.darwin-x86.tar.bz2
   lilypond-2.21.0-1.freebsd-64.sh
   lilypond-2.21.0-1.freebsd-x86.sh
   lilypond-2.21.0-1.linux-64.sh
   lilypond-2.21.0-1.linux-ppc.sh
   lilypond-2.21.0-1.linux-x86.sh
   lilypond-2.21.0-1.mingw.exe
   lilypond-2.21.0.tar.gz

Please test if those files provide valid lilypond installations and report 
success / failure by replying to this thread if no identical test results 
already have been posted.
The mingw.exe download appears to work fine in Frescobaldi running under 
Windows 10 Home on Intel Core i7-7500U cpu. I'll continue to use it for 
all future typesetting.


Looking good! Many thanks to David, Knut, Urs and all those involved in 
generating this release!


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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

Am Di den 29. Jan 2019 um 12:34 schrieb Pierre Perol-Schneider:
> See also:
> http://lilypond.org/doc/v2.19/Documentation/notation/set-versus-override.html

That is exactly what makes my understanding problems.

It describes something about the difference of Grob properties and
properties (what sounds like just a difference in capitalising or not)
and that the differences is to allow the Engraver to change something
that will not be changed...??? Or change it without effect? (Why then
change it at all?)

And then there is a note about \overrideProperty which is about a
specific property. But as I understand, I do change the same specific
property with \set or \override too..?

In the description of \override the scheme description seems to be just
using \override as an alias for \set.

Sorry about being completely confused about that. I just do not get it
at all what the differences are and how to see them.

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQQaQACgkQpnwKsYAZ
9qz9Dgv/SwN6Fw/diWsPOta2BkHEOqHfxiP2oHWaXeA+ZjekUUFLmNAgMns1hmgz
EfuHqTiDWJCksiUjXrSy9kW1UpmaoKqJ2WGEfBVz2Nmj8W/sZIHfQeyS9mRWgFLO
pqT/0BLAjMC20zvLtVkc5g6lEyLxuuL0JmxbS9jTzQ6+63Js8tqp/1OQn84Sk0kb
aEh0vb7kVztPtgEB5K5aY6ZIfSt7caw7icnq0aRrA8CBwH/UjvFMtYrrpFaIQSu8
9Ytplualcm9IMIOtCTq95JWWFGNVysmbQbbyzbPQNvOrzkfTrsR1Z0Jk2s+ZQlcF
o/Gev66HQBa4eu7x+ePm7LWTIuIWh9EcvqGdtY1cZ0BhJ7hnsvXg8CGnOoNR/czn
5H8RO2/wo0hibEB36ZjcDxjY9oUUEJN1JVeN3egEYJBfoaPF+ENiCsMp688aztIn
V+mTL0qWWps9bngPs1pp51EHFfAgaBTL5QJ9avLSzHntx4PH8zTLjvZrWJy158T/
K4kl9P08
=gllQ
-END PGP SIGNATURE-

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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread David Kastrup
Pierre Perol-Schneider  writes:

> See also:
> http://lilypond.org/doc/v2.19/Documentation/notation/set-versus-override.html
> Cheers,
> Pierre

TLDR: \set/\unset access properties associated with some context,
\override/\revert access defaults for the properties of a given grob
type created within some context.
\tweak changes properties of grobs created by a given music
expression (the association is the same that is being used for
point-and-click on a graphical object leading to a source expression).

-- 
David Kastrup

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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Urs Liska



Am 29.01.19 um 12:44 schrieb Klaus Ethgen:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi Pierre,

Am Di den 29. Jan 2019 um 12:30 schrieb Pierre Perol-Schneider:

See:
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-set-command.de.html
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-override-command.de.html
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-tweak-command.de.html

I read them multiple times before.

I have to admit that the tweak command seems to be different (for the
applying scope) but the set and override makes no difference for me.



\set changes a property of a *context*, for example the Voice or the 
Staff while \override changes the property of an object (grob) like 
NoteHead, Beam etc.





The scheme construct in the override command does not make it more
clear. (Ok, I have to admit that I am Perl or C programmer and that I
have quite problems with the scheme syntax.)

Why do I need to use override for one parameter and set for another?



As said above they apply to different targets.



And
how do I decide when to use one or the other?



You have to find out if what you want to change is a property of the 
context or the graphical object. Essentially these are documented in


http://lilypond.org/doc/v2.19/Documentation/internals/contexts and
http://lilypond.org/doc/v2.19/Documentation/internals/all-layout-objects

However, these "internal references" are pretty hard to digest, and to 
some extent you just have to acquire some familiarity with the matter to 
become comfortable with all of this.
But discerning between contexts and layout objects as targets should be 
a good start.


HTH
Urs



Regards
Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/

pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQPLMACgkQpnwKsYAZ
9qzzeQwAxuFLUTF2P0WBKQ8BYAa2JBC9/KtBewJmIJN8tImtTSQX2eTUh51X/6SY
UlVeOflkyvsi6bMyaUuumD2/YP4UZcnM4QCnbxTfGU2vHpdDIhznJuUBbAFWPSFU
P2+ucPfve6MVrGHlZ6tTnGROge7+PCZJi2VkD4n3H82N8SR54SYAty/2txAbhNQH
rIfL0nQWZgPQPEGhFI0dF39yaTwbzrmaFE59WVDlqaUiprP52VbgwiG4EOrL4b8x
EdSP0em7VGLJh2VQLeORs/eBRuvkouOW+UMQcloXwVCH6ayfjxwaKryHFf6QkHWW
VcDKnZRM1BkeDrFbjWl0TT8LbPdaqvOFcuxEfBTkWTdw+6x/OU/AD5UR43ArcV/x
+TWc44UjYSt4cMWkz6SzWwcoDaENBsYct4NWdlruts9UeZP+9WfwYY060dBXsGxy
fI9QqM4NNdHCbi4vwjac1VM5mrrTZLIxL9mHgEutIEE55kbraRNgUewkWSyPUSS1
oVu1odaL
=gAsP
-END PGP SIGNATURE-

___
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: Force TextScript to staff-padding / optional \textLengthOn

2019-01-29 Thread Urs Liska

Hm,

after sending this request for help I (hopefully) found a solution 
myself. But I don't pretend to understand it ...


Am 29.01.19 um 10:55 schrieb Urs Liska:


Hi,

I was struggling with this earlier, but suggestions from the list 
didn't help me and I had to postpone the issue. Now I've got to 
resolve it and while I make progress I don't seem to be able to get to 
the goal line :-(


I am trying to create a text command that prints items at a specific 
distance from the staff (in order to have multiple items on the same 
baseline). The behaviour of staff-padding is good enough for me, that 
is if one of the items is forced to be farther away to prevent 
collisions with the music I'm OK with adjusting the staff-padding for 
*all* items.


My problem is that the created markup should push other items to the 
right rather have them stack vertically as is the standard behaviour 
of TextScript - but only if there actually *is* such an item. Using 
\textLengthOn always pushes the next note column to the right, even 
when that doesn't have a text attached.


...

However, I don't actually use a literal value for staff-padding but a 
callback function that modifies the staff-padding according to the 
direction. And as soon as staff-padding is set to that (any) callback 
function the behaviour is again like using \textLengthOn, as can be 
seen in the attached 'wrong.png' where the second note is wrongly 
pushed to the right:


...

#(define (create-foo text)
#{
  -\tweak extra-spacing-width #(cons -0.0 .8)
  -\tweak outside-staff-priority ##f
  -\tweak staff-padding #calc-staff-padding
  -\markup #text
#})

...

Can anyone explain why the TextScript is behaving differently when 
staff-padding is tweaked to a literal or to a callback? And - more 
importantly - how I can achieve my goal?




Well, as said I seem to have achieved my goal, but I would be happy to 
understand it better. As said tweaking 'staff-padding to a callback 
function makes the spacing behave like with \textLengthOn (i.e. 
extra-spacing-width and -height set). If on the other hand I tweak 
before-line-breaking to a callback, and within that callback set the 
staff-padding property of the grob to the calculated value there doesn't 
seem to be such a side effect.


#(define (apply-staff-padding grob)
   (ly:grob-set-property! grob 'staff-padding (calc-staff-padding grob)))

...

-\tweak before-line-breaking #apply-staff-padding
 -\markup #text

Any clarification?

Thanks
Urs



Thanks
Urs


___
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: \overwrite, \set, \tweak, ...

2019-01-29 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi Pierre,

Am Di den 29. Jan 2019 um 12:30 schrieb Pierre Perol-Schneider:
> See:
> -
> http://lilypond.org/doc/v2.19/Documentation/notation/the-set-command.de.html
> -
> http://lilypond.org/doc/v2.19/Documentation/notation/the-override-command.de.html
> -
> http://lilypond.org/doc/v2.19/Documentation/notation/the-tweak-command.de.html

I read them multiple times before.

I have to admit that the tweak command seems to be different (for the
applying scope) but the set and override makes no difference for me.

The scheme construct in the override command does not make it more
clear. (Ok, I have to admit that I am Perl or C programmer and that I
have quite problems with the scheme syntax.)

Why do I need to use override for one parameter and set for another? And
how do I decide when to use one or the other?

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQPLMACgkQpnwKsYAZ
9qzzeQwAxuFLUTF2P0WBKQ8BYAa2JBC9/KtBewJmIJN8tImtTSQX2eTUh51X/6SY
UlVeOflkyvsi6bMyaUuumD2/YP4UZcnM4QCnbxTfGU2vHpdDIhznJuUBbAFWPSFU
P2+ucPfve6MVrGHlZ6tTnGROge7+PCZJi2VkD4n3H82N8SR54SYAty/2txAbhNQH
rIfL0nQWZgPQPEGhFI0dF39yaTwbzrmaFE59WVDlqaUiprP52VbgwiG4EOrL4b8x
EdSP0em7VGLJh2VQLeORs/eBRuvkouOW+UMQcloXwVCH6ayfjxwaKryHFf6QkHWW
VcDKnZRM1BkeDrFbjWl0TT8LbPdaqvOFcuxEfBTkWTdw+6x/OU/AD5UR43ArcV/x
+TWc44UjYSt4cMWkz6SzWwcoDaENBsYct4NWdlruts9UeZP+9WfwYY060dBXsGxy
fI9QqM4NNdHCbi4vwjac1VM5mrrTZLIxL9mHgEutIEE55kbraRNgUewkWSyPUSS1
oVu1odaL
=gAsP
-END PGP SIGNATURE-

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


Re: Please test new lilypond installers

2019-01-29 Thread Werner LEMBERG


> The help says it will install into PREFIX/lilypond, but it also
> tries to install scripts outside this directory in PREFIX/bin.
> 
> It refuses to install into an existing (even empty) directory. While
> this may be good in some cases, it would be nice if this could be
> overridden.

Please send this to `bug-lilypond' so that issues can created.


Werner

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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Pierre Perol-Schneider
See also:
http://lilypond.org/doc/v2.19/Documentation/notation/set-versus-override.html
Cheers,
Pierre

Le mar. 29 janv. 2019 à 12:33, Klaus Ethgen  a
écrit :

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hi Andrew,
>
> Am Di den 29. Jan 2019 um 12:19 schrieb Andrew Bernard:
> > Look up grob in the Notation Reference index.
>
> Thanks, I seemes to have overseen that entry before. Sorry about.
>
> > grob
> >
> > LilyPond objects which represent items of notation in the printed output
> > such as note heads, stems, slurs, ties, fingering, clefs, etc are called
> > ???Layout objects???, often known as ???GRaphical OBjects???, or grobs
> for short.
> > They are represented by instances of the Grob class.
>
> But how does it play with the meaning in \set etc.? There it seems to be
> used somehow like "key" to change.
>
> Regards
>Klaus
> - --
> Klaus Ethgen   http://www.ethgen.ch/
> pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
> Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
> -BEGIN PGP SIGNATURE-
> Comment: Charset: ISO-8859-1
>
> iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQOdEACgkQpnwKsYAZ
> 9qzDygv/RAk8gGROqKf+2urN0uA1oKfsqYmhOek4lcOqEOkDSOvQdQFCBA/Jecxc
> xOjSPWda0mJKjc44+nA4XNvmgDJEra5M47+Q5acNtCf2z/VTgGpMdc/1LiavMu6u
> dnANdR2dBGwou476WdfUV9QDmbW6/IClLjIRd3oAxYi4SHVmBozfA9Jzt9Gm/IBP
> KjlX8x6w+sDbc/pOtpZBXDsmjU4hBL1o1Uke/cYppgYcqNupVTd7jZDOb2Cw+Lvh
> 7pxnPItiKsOk/iLZWORq0Twdw4NG4IMHLZzBz6f1wTWn1nEpQlbHWmPuH4HRVAg1
> WMjMx1xlOUrBvls3UXd4am+rr4SXqF2XyLHz00S6QvMb5NwYOwzshX/Bm3D6TSJg
> A21iN7cUyf/Mx5/0xhmHMIQM1v+F3QoEeFm6doW8scrdH6sqKxV2T8G6NUsz3m0J
> RVq2M4raTDdlRkfbahBvf0hUIVAXmH80VOlX/pkl+NGJ5wRnUZehsGlGKCVr/Qnd
> onl46v5E
> =cl+p
> -END PGP SIGNATURE-
>
> ___
> 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: \overwrite, \set, \tweak, ...

2019-01-29 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi Andrew,

Am Di den 29. Jan 2019 um 12:19 schrieb Andrew Bernard:
> Look up grob in the Notation Reference index.

Thanks, I seemes to have overseen that entry before. Sorry about.

> grob
> 
> LilyPond objects which represent items of notation in the printed output
> such as note heads, stems, slurs, ties, fingering, clefs, etc are called
> ???Layout objects???, often known as ???GRaphical OBjects???, or grobs for 
> short.
> They are represented by instances of the Grob class.

But how does it play with the meaning in \set etc.? There it seems to be
used somehow like "key" to change.

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQOdEACgkQpnwKsYAZ
9qzDygv/RAk8gGROqKf+2urN0uA1oKfsqYmhOek4lcOqEOkDSOvQdQFCBA/Jecxc
xOjSPWda0mJKjc44+nA4XNvmgDJEra5M47+Q5acNtCf2z/VTgGpMdc/1LiavMu6u
dnANdR2dBGwou476WdfUV9QDmbW6/IClLjIRd3oAxYi4SHVmBozfA9Jzt9Gm/IBP
KjlX8x6w+sDbc/pOtpZBXDsmjU4hBL1o1Uke/cYppgYcqNupVTd7jZDOb2Cw+Lvh
7pxnPItiKsOk/iLZWORq0Twdw4NG4IMHLZzBz6f1wTWn1nEpQlbHWmPuH4HRVAg1
WMjMx1xlOUrBvls3UXd4am+rr4SXqF2XyLHz00S6QvMb5NwYOwzshX/Bm3D6TSJg
A21iN7cUyf/Mx5/0xhmHMIQM1v+F3QoEeFm6doW8scrdH6sqKxV2T8G6NUsz3m0J
RVq2M4raTDdlRkfbahBvf0hUIVAXmH80VOlX/pkl+NGJ5wRnUZehsGlGKCVr/Qnd
onl46v5E
=cl+p
-END PGP SIGNATURE-

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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Pierre Perol-Schneider
Hallo Klaus,

See:
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-set-command.de.html
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-override-command.de.html
-
http://lilypond.org/doc/v2.19/Documentation/notation/the-tweak-command.de.html

Cheers,
Pierre


Le mar. 29 janv. 2019 à 12:03, Klaus Ethgen  a
écrit :

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hi,
>
> I have another beginner question that I get not answering how often ever
> I go over the documentation.
>
> What is the difference between \set and \override (and \tweak)? It looks
> like they do exactly the same.
>
> And with that, what is the difference between them and the corrosponding
> \property* commands? I do not get if there is any difference.
>
> Last, everywhere is the term "grob" used. What does it mean?
>
> Regards
>Klaus
> - --
> Klaus Ethgen   http://www.ethgen.ch/
> pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
> Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
> -BEGIN PGP SIGNATURE-
> Comment: Charset: ISO-8859-1
>
> iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQMuUACgkQpnwKsYAZ
> 9qxDlAwAqemSgWpvdRkRGj+BInzK0XbpoIRYEQvVb4/20XEVFfK3VAFEmDtm0XDv
> 71EBv/pZI7HxdViJsEkPaDygt4BwaqerdbhfkhUeJLeJr0Y7QMF6wM0f+StOkM7j
> iaNl8tVghMJoTRjetns5QoN9mX8zPDg2dqWl3bicsRmBLga/eR7PUMlViQ4uqy+9
> NyZrSSbxZUeCiMQwyFl4HWOwjJeYzwtupfeOYpZ9Bs0T7QK8/qQnjMzeP5arDlNy
> MndfOkCuT9iGyZ3YcY8eRdJ6LRNm+xT6kI0Xq4O4HOdFV96ODlEpjEUZtAlxPlQA
> 2R2s/WZrrMcuz2HR8TTBsT1nTKNKwfhIkP5oh8qDFl1gLcAjx+I6U1CQoPFdEx7r
> gb7rxwGdMZmT611Kv8L3EM8AHSUTqohsidLsbZ5fYrLqtmyu7/k5sL4ZysNCXw9c
> VPKb+J7mep6JbqJ0n0AvLpbhXb1IFyzco9HUVsJUj7znl52yhmVuBLYNsADZNeUL
> gBF1PtMS
> =f9d1
> -END PGP SIGNATURE-
>
> ___
> 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: Please test new lilypond installers

2019-01-29 Thread Johan Vromans
On Tue, 29 Jan 2019 12:21:43 +0100, Urs Liska  wrote:

> Are these observations specific to that new GUB build, or would the 
> downloaded release behave the same?

AFAICS the release download (2.18.2-1) behaves the same.

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


Re: Please test new lilypond installers

2019-01-29 Thread Urs Liska



Am 29.01.19 um 12:19 schrieb Johan Vromans:

On Tue, 29 Jan 2019 10:19:33 +0100, Knut Petersen
 wrote:


 lilypond-2.21.0-1.linux-64.sh

I tried an install into /opt/lilypond. I do not have access to /opt but the
folder /opt/lilypond is completely mine.

The help says it will install into PREFIX/lilypond, but it also tries to
install scripts outside this directory in PREFIX/bin.

It refuses to install into an existing (even empty) directory. While this
may be good in some cases, it would be nice if this could be overridden.



Are these observations specific to that new GUB build, or would the 
downloaded release behave the same?

This would be a relatively important difference in the current context.

Urs


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


Re: \overwrite, \set, \tweak, ...

2019-01-29 Thread Andrew Bernard
Hi Klaus,

Look up grob in the Notation Reference index.

grob

LilyPond objects which represent items of notation in the printed output
such as note heads, stems, slurs, ties, fingering, clefs, etc are called
‘Layout objects’, often known as ‘GRaphical OBjects’, or grobs for short.
They are represented by instances of the Grob class.

Andrew


On Tue, 29 Jan 2019 at 22:03, Klaus Ethgen  wrote:

>
> Last, everywhere is the term "grob" used. What does it mean?
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please test new lilypond installers

2019-01-29 Thread Johan Vromans
On Tue, 29 Jan 2019 10:19:33 +0100, Knut Petersen
 wrote:

> lilypond-2.21.0-1.linux-64.sh

I tried an install into /opt/lilypond. I do not have access to /opt but the
folder /opt/lilypond is completely mine.

The help says it will install into PREFIX/lilypond, but it also tries to
install scripts outside this directory in PREFIX/bin.

It refuses to install into an existing (even empty) directory. While this
may be good in some cases, it would be nice if this could be overridden.

Fun fact: The script first checks if the directory exists and bails out if
so. If not, it carefully checks if the directory exists before creating
it :).

I choose to install with PREFIX=/opt/lilypond and everything went fine.

   $ /opt/lilypond/bin/lilypond --version
   GNU LilyPond 2.21.0

Verified some scores with Frescobaldi, looks ok.

Good job!

-- Johan

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


\overwrite, \set, \tweak, ...

2019-01-29 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

I have another beginner question that I get not answering how often ever
I go over the documentation.

What is the difference between \set and \override (and \tweak)? It looks
like they do exactly the same.

And with that, what is the difference between them and the corrosponding
\property* commands? I do not get if there is any difference.

Last, everywhere is the term "grob" used. What does it mean?

Regards
   Klaus
- -- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxQMuUACgkQpnwKsYAZ
9qxDlAwAqemSgWpvdRkRGj+BInzK0XbpoIRYEQvVb4/20XEVFfK3VAFEmDtm0XDv
71EBv/pZI7HxdViJsEkPaDygt4BwaqerdbhfkhUeJLeJr0Y7QMF6wM0f+StOkM7j
iaNl8tVghMJoTRjetns5QoN9mX8zPDg2dqWl3bicsRmBLga/eR7PUMlViQ4uqy+9
NyZrSSbxZUeCiMQwyFl4HWOwjJeYzwtupfeOYpZ9Bs0T7QK8/qQnjMzeP5arDlNy
MndfOkCuT9iGyZ3YcY8eRdJ6LRNm+xT6kI0Xq4O4HOdFV96ODlEpjEUZtAlxPlQA
2R2s/WZrrMcuz2HR8TTBsT1nTKNKwfhIkP5oh8qDFl1gLcAjx+I6U1CQoPFdEx7r
gb7rxwGdMZmT611Kv8L3EM8AHSUTqohsidLsbZ5fYrLqtmyu7/k5sL4ZysNCXw9c
VPKb+J7mep6JbqJ0n0AvLpbhXb1IFyzco9HUVsJUj7znl52yhmVuBLYNsADZNeUL
gBF1PtMS
=f9d1
-END PGP SIGNATURE-

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


Re: Please test new lilypond installers

2019-01-29 Thread Karlin High
On Tue, Jan 29, 2019 at 3:20 AM Knut Petersen  wrote:
> lilypond-2.21.0-1.mingw.exe

Seems to work on Windows 10 Pro 64-bit version 1803.

And it's definitely LilyPond 2.21 because it choked on \partcombine
and needed \partCombine instead. Fixed with convert-ly.
--
Karlin High
Missouri, USA

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


Force TextScript to staff-padding / optional \textLengthOn

2019-01-29 Thread Urs Liska

Hi,

I was struggling with this earlier, but suggestions from the list didn't 
help me and I had to postpone the issue. Now I've got to resolve it and 
while I make progress I don't seem to be able to get to the goal line :-(


I am trying to create a text command that prints items at a specific 
distance from the staff (in order to have multiple items on the same 
baseline). The behaviour of staff-padding is good enough for me, that is 
if one of the items is forced to be farther away to prevent collisions 
with the music I'm OK with adjusting the staff-padding for *all* items.


My problem is that the created markup should push other items to the 
right rather have them stack vertically as is the standard behaviour of 
TextScript - but only if there actually *is* such an item. Using 
\textLengthOn always pushes the next note column to the right, even when 
that doesn't have a text attached.


I found a solution using extra-spacing-width (but not 
extra-spacing-height) together with unsetting outside-staff-priority and 
wrapping all of this in an event-function:


\version "2.19.82"

#(define (create-foo text)
   #{
 -\tweak extra-spacing-width #(cons -0.0 .8)
 -\tweak outside-staff-priority ##f
 -\tweak staff-padding 3
 -\markup #text
   #})

this =
#(define-event-function ()()
   (create-foo "thisis."))

that =
#(define-event-function ()()
   (create-foo "thatis."))

\relative {
  e''16 \this [ f e \that d \this ]
}

In the attached 'correct.png' you can see that the *second* item 
"thatis." correctly pushes the next note in order to avoid the collision 
(the little white space comes from the .8 value to extra-spacing-width) 
while the first "thisis." leaves the second note alone.


However, I don't actually use a literal value for staff-padding but a 
callback function that modifies the staff-padding according to the 
direction. And as soon as staff-padding is set to that (any) callback 
function the behaviour is again like using \textLengthOn, as can be seen 
in the attached 'wrong.png' where the second note is wrongly pushed to 
the right:


\version "2.19.82"

#(define (calc-staff-padding grob)
   "Calculate the staff-padding value of a grob.
This has to be done in a callback since it seems to be
the only solution to both align texts to the baseline
(using staff-padding) *and* to adjust upper and lower
padding. See
http://lists.gnu.org/archive/html/lilypond-user/2018-10/msg00267.html";
   (let ((dir (ly:grob-property grob 'direction))
 (staff-padding 4) ; in the real project this is loaded from options
 )
 (if (> dir 0)
 staff-padding
 ; NOTE: It is somewhat arbitrary to have lower texts
 ; pad by exactly 1 staff space more than above
 ; TODO: Calculate by creating a "Tq" markup and measuring its Y-extent
 (+ 1 staff-padding

#(define (create-foo text)
   #{
 -\tweak extra-spacing-width #(cons -0.0 .8)
 -\tweak outside-staff-priority ##f
 -\tweak staff-padding #calc-staff-padding
 -\markup #text
   #})

this =
#(define-event-function ()()
   (create-foo "thisis."))

that =
#(define-event-function ()()
   (create-foo "thatis."))

\relative {
  e''16 \this [ f e \that d \this ]
}

Can anyone explain why the TextScript is behaving differently when 
staff-padding is tweaked to a literal or to a callback? And - more 
importantly - how I can achieve my goal?


Thanks
Urs

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


Re: Please test new lilypond installers

2019-01-29 Thread Aaron Hill

On 2019-01-29 1:19 am, Knut Petersen wrote:


   lilypond-2.21.0-1.linux-64.sh


Tested on Ubuntu 18.04.1 LTS (bionic)
  Running under Windows Subsystem for Linux
  Windows 10 Version 1803 (OS Build 17134.523)

Installation worked for both non-sudo and sudo.

Compiled a few projects with no errors.  Results seem acceptable.

-- Aaron Hill

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


Please test new lilypond installers

2019-01-29 Thread Knut Petersen

Hi everybody

Urs Liska provides installers for branch master of lilypond, generated by an 
updated version of our build system GUB:

   https://cloud.ursliska.de/s/QPINwLqJNeVslCu

There you'll find

   lilypond-2.21.0-1.darwin-ppc.tar.bz2
   lilypond-2.21.0-1.darwin-x86.tar.bz2
   lilypond-2.21.0-1.freebsd-64.sh
   lilypond-2.21.0-1.freebsd-x86.sh
   lilypond-2.21.0-1.linux-64.sh
   lilypond-2.21.0-1.linux-ppc.sh
   lilypond-2.21.0-1.linux-x86.sh
   lilypond-2.21.0-1.mingw.exe
   lilypond-2.21.0.tar.gz

Please test if those files provide valid lilypond installations and report 
success / failure by replying to this thread if no identical test results 
already have been posted.

Knut

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