Re: What happened to INSTALL.txt?

2020-07-30 Thread H. S. Teoh
On Thu, Jul 30, 2020 at 10:05:27PM +0100, antlists wrote:
> On 30/07/2020 17:25, H. S. Teoh wrote:
> > On Mon, Jul 27, 2020 at 08:30:34AM -0700, Knute Snortum wrote:
> > > Well it looks like README.git should just contain this:
> > > Instructions for compiling LilyPond from source files can be
> > > found online at:
> > > 
> > > 
> > > [1]https://lilypond.org/doc/v2.21/Documentation/contributor/index_17#Compiling
> > 
> > Sounds like a good idea.
> > 
> Does it? You're assuming internet access ... :-(
> 
> Okay, most people will have it, but not all, and if all it needs is to
> run ./configure, then that's what should be in README.git.
[...]

Yeah, assuming internet access is not so nice.  README.git should at
least contain enough information to get INSTALL.txt generated without
needing online access, so that if you were to, hypothetically, get stuck
on a desert island without an internet connection (but somehow still
have your PC with you and a power source for it), you could in theory
compile a fresh checkout of lilypond.


T

-- 
Debugging is twice as hard as writing the code in the first place. Therefore, 
if you write the code as cleverly as possible, you are, by definition, not 
smart enough to debug it. -- Brian W. Kernighan



Re: What happened to INSTALL.txt?

2020-07-30 Thread antlists

On 30/07/2020 17:25, H. S. Teoh wrote:

On Mon, Jul 27, 2020 at 08:30:34AM -0700, Knute Snortum wrote:

Well it looks like README.git should just contain this:
Instructions for compiling LilyPond from source files can be found
online at:

   
[1]https://lilypond.org/doc/v2.21/Documentation/contributor/index_17#Compiling


Sounds like a good idea.


Does it? You're assuming internet access ... :-(

Okay, most people will have it, but not all, and if all it needs is to 
run ./configure, then that's what should be in README.git.


Chers,
Wol



Re: What happened to INSTALL.txt?

2020-07-30 Thread H. S. Teoh
On Mon, Jul 27, 2020 at 08:30:34AM -0700, Knute Snortum wrote:
>Well it looks like README.git should just contain this:
>Instructions for compiling LilyPond from source files can be found
>online at:
> 
>   
>
> [1]https://lilypond.org/doc/v2.21/Documentation/contributor/index_17#Compiling

Sounds like a good idea.


T

-- 
There are two ways to write error-free programs; only the third one works.



Re: Iterators in Scheme?

2020-07-30 Thread Niols

Hello again,


On 29/07/2020 17:28, Jean-Julien Fleck wrote:
Le mer. 29 juil. 2020 à 15:44, Niols > a écrit :



 > What do you want to achieve?

    This is actually follow-up research from my side after a previous
    e-mail
    to this list. I would like to print bar numbers that are "repeat
    aware",
    that is such that if bars 9 to 12 repeat twice, then the bar 
numbers go


      1, 2, …, 9, …, 12, 17, 18, etc.

    with a jump after 12 that corresponds to the bars 13 to 16 that are
    actually 9 to 12. Even better, I would like to print the two bar
    numbers
    for these bars (9/13, 10/14, etc.)


Perhaps this snippet could be of some use for you: 
http://lsr.di.unimi.it/LSR/Item?id=1080


I have been playing with this solution and I find it very satisfactory 
for my use. I do not understand yet all the intrinsics (in particular 
with respect to the context-spec-music and the make-apply-context 
functions), but I understand roughly how it works.


There is just one thing that I would want to "improve" (that is, for my 
use): the solution needs to map on all the music in order to find all 
the VoltaRepeatedMusic and override their callbacks to a newly defined 
one. This is achieved by providing a function "unfoldBarNumbers" that 
can be applied to any music and that does it.


I would however be interested to have that for all the music in my file, 
without having to call that function. The different ideas that pop into 
my mind in such a situation are the following:


1. Maybe I could override the "\repeat" function so that it does the 
same thing as by default but, when it is a "volta" repeat, it also 
attaches the new callback to the created music. I believe I see how to 
achieve that, except I seem unsuccessful in overriding the default 
definition of "\repeat". Even if I do something like:


#(define (repeat type num body alts)
  (display "\nrepeat\n"))

{ b4 \repeat volta 2 { b b } b }

it behaves as if I had not put the #(define ...) statement. I have 
played around this idea for a while without success. I have tried to see 
if "\repeat" had a special treatment (which it does, at least in the 
lexing/parsing), but I haven't been able to figure this out.


2. Maybe there is a way to define a function that will be ran before 
processing on any music? But this I have no idea if this is possible, or 
how to do it, and my research has proven ineffective so far.


3. Maybe there is a way to override the "make-volta-set" callback 
instead of creating a new one? Such that then, in LilyPond's normal 
execution, it uses the new definition and not and old one that then 
needs to be replaced?


If anyone has any idea on the topic, it would be really useful. In any 
case, I am quite interested in understanding how the execution works and 
thus where LilyPond finds the definition of "\repeat", since it is not 
where I was expecting it.


Thank you in advance, and thank you for your time!
— Niols



Re: pdf creation stalling after upgrade to 2.20

2020-07-30 Thread Knute Snortum
Is this the behavior you're describing?  (Read down to the third post):

http://lilypond.1069038.n5.nabble.com/2-21-4-released-td235007.html

---
Knute Snortum
(via Gmail)


On Wed, Jul 29, 2020 at 10:54 AM Jenifer Tribe 
wrote:

> I moved from 2.18.2 to 2.21 and noticed that the process of creating
> temporary files before converting to pdf was now visible (? just slower).
> I have now moved back to 2.20, and it creates the first tmp file and pdf
> from the run, but then stalls, possibly can't delete the file.
>
> I'm using it under Windows 10
>
>


Re: 2,21,4 released

2020-07-30 Thread Pierre Perol-Schneider
Thank you Jonas.
Unfortunately, it fails every second attempt, as v.2.21.4:
test: \version "2.21.5" { c'}

Starting lilypond-windows.exe 2.21.5 [Untitled]...
Processing
`C:/Users/Pierre/AppData/Local/Temp/frescobaldi-g1lth8gp/tmpmt7elx5h/
document.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `document.pdf'...
fatal error: cannot rename `document-tmp-2708837.283386.pdf' to
`document.pdf'
Exited with return code 1.

Cheers,
Pierr

Le jeu. 30 juil. 2020 à 15:22, Jonas Hahnfeld  a écrit :

> Am Dienstag, den 28.07.2020, 20:57 +0200 schrieb Jonas Hahnfeld:
> > Am Dienstag, den 28.07.2020, 17:28 +0200 schrieb Pierre Perol-
> > Schneider:
> > > Hi All,
> > > Under W10, the compilation fails after the second attempt:
> > >
> > > Starting lilypond-windows.exe 2.21.4 [Untitled]...
> > > Processing
> > > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
> > > document.ly'
> > > Parsing...
> > > Interpreting music...
> > > Preprocessing graphical objects...
> > > Finding the ideal number of pages...
> > > Fitting music on 1 page...
> > > Drawing systems...
> > > Converting to `document.pdf'...
> > > C:/Program Files (x86)/LilyPond
> > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
> > > delete-file in expression (delete-file dst):
> > > C:/Program Files (x86)/LilyPond
> > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied
> > > Exited with return code 1.
> > >
> > > But works at the third attempt (but fails at the 4th etc.)
> >
> > I can reproduce this behavior for every compilation when the PDF file
> > is opened with Edge. I guess Frescobaldi opens the PDF by default, but
> > releases the file after an aborted compilation?
> > Tracked in https://gitlab.com/lilypond/lilypond/-/issues/6016
>
> Pierre, and all others using Windows: Could you give the following
> version a try? https://cloud.hahnjo.de/index.php/s/wKx3Wb822CKQsq6
> (Note: While the installer says 2.21.5, this is not at all what the
> final 2.21.5 will looks like. It's just current master with the fix
> below, so use with care!)
>
> This has a potential fix for the described problem by using some other
> functionality to move files:
> https://gitlab.com/lilypond/lilypond/-/merge_requests/291 This works
> for me with files opened by Edge.
> Testing with Frescobaldi would be appreciated, and also with special
> characters in file names. I tried to model this after the code
> Masamichi-san wrote in March, but I'm not sure I understand what it's
> really needed for?
>
> Jonas
>


Re: 2,21,4 released

2020-07-30 Thread Jonas Hahnfeld
Am Dienstag, den 28.07.2020, 20:57 +0200 schrieb Jonas Hahnfeld:
> Am Dienstag, den 28.07.2020, 17:28 +0200 schrieb Pierre Perol-
> Schneider:
> > Hi All,
> > Under W10, the compilation fails after the second attempt:
> > 
> > Starting lilypond-windows.exe 2.21.4 [Untitled]...
> > Processing
> > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
> > document.ly'
> > Parsing...
> > Interpreting music...
> > Preprocessing graphical objects...
> > Finding the ideal number of pages...
> > Fitting music on 1 page...
> > Drawing systems...
> > Converting to `document.pdf'...
> > C:/Program Files (x86)/LilyPond
> > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
> > delete-file in expression (delete-file dst):
> > C:/Program Files (x86)/LilyPond
> > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied
> > Exited with return code 1.
> > 
> > But works at the third attempt (but fails at the 4th etc.)
> 
> I can reproduce this behavior for every compilation when the PDF file
> is opened with Edge. I guess Frescobaldi opens the PDF by default, but
> releases the file after an aborted compilation?
> Tracked in https://gitlab.com/lilypond/lilypond/-/issues/6016

Pierre, and all others using Windows: Could you give the following
version a try? https://cloud.hahnjo.de/index.php/s/wKx3Wb822CKQsq6
(Note: While the installer says 2.21.5, this is not at all what the
final 2.21.5 will looks like. It's just current master with the fix
below, so use with care!)

This has a potential fix for the described problem by using some other
functionality to move files: 
https://gitlab.com/lilypond/lilypond/-/merge_requests/291 This works
for me with files opened by Edge.
Testing with Frescobaldi would be appreciated, and also with special
characters in file names. I tried to model this after the code
Masamichi-san wrote in March, but I'm not sure I understand what it's
really needed for?

Jonas


signature.asc
Description: This is a digitally signed message part