Re: How to write this note from chaconne?

2018-03-07 Thread Malte Meyn



Am 08.03.2018 um 02:01 schrieb Simon Albrecht:

On 08.03.2018 01:39, Edmundo Carmona Antoranz wrote:

So I asked
around[1] and apparently it's a "harmonic delay" or a prolongation...


There is no reason whatsoever for any fancy words. It’s just a dotted 
note with the dot written at the rhythmic position where it actually 
happens.
I’ve never seen any realisation of this in LilyPond – would be good to 
have an LSR snippet.


There is a thread at the German user forum: 
https://archiv.lilypondforum.de/index.php/topic,1789.0.html
I don’t have time to read it and explain in English but maybe Simon or 
Harm (who was involved in this thread) can help?


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


Re: Having trouble understanding optional and variable amount of arguments

2018-03-07 Thread Urs Liska

Hi Stéfano,


Am 08.03.2018 um 07:26 schrieb Stefano Troncaro:

@Urs
I looked into your examples and \with blocks are very useful.

You said earlier that you were thinking about how to make it so that 
the context-mod could have required arguments, default values for 
missing ones, and even predicates. I was thinking that 
context-mod->props could be made to accept this information as an 
optional argument. Then it can return a 'curated' list of props or 
raise warnings/errors. That I think shouldn't be difficult to do.


Great idea, thank you. Actually it's pretty much along the lines I was 
already thinking about - but I hadn't thought of the obvious of doing it 
directly in context-mod->props.


Although I'm undecided on what would be a convenient way of storing 
the 'requirement data'. The obvious one to me is an alist with a 
structure like this: `((key1 . (required . #t)) (key2 . ((default . 9) 
(pred . ,number?))) ...), but I'm not sure. What do you think?




The "required" is not necessary because if a key shows up in this list 
it implicltly is required. One addition I'd do is add a keyword 'strict. 
When that's present any keys *not* in the list are rejected.


#(define rules
   `((key1 .;; type plus default
   ((type . ,number?)
(default . 5)))
 (key2 .;; only the type
   ((type . ,symbol?)))
 (key3) ;; required without type or default
 (key4 .;; default value but no type
   ((default . #t)))
 ))

#(define rules2
   (cons
'strict
`((key1 .
((type . ,number?)
 (default . 5)))
  (key2 .
((type . ,symbol?))


With rules1 the function would simply check for the presence of the 
specified keys while with rules2 unknown keys would be rejected (issue a 
warning and be dropped)


Defining the rules structures is somewhat picky - but this won't be done 
in the *user* documents but basically in packages or similar library 
structures, so it should be ok.


I'll give that a shot as I can use this in a current project - but of 
course I'd also review pull requests ;-)


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


Re: Having trouble understanding optional and variable amount of arguments

2018-03-07 Thread Stefano Troncaro
First of all, I apologize for the delayed response, I wanted to write back
earlier but I couldn't find the time to delve into your last suggestions.
Thank you for the useful replies!

@Harm
I don't understand most of what the code you provided is doing, only that
it works. It's far too advanced for me, so (unfortunately) dissecting it
would require much more time than what I currently have. It looks
interesting though, I hope I can study it in more detail later.

I did manage to look a little bit into macros, and I have a question if you
don't mind. This chapter of the guile documentation

explains about define-syntax and syntax-rules. They appear to work but
generate an error message about wrong number of arguments to a music
function. Is that module not usable in Lilypond?

Example that works:

> \version "2.19.80"
> #(define-macro (test conditional true false)
>`(if ,conditional
> ,true
> ,false))
>
> #(test #t (display "I'm true!\n") (display "I'm false!\n"))
>
> Example that works but creates an error, stopping the file from compiling:

> \version "2.19.80"#(use-syntax (ice-9 syncase))
>
> #(define-syntax test
>(syntax-rules ()
>  ((test conditional true false)
>   (if conditional
>   true
>   false
>
> #(test #t (display "I'm true!\n") (display "I'm false!\n"))
> %%% Creates the output:
> %{
> file.ly:5:2: error: GUILE signaled an error for the expression beginning here
> #
>  (define-syntax test
> I'm true!
> Wrong number of arguments to #>
> %}
>
>
@Urs
I looked into your examples and \with blocks are very useful.

You said earlier that you were thinking about how to make it so that the
context-mod could have required arguments, default values for missing ones,
and even predicates. I was thinking that context-mod->props could be made
to accept this information as an optional argument. Then it can return a
'curated' list of props or raise warnings/errors. That I think shouldn't be
difficult to do. Although I'm undecided on what would be a convenient way
of storing the 'requirement data'. The obvious one to me is an alist with a
structure like this: `((key1 . (required . #t)) (key2 . ((default . 9)
(pred . ,number?))) ...), but I'm not sure. What do you think?

2018-03-03 11:34 GMT-03:00 Thomas Morley :

> 2018-03-01 18:31 GMT+01:00 Stefano Troncaro :
> > I didn't know about \default or the dot/comma separated number/symbol
> lists!
> > I can see those being useful in some circumstances. I was thinking about
> > cases where an undefined amount of things different than symbols or
> numbers
> > are required, and the closest I can imagine is chaining functions to
> create
> > the illusion of a variable amount of arguments, like this:
> >>
> >> \version "2.19.80"
> >>
> >> #(define (end-list? obj)
> >>(and (list? obj)
> >> (let ((item (last obj)))
> >>   (and (symbol? item)
> >>(equal? "end" (symbol->string item))
> >>
> >> end = #(list 'end)
> >>
> >> #(define (el->curated-el el)
> >>(delete 'end el))
> >>
> >> untilEnd =
> >> #(define-void-function (proc el) (procedure? end-list?)
> >>(let ((curated-el (el->curated-el el)))
> >>  (for-each
> >>   (lambda (elem)
> >> (proc elem))
> >>   curated-el)))
> >>
> >> selfAppending =
> >> #(define-scheme-function (e-l) (end-list?)
> >>(let ((self-input (list (cons 1 2) (cons 3 4
> >>  (append self-input e-l)))
> >>
> >> selfAppendingInput =
> >> #(define-scheme-function (input e-l) (scheme? end-list?)
> >>(append (list input) e-l))
> >>
> >> \relative c'' {
> >>   c d e f
> >>   \untilEnd #pretty-print
> >> \selfAppending
> >> \selfAppendingInput #'(some useful input?)
> >> \selfAppendingInput #selfAppending
> >> \selfAppending
> >> \end
> >>   g a b c
> >> }
> >
> > This structure just happens to work for something I'm trying now but I
> can
> > see it being too narrow in general.
> >
> > @Urs, I not familiar with \with blocks, I'll take a look at the oll-core
> > code and experiment a bit with it. Maybe I'll be able to help.
> >
> > 2018-03-01 4:55 GMT-03:00 David Kastrup :
> >>
> >> Stefano Troncaro  writes:
> >>
> >> > Thank you! I see that this is not an option then. Also, I now
> understand
> >> > why I couldn't make the optional arguments work, since I always left
> >> > them
> >> > for last.
> >> >
> >> > Do you know if it is possible to have a flexible amount of optional
> >> > arguments that appear before the last mandatory one? Say, for example
> >> > (define-music-function (arg1 args music) (number? ??? ly:music?) where
> >> > arg1
> >> > and music are mandatory, and basically everything between arg1 and the
> >> > next
> >> > music expression is compacted into a list and accessed as args in the
> >> > body
> >> > 

Re: Centered full-measure rest in 3/4?

2018-03-07 Thread Jacques Menu Muzhic
Hello Torsten,

Thanks for this quite interesting example of Lily’s capabilities!

JM

> Le 7 mars 2018 à 21:14, Torsten Hämmerle  a écrit :
> 
> Hi Karen,
> 
> We all know that your client's preferred solution is against the rules, but,
> if she wants it that way, this is a good exercise. :)
> 
> Overriding the MultiMeasureRest stencil is not too easy, because the dots
> are a case of their own and generally not used for whole-bar rests at all.
> 
> There are two things to be considered:
> 
> (1) LilyPond will only use semibreve (or longer) rest symbols, but we want
> minim rests in this special case.
> Solution: There's a property "usable-duration-logs" containing a list of
> allowed duration-log values. We need to add a 1 there (for minim rests). If
> we add a 2 and a 3, LilyPond will even use crotchet rests and quaver rests:
> 
>  \override MultiMeasureRest.usable-duration-logs = #'(-3 -2 -1 0 1 2 3)
> 
> 
> (2) We still have a remaining problem: the missing dot. Dots are not a part
> of ordinary whole-bar rests, and that's why we have to build our own
> stencil.
> I've used the standard MultiMeasureRest.stencil and added the standard "dot"
> stencil, just shifted up by 0.5 stave units. If you set dot-count to 3, you
> will get three dots.
> 
> It's a bit inelegant that you'll have to explicitly set the number of dots
> you want to have displayed, but, as a result, you can specify any rest you
> want as a multi measure rest (whole-bar rest). 
> 
> Here's a minimal example demonstrating the use of the new custom-mm-rest
> stencil, even with dotted crotchet rests just for fun (knowing that they
> should not be centered).
> 
> %%%
> \version "2.18.2"
> 
> #(define (custom-mm-rest grob)
>   (ly:stencil-combine-at-edge
>(ly:multi-measure-rest::print grob) X RIGHT
>(ly:stencil-translate-axis (ly:dots::print grob) 0.5 Y) 0))
> 
> 
> \new PianoStaff <<
>   \new Staff \relative {
> \time 3/4
> 2 8-. q-. |
> 2 q4 |
> c,16 d e f g a b c g e c8 |
> \time 3/8
> c8 e g |
> f d b |
> c16 e g f d b |
>   }
>   \new Staff \relative {
> \time 3/4
> \override MultiMeasureRest.stencil = #custom-mm-rest
> \override MultiMeasureRest.usable-duration-logs = #'(-3 -2 -1 0 1 2 3
> 4)
> \override MultiMeasureRest.dot-count = #1
> R2.*3
> \time 3/8
> R4.*3
>   }
>>> 
> 
> In short:
> (1) set custom stencil
> (2) extending the usable-duration-logs list by adding minim, crotchet,
> quaver rests
> (3) explicitly set the dot-count to 1 so that a dotted rest symbol will be
> printed.
> Voilà ! :)
> 
> dotted-mm-rests.png
>   
> 
> All the best,
> Torsten
> 
> 
> 
> 
> --
> 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

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


Re: How to write this note from chaconne?

2018-03-07 Thread Edmundo Carmona Antoranz
On Wed, Mar 7, 2018 at 7:26 PM, Simon Albrecht  wrote:
> Rules that have evolved in the course of the 19th and 20th century and are
> certainly alien to the 18th.

I understand that the rules had changed over time and that back then
it was fine to do it that way.

> If you’re trying to turn this into an ‘authoritative’ representation as
> LilyPond code, fortunately there’s the option of coding it as a dotted note
> and if necessary displaying it with ties using the Completion_heads_engraver
> – a great tool for ancient music.
> And once there is a LilyPond engraver that can produce the original way of
> writing it, there will be no need of adjusting the content.

Talking specifically about using the dot right now, and letting
lilypond figure out that that it "spills" into the following bar, I
don't think that will be fine for my use case because I'm using
polyphony at that point and that would make lilypond think that when I
start writing for the following bar it would start half a beat later
and so I would not be able to write the bass g on the bar before last
(and I'd rather avoid hacking it too hard just to keep it simple...
that's why I try to write bars separately). If a way to write the dot
the way it is written on the original manuscript comes up later on,
I'll be happy to modify the file and push it to the repo so that it
matches the manuscript more closely.

Thank you very much for your feedback.

PS Change is already on the repo, just in case

https://github.com/eantoranz/bwv/blob/master/BWV%201004%20Violin%20Partita%20II%20D%20minor/5-ciaccona.ly

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


Re: How to write this note from chaconne?

2018-03-07 Thread Simon Albrecht

On 08.03.2018 02:17, Edmundo Carmona Antoranz wrote:

it's written in a way that would break the "normal" rules about
how to use it (it wouldn't fit on the previous bar so a tie to a 8th
note starting the bar is what I would have written)


Rules that have evolved in the course of the 19th and 20th century and 
are certainly alien to the 18th.


If you’re trying to turn this into an ‘authoritative’ representation as 
LilyPond code, fortunately there’s the option of coding it as a dotted 
note and if necessary displaying it with ties using the 
Completion_heads_engraver – a great tool for ancient music.
And once there is a LilyPond engraver that can produce the original way 
of writing it, there will be no need of adjusting the content.


Best, Simon

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


Re: How to write this note from chaconne?

2018-03-07 Thread Guy Stalnaker
Edmundo,

You've encountered an earlier engraving convention for how to show pitches
that continue from a previous measure. If you look at more autograph and
earlier published scores from the 17th and 18th centuries you'll find this.
It is, essentially, what we today call a "tied" note. I'm sure you know how
that looks. While you can attempt to discover a way to typeset this in
Lilypond, perhaps the better course is to use modern convention unless you
actually intend to use older conventions. But then, you'll likely need to
include an Explanations page for people to explain this unfamiliar
notation. I did a quick review of imslp.org and sure enough the first score
listed for BWV1004 shows this dot-as-tie (the Bach-Gesellschaft Ausgabe,
Band 27 Breitkoph and Haertel from 1879) while the Neue Bach-Ausbgabe from
1958 shows the tied note.

Guy Stalnaker
jimmyg...@gmail.com

On Wed, Mar 7, 2018 at 6:39 PM, Edmundo Carmona Antoranz <
eantor...@gmail.com> wrote:

> Hi!
>
> You know the chaconne from BWV 1004, right? On the bar before last,
> there's an apparent dot written at the position of the f at the
> opening of the bar. I didn't know if it was a staccato mark or other
> kind of expressive mark for the violin or a mistake but I also found
> it on Anna Magdalena' Bach's manuscrit, not just Bach's. So I asked
> around[1] and apparently it's a "harmonic delay" or a prolongation...
> it's the first time ever I see something like that written on a part
> (though I know the concept of the harmonic delay from the few classes
> of harmony I did "back in the day"). So I looked around how to
> write it on lilypond but i found nothing. What do you think is the
> best way to achieve it?
>
> Thanks in advance.
>
> [1] https://music.stackexchange.com/questions/67493/bwv-1004-
> is-there-a-pause-by-the-end-of-ciaccona-or-is-it-staccato
>
> ___
> 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: How to write this note from chaconne?

2018-03-07 Thread Edmundo Carmona Antoranz
On Wed, Mar 7, 2018 at 7:01 PM, Simon Albrecht  wrote:
> There is no reason whatsoever for any fancy words. It’s just a dotted note
> with the dot written at the rhythmic position where it actually happens.
> I’ve never seen any realisation of this in LilyPond – would be good to have
> an LSR snippet.
> Semantically it would call for an override on the dot.
>

Thanks for your reply, Simon. Oh! So, it's just a simple dot only
that it's written in a way that would break the "normal" rules about
how to use it (it wouldn't fit on the previous bar so a tie to a 8th
note starting the bar is what I would have written) and that's why I
didn't think of it as a dot on the previous f.

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


Re: How to write this note from chaconne?

2018-03-07 Thread Simon Albrecht

On 08.03.2018 01:39, Edmundo Carmona Antoranz wrote:

So I asked
around[1] and apparently it's a "harmonic delay" or a prolongation...


There is no reason whatsoever for any fancy words. It’s just a dotted 
note with the dot written at the rhythmic position where it actually 
happens.
I’ve never seen any realisation of this in LilyPond – would be good to 
have an LSR snippet.

Semantically it would call for an override on the dot.

Best, Simon

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


How to write this note from chaconne?

2018-03-07 Thread Edmundo Carmona Antoranz
Hi!

You know the chaconne from BWV 1004, right? On the bar before last,
there's an apparent dot written at the position of the f at the
opening of the bar. I didn't know if it was a staccato mark or other
kind of expressive mark for the violin or a mistake but I also found
it on Anna Magdalena' Bach's manuscrit, not just Bach's. So I asked
around[1] and apparently it's a "harmonic delay" or a prolongation...
it's the first time ever I see something like that written on a part
(though I know the concept of the harmonic delay from the few classes
of harmony I did "back in the day"). So I looked around how to
write it on lilypond but i found nothing. What do you think is the
best way to achieve it?

Thanks in advance.

[1] 
https://music.stackexchange.com/questions/67493/bwv-1004-is-there-a-pause-by-the-end-of-ciaccona-or-is-it-staccato

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


Re: error: unknown escaped string: `\overlay

2018-03-07 Thread Simon Albrecht

On 08.03.2018 01:08, Simon Albrecht wrote:
alternative link. 




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


Re: error: unknown escaped string: `\overlay

2018-03-07 Thread Simon Albrecht

On 03.03.2018 18:37, pedroproenÇa wrote:

I'm trying to install the unstable version (my OS is Lubuntu), but I'm
unable to.


What instructions did you follow?
It’s pretty simple, if you follow  and 
replace the 2.18 binary with the 2.19 one. The download links on the 
website don’t work right now, but there were about half a dozen recent 
threads pointing out an alternative link.


Best, Simon

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


Re: Time signatures above the staff

2018-03-07 Thread Ben

On 3/7/2018 4:50 PM, Pedro Proença wrote:

Hi

Is it possible to put time signatures above the staff, on top of the 
barlines? If so, how would I go about doing it? I've searched the web 
and came up short



Also, I'd like for, in a score with multiple staves, just one time 
signature, on the very top of the topmost staff. I'm sure it's doable, 
I'm just not seeing how.


Thanks in advance



There are several ways to do time signatures above staves, pros and cons.

Here is a starting point for you:
http://lsr.di.unimi.it/LSR/Item?id=272


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


Time signatures above the staff

2018-03-07 Thread Pedro Proença
Hi

Is it possible to put time signatures above the staff, on top of the
barlines? If so, how would I go about doing it? I've searched the web and
came up short


Also, I'd like for, in a score with multiple staves, just one time
signature, on the very top of the topmost staff. I'm sure it's doable, I'm
just not seeing how.

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


Re: Centered full-measure rest in 3/4?

2018-03-07 Thread Torsten Hämmerle
Hi Karen,

We all know that your client's preferred solution is against the rules, but,
if she wants it that way, this is a good exercise. :)

Overriding the MultiMeasureRest stencil is not too easy, because the dots
are a case of their own and generally not used for whole-bar rests at all.

There are two things to be considered:

(1) LilyPond will only use semibreve (or longer) rest symbols, but we want
minim rests in this special case.
Solution: There's a property "usable-duration-logs" containing a list of
allowed duration-log values. We need to add a 1 there (for minim rests). If
we add a 2 and a 3, LilyPond will even use crotchet rests and quaver rests:

  \override MultiMeasureRest.usable-duration-logs = #'(-3 -2 -1 0 1 2 3)


(2) We still have a remaining problem: the missing dot. Dots are not a part
of ordinary whole-bar rests, and that's why we have to build our own
stencil.
I've used the standard MultiMeasureRest.stencil and added the standard "dot"
stencil, just shifted up by 0.5 stave units. If you set dot-count to 3, you
will get three dots.

It's a bit inelegant that you'll have to explicitly set the number of dots
you want to have displayed, but, as a result, you can specify any rest you
want as a multi measure rest (whole-bar rest). 

Here's a minimal example demonstrating the use of the new custom-mm-rest
stencil, even with dotted crotchet rests just for fun (knowing that they
should not be centered).

%%%
\version "2.18.2"

#(define (custom-mm-rest grob)
   (ly:stencil-combine-at-edge
(ly:multi-measure-rest::print grob) X RIGHT
(ly:stencil-translate-axis (ly:dots::print grob) 0.5 Y) 0))


 \new PianoStaff <<
   \new Staff \relative {
 \time 3/4
 2 8-. q-. |
 2 q4 |
 c,16 d e f g a b c g e c8 |
 \time 3/8
 c8 e g |
 f d b |
 c16 e g f d b |
   }
   \new Staff \relative {
 \time 3/4
 \override MultiMeasureRest.stencil = #custom-mm-rest
 \override MultiMeasureRest.usable-duration-logs = #'(-3 -2 -1 0 1 2 3
4)
 \override MultiMeasureRest.dot-count = #1
 R2.*3
 \time 3/8
 R4.*3
   }
 >>

In short:
(1) set custom stencil
(2) extending the usable-duration-logs list by adding minim, crotchet,
quaver rests
(3) explicitly set the dot-count to 1 so that a dotted rest symbol will be
printed.
Voilà ! :)

dotted-mm-rests.png
  

All the best,
Torsten




--
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: Frescobaldi sudden failures on all machines

2018-03-07 Thread David Kastrup
 writes:

> Yes I get that but there were no resulting output files.

We are not talking about output files but about the messages visible in
the console window.

-- 
David Kastrup

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


Re: Centered full-measure rest in 3/4?

2018-03-07 Thread Karen Billings
Thank you for the moral support, Simon!
My "client", as you so kindly call her, is a bit headstrong, and I'll leave it 
at that.
Thanks again!
Karen

On Wednesday, March 7, 2018 11:01 AM, Simon Albrecht 
 wrote:
 

 On 06.03.2018 23:07, Karen Billings wrote:
> I am setting an interlude for a colleague. She has specified a 
> full-measure centered rest, notated as a dotted half-rest.

The answer is very simple: Don’t do it. Tell your client it’s wrong 
notation. One has to do that as an engraver.
Exception: your client is very well aware of the rules, but she wants to 
change them deliberately.

> I have searched the documentation for several hours and cannot seem to 
> figure out how to do this.

This is one of the cases where if LilyPond can’t do it (within 
reasonable effort) it’s a bad thing to do.

Best, Simon


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


Re: Centered full-measure rest in 3/4?

2018-03-07 Thread Simon Albrecht

On 06.03.2018 23:07, Karen Billings wrote:
I am setting an interlude for a colleague. She has specified a 
full-measure centered rest, notated as a dotted half-rest.


The answer is very simple: Don’t do it. Tell your client it’s wrong 
notation. One has to do that as an engraver.
Exception: your client is very well aware of the rules, but she wants to 
change them deliberately.


I have searched the documentation for several hours and cannot seem to 
figure out how to do this.


This is one of the cases where if LilyPond can’t do it (within 
reasonable effort) it’s a bad thing to do.


Best, Simon

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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
Yes I get that but there were no resulting output files.

-Original Message-
From: Phil Holmes  
Sent: 07 March 2018 14:33
To: peter.gen...@sunscales.myzen.co.uk; 'David Kastrup' ;
Karlin High 
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

- Original Message - 
From: "Karlin High" 
To: ; "'David Kastrup'" 
Cc: "Lilypond" 
Sent: Wednesday, March 07, 2018 2:17 PM
Subject: Re: Frescobaldi sudden failures on all machines


> On 3/7/2018 8:08 AM, peter.gen...@sunscales.myzen.co.uk wrote:
>> Faulting application path: c:\Program Files
>> (x86)\LilyPond\usr\bin\lilypond-windows.exe
>
> Does it make a difference if you use lilypond.exe,
> instead of lilypond-windows.exe?
> -- 
> Karlin High
> Missouri, USA


It should do.

http://lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage

"Note to Windows users: By default lilypond.exe outputs all progress 
information to the command window, lilypond-windows.exe does not and returns

a prompt, with no progress information, immediately at the command line. The

'-dgui' option can be used in this case to redirect output to a log file."

--
Phil Holmes 


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


Re: Centered full-measure rest in 3/4?

2018-03-07 Thread Karen Billings
Kieren,
Thank you so much for trying to help me. I couldn't figure out how to override 
the stencil (I'm afraid I'm still too much of a novice), but I finally figured 
out how to shift a regular rest horizontally so it appears a bit more centered.
Thank you again!
Karen 

On Tuesday, March 6, 2018 5:45 PM, Kieren MacMillan 
 wrote:
 

 Hi Karen,

> I am setting an interlude for a colleague. She has specified a full-measure 
> centered rest, notated as a dotted half-rest. I have searched the 
> documentation for several hours and cannot seem to figure out how to do this.
> 
> I want the rest in measure 2, but centered like the rest in measure 1. Advice?

I assume you’d want to use a MultiMeasureRest (i.e., R2.), and override the 
stencil to look like you want it to.

Hope that puts you on the right path!
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: ScholarLy and Latex

2018-03-07 Thread Urs Liska

Hi Craig,

sorry for the delay, but I had quite reduced capacities during the past 
week.


I'm even more sorry to inform you that what you experience is "expected 
behaviour" and the result of incomplete implementation :-(


The exported annotations put a number of information items (including 
the message!) in one optional argument, followed by four mandatory 
arguments with the curly braces.



However, in the .sty file the commands are defined to expect six 
arguments, the first one being optional:


\newcommand{\criticalRemark}[6][]{
\annotation[#1]{#2}{#3}{#4}{#5}{#6}
{Critical Remark}}

This makes \criticalRemark call \annotation, pass its six arguments to 
it and one hard-coded "Critical Remark" argument as seventh.


The code exported from scholarly does not export that sixth argument, 
and consequently it is empty when it reaches \annotation.
As you have noticed, if you copy the entry to the end of the list of 
arguments it will be printed correctly.


I'm not sure what to advise you right now. Your are actually suffering 
from the fact that I didn't manage to keep hold of the project. In 
addition to what is "publicly" available there is an "initial LaTeX 
package" in the repository, on the unmerged branch 
'initial-latex-package' with substantial code additions and 
unfortunately the lack of review on my part. Maybe this branch is 
actually ready to be merged, but I simply don't really know.
And unfortunately I can't promise to change that immediately. Although I 
should take your report as the incentive to finally get back to that, 
now that lyluatex is also "out".


I have pushed a temporary fix to the temp-print-message branch. If you 
checkout that branch and recompile the LilyPond score the annotation 
message will be added to the list of arguments, and your report.sty will 
properly read in the message.
But I don't really like that hack, and you have to be aware that this 
interface may not be stable.


Sorry for not having much better info for you
Best
Urs

Am 02.03.2018 um 10:25 schrieb Craig Dabelstein:

Hi Urs,

I hope you can understand these files. I think the report.sty file was 
borrowed from your Scores of Beauty post a long time ago (maybe). My 
problem is trying to get the content of the "message" field to be 
displayed.


All the best,

Craig


On 1 March 2018 at 19:05, Urs Liska > wrote:


Hi Craig,


Am 23.02.2018 um 10:07 schrieb Craig Dabelstein:

Hi Lilyponders,

I'm having a minor problem with getting my ScholarLy inp file to
work with Latex. The Latex output for each annotation looks like
this:

\criticalRemark
   [grob={DynamicText},
    grob-location={Can't display grob location yet},
    grob-type={DynamicText},
    input-file-name={fluteI.ily},
    context-id={Flauto 1},
   
location={/Users//Maximes_Music/Projects/MM0110/Hallager/critical
edition/Parts/../Notes/fluteI.ily 55:2:2},
    type={critical-remark},
    message={Added missing \lilyDynamics{p}}]
    {18}{6}
    {Flauto 1}
    {DynamicText}

And within my Latex file each entry is displayed with this code:

\noindent
\theAnnotationNo\,)\\
\textit{(#7)}\\
\ifthenelse{\equal{#2}{\value{CurrentMeasure}}}
{}{\textbf{M. #2},
\setcounter{CurrentMeasure}{#2}}%
beat #3\\
#4\\
Affects: #5\\
``#6''}

My problem is that Latex won't display the #6 (the contents of
the message field). It is displaying the quotation marks but just
empty space in between. If I cut and paste the message field and
add it to the bottom of the code it displays perfectly correctly:

\criticalRemark
 [grob={DynamicText},
  grob-location={Can't display grob location yet},
  grob-type={DynamicText},
  input-file-name={fluteI.ily},
  context-id={Flauto 1},
 
location={/Users//Maximes_Music/Projects/MM0110/Hallager/critical
edition/Parts/../Notes/fluteI.ily 55:2:2},
  type={critical-remark},
  message={Added missing \lilyDynamics{p}}]
  {18}{6}
  {Flauto 1}
  {DynamicText}
  {Added missing \lilyDynamics{p}}


Any ideas where I could be going wrong?



Not yet, but could you please send a MWE, i.e. a complete file,
with maybe that critical remark just added in the file (instead of
inputted)? What exactly is context of the code that displays the
annotation, i.e. where's the complete definition of the
"\criticalRemark" macro?

Urs


Thanks in advance,

Craig


-- 
*Craig Dabelstein*

Maxime's Music
craig.dabelst...@gmail.com 
/http://maximesmusic.com/


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



Re: Frescobaldi sudden failures on all machines

2018-03-07 Thread Ben

On 3/7/2018 10:49 AM, peter.gen...@sunscales.myzen.co.uk wrote:

Trial on the laptop from command prompt
Lilypond-windows.exe no response
Lilypond.exe the long winded windows response "Windows has found a problem
etc etc will notify you if a solution is found" ie your on your own chum. No
detailed information

Next will try command prompt with admin priv.



Hi Peter,

Have you tried just running the LilyPond "exe" (not 
Lilypond-windows.exe) from the terminal?
That should work at least, with some sort of response to work 
with...good or bad.


(see attached)


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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
Trial on the laptop from command prompt
Lilypond-windows.exe no response
Lilypond.exe the long winded windows response "Windows has found a problem
etc etc will notify you if a solution is found" ie your on your own chum. No
detailed information

Next will try command prompt with admin priv.
-Original Message-
From: David Kastrup  
Sent: 07 March 2018 14:28
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

> No.  Try running LilyPond in a terminal window (or see whether 
> Frescobaldi offers something like that) in order to see whether there 
> is any output accompanying the abort.

--
David Kastrup


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


Re: LilyPond Downloads broken?

2018-03-07 Thread Phil Holmes
a) Han-Wen
b) Jan

--
Phil Holmes


  - Original Message - 
  From: Urs Liska 
  To: Phil Holmes ; lilypond-user@gnu.org ; bug-lilypond 
  Cc: Han-Wen Nienhuys ; Jan Nieuwenhuizen 
  Sent: Wednesday, March 07, 2018 3:22 PM
  Subject: Re: LilyPond Downloads broken?







  Am 07.03.2018 um 16:11 schrieb Phil Holmes:

The lack of the latest files on the linuxaudio site isn't something I can 
fix.  My understanding is that the situation used to be that lilypond.org used 
to run a cron job that scp'ed the binaries to linuxaudio.  However, this 
stopped working when a) Han-Wen changed the hosting of lilypond.org or b) there 
was a problem with linuxaudio and it had to be rebuilt. 


  I assume it was the latter. Somewhere I read a blog post about their server 
being hacked and completely rebuilt in a new infrastructure. Obviously our 
uploads don't work anymore since then.


I assume that there is not the correct certificate on the new lilypond.org 
system.

The cron job was set up by Jan, and the login I use has no access to it.

The simplest solution might be to change to simply pointing all downloads 
to the lilypond.org server.  I think we didn't do this in the past to lower the 
load on the server, but the new infrastructure might not see that as a problem.

  Well, at least currently it's the problem that the links point to a 404 error 
page. 
  a) Who knows whether it is acceptable to permanently host the binaries on 
lilypond.org (somehow I doubt that is an option)?
  b) Who knows how much work it will be to get the hosting on linuxaudio.org to 
be working again?
  If either a) is the way to go or b) is suspect of taking more time (than say, 
a few days) we should temporarily update the links on the download page.

  Urs



Copied to Jan and Han-Wen for their thoughts.

--
Phil Holmes


  - Original Message - 
  From: Urs Liska 
  To: lilypond-user@gnu.org ; bug-lilypond 
  Sent: Wednesday, March 07, 2018 3:00 PM
  Subject: Re: LilyPond Downloads broken?


  (Cross-posting to bug-lilypond)



  Am 07.02.2018 um 16:22 schrieb Phil Holmes:

Available from http://lilypond.org/downloads/binaries/ currently.

  Any information on how long this situation will last? I think we should 
consider updating the website, even if it's temporary.

  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


lyluatex, call for pre-beta review

2018-03-07 Thread Urs Liska
lyluatex (https://github.com/jperon/lyluatex) is a package for LuaLaTeX 
that allows the inclusion of LilyPond code in .tex documents and 
automatically manages their compilation with LilyPond.


By now the package is a fully-compatible superset to the lilypond-book 
script that ships with LilyPond, and we are preparing a significant v1 
release. Before uploading a Beta version to CTAN we invite the members 
of this mailing list to thoroughly test and review the package and its 
documentation. Please find the description and a rendered manual at 
https://github.com/jperon/lyluatex/issues/177


Best regards
Urs (Liska)


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


Re: LilyPond Downloads broken?

2018-03-07 Thread Urs Liska



Am 07.03.2018 um 16:11 schrieb Phil Holmes:
The lack of the latest files on the linuxaudio site isn't something I 
can fix.  My understanding is that the situation used to be that 
lilypond.org used to run a cron job that scp'ed the binaries to 
linuxaudio.  However, this stopped working when a) Han-Wen changed the 
hosting of lilypond.org or b) there was a problem with linuxaudio and 
it had to be rebuilt.


I assume it was the latter. Somewhere I read a blog post about their 
server being hacked and completely rebuilt in a new infrastructure. 
Obviously our uploads don't work anymore since then.


I assume that there is not the correct certificate on the new 
lilypond.org system.

The cron job was set up by Jan, and the login I use has no access to it.
The simplest solution might be to change to simply pointing all 
downloads to the lilypond.org server.  I think we didn't do this in 
the past to lower the load on the server, but the new infrastructure 
might not see that as a problem.


Well, at least currently it's the problem that the links point to a 404 
error page.
a) Who knows whether it is acceptable to permanently host the binaries 
on lilypond.org (somehow I doubt that is an option)?
b) Who knows how much work it will be to get the hosting on 
linuxaudio.org to be working again?
If either a) is the way to go or b) is suspect of taking more time (than 
say, a few days) we should temporarily update the links on the download 
page.


Urs


Copied to Jan and Han-Wen for their thoughts.

--
Phil Holmes

- Original Message -
*From:* Urs Liska 
*To:* lilypond-user@gnu.org  ;
bug-lilypond 
*Sent:* Wednesday, March 07, 2018 3:00 PM
*Subject:* Re: LilyPond Downloads broken?

(Cross-posting to bug-lilypond)


Am 07.02.2018 um 16:22 schrieb Phil Holmes:

Available from http://lilypond.org/downloads/binaries/ currently.


Any information on how long this situation will last? I think we
should consider updating the website, even if it's temporary.

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: LilyPond Downloads broken?

2018-03-07 Thread Phil Holmes
The lack of the latest files on the linuxaudio site isn't something I can fix.  
My understanding is that the situation used to be that lilypond.org used to run 
a cron job that scp'ed the binaries to linuxaudio.  However, this stopped 
working when a) Han-Wen changed the hosting of lilypond.org or b) there was a 
problem with linuxaudio and it had to be rebuilt.  I assume that there is not 
the correct certificate on the new lilypond.org system.

The cron job was set up by Jan, and the login I use has no access to it.

The simplest solution might be to change to simply pointing all downloads to 
the lilypond.org server.  I think we didn't do this in the past to lower the 
load on the server, but the new infrastructure might not see that as a problem.

Copied to Jan and Han-Wen for their thoughts.

--
Phil Holmes


  - Original Message - 
  From: Urs Liska 
  To: lilypond-user@gnu.org ; bug-lilypond 
  Sent: Wednesday, March 07, 2018 3:00 PM
  Subject: Re: LilyPond Downloads broken?


  (Cross-posting to bug-lilypond)



  Am 07.02.2018 um 16:22 schrieb Phil Holmes:

Available from http://lilypond.org/downloads/binaries/ currently.

  Any information on how long this situation will last? I think we should 
consider updating the website, even if it's temporary.

  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: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
David

If there was any console output - it did work using lilypond.exe rather than
lilypond-windows.exe.

I'm afraid that the various users and folders on the two machines are
verbose and prone to finger trouble. I will pause a while and plan a series
of test rather than groping about in the dark.

-Original Message-
From: David Kastrup  
Sent: 07 March 2018 14:28
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

 writes:

> David
>
> I have tried that in order for windows to fined Lily I had to cd to 
> the folder C:/Program Files (x86)/Lilypond/usr/bin
>
> Then run with line below
> Lilypond-windows.exe c:\users\Peter\Desktop\baseline.ly
>
> Response there was none.

That's entirely unlikely.  You probably did not run Linux from a terminal
window or there would have been at least startup messages and similar.

>  Windows Event Log Windows Logs Application Type Administrative
>
> Faulting application name: lilypond-windows.exe, version: 2.19.56.1, 
> time
> stamp: 0x000b
> Faulting module name: lilypond-windows.exe, version: 2.19.56.1, time
stamp:
> 0x000b
> Exception code: 0xc005
> Fault offset: 0x0034cac7
> Faulting process id: 0x16a8
> Faulting application start time: 0x01d3b61adeb085f4 Faulting 
> application path: c:\Program Files 
> (x86)\LilyPond\usr\bin\lilypond-windows.exe
> Faulting module path: c:\Program Files 
> (x86)\LilyPond\usr\bin\lilypond-windows.exe
> Report Id: 2ab00afd-0be4-43c8-a108-7a8994b6f818
> Faulting package full name:

Again: we need the actual terminal/console output connected with that.

> No.  Try running LilyPond in a terminal window (or see whether 
> Frescobaldi offers something like that) in order to see whether there 
> is any output accompanying the abort.

--
David Kastrup


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


Re: LilyPond Downloads broken?

2018-03-07 Thread Urs Liska

(Cross-posting to bug-lilypond)


Am 07.02.2018 um 16:22 schrieb Phil Holmes:

Available from http://lilypond.org/downloads/binaries/ currently.


Any information on how long this situation will last? I think we should 
consider updating the website, even if it's temporary.


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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
Yes it does that works

-Original Message-
From: Karlin High  
Sent: 07 March 2018 14:18
To: peter.gen...@sunscales.myzen.co.uk; 'David Kastrup' 
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

On 3/7/2018 8:08 AM, peter.gen...@sunscales.myzen.co.uk wrote:
> Faulting application path: c:\Program Files 
> (x86)\LilyPond\usr\bin\lilypond-windows.exe

Does it make a difference if you use lilypond.exe, instead of 
lilypond-windows.exe?
--
Karlin High
Missouri, USA


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


Re: Frescobaldi sudden failures on all machines

2018-03-07 Thread Phil Holmes
- Original Message - 
From: "Karlin High" 

To: ; "'David Kastrup'" 
Cc: "Lilypond" 
Sent: Wednesday, March 07, 2018 2:17 PM
Subject: Re: Frescobaldi sudden failures on all machines



On 3/7/2018 8:08 AM, peter.gen...@sunscales.myzen.co.uk wrote:

Faulting application path: c:\Program Files
(x86)\LilyPond\usr\bin\lilypond-windows.exe


Does it make a difference if you use lilypond.exe,
instead of lilypond-windows.exe?
--
Karlin High
Missouri, USA



It should do.

http://lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage

"Note to Windows users: By default lilypond.exe outputs all progress 
information to the command window, lilypond-windows.exe does not and returns 
a prompt, with no progress information, immediately at the command line. The 
'-dgui' option can be used in this case to redirect output to a log file."


--
Phil Holmes 



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


Re: Frescobaldi sudden failures on all machines

2018-03-07 Thread David Kastrup
 writes:

> David
>
> I have tried that in order for windows to fined Lily I had to cd to the
> folder 
> C:/Program Files (x86)/Lilypond/usr/bin
>
> Then run with line below
> Lilypond-windows.exe c:\users\Peter\Desktop\baseline.ly
>
> Response there was none.

That's entirely unlikely.  You probably did not run Linux from a
terminal window or there would have been at least startup messages and
similar.

>  Windows Event Log Windows Logs Application Type Administrative
>
> Faulting application name: lilypond-windows.exe, version: 2.19.56.1, time
> stamp: 0x000b
> Faulting module name: lilypond-windows.exe, version: 2.19.56.1, time stamp:
> 0x000b
> Exception code: 0xc005
> Fault offset: 0x0034cac7
> Faulting process id: 0x16a8
> Faulting application start time: 0x01d3b61adeb085f4
> Faulting application path: c:\Program Files
> (x86)\LilyPond\usr\bin\lilypond-windows.exe
> Faulting module path: c:\Program Files
> (x86)\LilyPond\usr\bin\lilypond-windows.exe
> Report Id: 2ab00afd-0be4-43c8-a108-7a8994b6f818
> Faulting package full name:

Again: we need the actual terminal/console output connected with that.

> No.  Try running LilyPond in a terminal window (or see whether Frescobaldi
> offers something like that) in order to see whether there is any output
> accompanying the abort.

-- 
David Kastrup

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


Re: Frescobaldi sudden failures on all machines

2018-03-07 Thread Karlin High

On 3/7/2018 8:08 AM, peter.gen...@sunscales.myzen.co.uk wrote:

Faulting application path: c:\Program Files
(x86)\LilyPond\usr\bin\lilypond-windows.exe


Does it make a difference if you use lilypond.exe,
instead of lilypond-windows.exe?
--
Karlin High
Missouri, USA

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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
David

I have tried that in order for windows to fined Lily I had to cd to the
folder 
C:/Program Files (x86)/Lilypond/usr/bin

Then run with line below
Lilypond-windows.exe c:\users\Peter\Desktop\baseline.ly

Response there was none.
 Windows Event Log Windows Logs Application Type Administrative

Faulting application name: lilypond-windows.exe, version: 2.19.56.1, time
stamp: 0x000b
Faulting module name: lilypond-windows.exe, version: 2.19.56.1, time stamp:
0x000b
Exception code: 0xc005
Fault offset: 0x0034cac7
Faulting process id: 0x16a8
Faulting application start time: 0x01d3b61adeb085f4
Faulting application path: c:\Program Files
(x86)\LilyPond\usr\bin\lilypond-windows.exe
Faulting module path: c:\Program Files
(x86)\LilyPond\usr\bin\lilypond-windows.exe
Report Id: 2ab00afd-0be4-43c8-a108-7a8994b6f818
Faulting package full name:

Hmm

-Original Message-
From: David Kastrup  
Sent: 07 March 2018 10:27
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

 writes:

> This is an event log from the "STILL" faulting Laptop. Does it mean 
> anything to anyone?
>
> -  xmlns="http://schemas.microsoft.com/win/2004/08/events/event;>

No.  Try running LilyPond in a terminal window (or see whether Frescobaldi
offers something like that) in order to see whether there is any output
accompanying the abort.

--
David Kastrup


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


Re: Define nr of measures per system

2018-03-07 Thread Urs Liska



Am 06.03.2018 um 18:47 schrieb Kieren MacMillan:

Hi Omri,


Another beginner question, but can't seem to find the answer in the 
documentation:
is it possible to define a constant number of measures per staff system?

There is no dead-simple, built-in way… but there are many ways of accomplishing 
what you want, each with pros and cons depending on exactly what functionality 
and flexibility you want.

For a constant number of measures per system, my favourite is David K's 
\bar-keeper, which I’ve shown in the snippet below.

(Aside: I’m not sure why this isn’t in the main base code… Given that David K 
coded it, I imagine it’s the most elegant solution possible to the problem he 
was tasked to solve. And it is a function that many, many users would 
appreciate having access to.)



Another approach that works well (and could easily be enhanced if there 
is interest) would involve openLilyLib packages, namely the page-layout 
package. Internally this uses the edition-engraver to "inject" breaks at 
specific positions which are targeting "measures", regardles of time 
signatures.


The current interface would be (skipping the installation and set-up here):

%%%
\include "oll-core/package.ily"
\loadPackage \with {
  modules = conditional-breaks
}
page-layout
\registerBreakSet my-breaks
\setBreaks my-breaks line-breaks 5.8.13.17.21.25
\applyconditionalBreaks my-breaks
%%%

This would apply line breaks at the measures given in the dot-separated 
list.


What I think would be a useful enhancement would be a function that adds 
a regular list of breaks, possibly limited to a section, for example with


\setBreaks my-breaks line-breaks 5.12.17.23.51
\addRegularBreaks my-breaks line-breaks 26 4 6

which would insert "6" breaks after "4" measures each, starting with 
"26", i.e. 26.30.34.38.42.46
Other interfaces could be thought of, in particular ways that apply the 
regular measures globally (i.e. not starting at a specific point) or 
"from here throughout the end".


Is this something I should add to the page-layout package?

Urs


Hope this helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.19"

#(define (index-list? x)
   (and (list? x)
(every index? x)))

#(define (index-pattern numbers)
   "Convert an `index pattern' into a circular list.  Zeros are removed,
with the last zero preceding the part of the list that should become
circular.  If that list part is empty, the resulting list has no circular
end.  Without any zero, the whole list is turned into a circular one."
   (define (creverse! x y)
 "Reverse both x and y, make y circular and append to x."
 (if (pair? y)
 (let* ((rev-y (reverse! y))
(rev-x (reverse! x rev-y)))
   (set-cdr! y rev-y)
   rev-x)
 (reverse! x y)))
   (let loop ((non-reps '()) (reps '()) (rest numbers))
 (cond ((null? rest) (creverse! non-reps reps))
   ((zero? (car rest))
(loop (append! reps non-reps) '() (cdr rest)))
   ((index? (car rest))
(loop non-reps (cons (car rest) reps) (cdr rest)))
   (else (ly:input-warning (*location*)
   (_ "Not an index: ~a") (car rest))
 (loop non-reps reps (cdr rest))

bar-keeper =
#(define-scheme-function (numbers) (index-list?)
   "Create a context mod for consisting a Timing-level engraver
breaking after bar group lengths specified in the list.  If the list
is exhausted, it starts over from the start or from after a 0 marker
contained in the list.  If the list @emph{ends} with@tie{}0, line
breaking reverts to normal after using up the list."
   (ly:make-context-mod
`((consists
   ,(lambda (c)
  (let ((target #f) (numbers (index-pattern numbers)))
(make-engraver
 (acknowledgers
  ((paper-column-interface eng grob from)
   (and (pair? numbers)
(ly:grob-property grob 'non-musical #f)
(let ((bar (ly:context-property (ly:translator-context eng)
'internalBarNumber)))
  (if (not target)
  (set! target bar)
  (set! (ly:grob-property grob 'line-break-permission)
(and (>= bar (+ target (car numbers)))
 (begin
   (set! target (+ target (car numbers)))
   (set! numbers (cdr numbers))
   'force)))


\score {
   \new Score \with \bar-keeper 4 {
 \repeat unfold 100 { c''4 }
   }
}
%%%  SNIPPET ENDS


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: Define nr of measures per system

2018-03-07 Thread Urs Liska



Am 07.03.2018 um 08:02 schrieb Brian Barker:

At 18:16 06/03/2018 +0100, Omri Abram wrote:
Another beginner question, but can't seem to find the answer in the 
documentation: is it possible to define a constant number of measures 
per staff system?


The Notation Reference (at 4.3.1) suggests:

For line breaks at regular intervals use \break separated by skips and 
repeated with \repeat.
For example, this would cause the following 28 measures (assuming 4/4 
time) to be broken every 4 measures, and only there:

<<
  \repeat unfold 7 {
    s1 \noBreak s1 \noBreak
    s1 \noBreak s1 \break
  }
  { the actual music... }
>>


The caveat here is that all measures have to have the same length, so 
time signature changes have to be coded manually.
Worse: if there should be any changes after the fact they have to 
manually be added to that breaking layer too.


Urs


Brian Barker

___
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: Frescobaldi sudden failures on all machines

2018-03-07 Thread Urs Liska


Am 7. März 2018 11:27:02 MEZ schrieb David Kastrup :
> writes:
>
>> This is an event log from the "STILL" faulting Laptop. Does it mean
>anything
>> to anyone?
>>
>> - xmlns="http://schemas.microsoft.com/win/2004/08/events/event;>
>
>No.  Try running LilyPond in a terminal window (or see whether
>Frescobaldi offers something like that) in order to see whether there
>is
>any output accompanying the abort.

If your terminal doesn't find LilyPond you can look into Frescobaldi's 
Preferences. There a path to the executable must be visible.



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


Re: Frescobaldi sudden failures on all machines

2018-03-07 Thread David Kastrup
 writes:

> This is an event log from the "STILL" faulting Laptop. Does it mean anything
> to anyone?
>
> - http://schemas.microsoft.com/win/2004/08/events/event;>

No.  Try running LilyPond in a terminal window (or see whether
Frescobaldi offers something like that) in order to see whether there is
any output accompanying the abort.

-- 
David Kastrup

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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
This is an event log from the "STILL" faulting Laptop. Does it mean anything
to anyone?

- http://schemas.microsoft.com/win/2004/08/events/event;>
- 
   
  1000 
  2 
  100 
  0x80 
   
  1238 
  Application 
  PeterLaptop 
   
  
- 
  lilypond-windows.exe 
  2.19.56.1 
  000b 
  lilypond-windows.exe 
  2.19.56.1 
  000b 
  c005 
  0034cac7 
  25d0 
  01d3b5fba96e9e39 
  C:\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe 
  C:\Program Files (x86)\LilyPond\usr\bin\lilypond-windows.exe 
  bdb1dcc3-84ab-401e-b2e4-ccd8034b7424 
   
   
  

-Original Message-
From: David Kastrup  
Sent: 06 March 2018 16:11
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines


I suspect this is just because failed assertions now make LilyPond abort
with an error message and you previously ignored them (which was almost a
given since distributed binaries of LilyPond completely omitted them).

--
David Kastrup


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


RE: Frescobaldi sudden failures on all machines

2018-03-07 Thread peter.gentry
I don't believe it

First thing this morning I try Fresco again.

1. very strange behavior the Fresco short cut image appeared in the Output
pane somewhat greyed out. Weird

2. I carry on and everything works as it should.

3. I don't like mysteries but as long as its working. 

Something odd in the bowels of windows I guess but what ???

-Original Message-
From: David Kastrup  
Sent: 06 March 2018 16:11
To: peter.gen...@sunscales.myzen.co.uk
Cc: Lilypond 
Subject: Re: Frescobaldi sudden failures on all machines

 writes:

> I have been using Frescobaldi for years but today re-running old files 
> I see the following behaviour.
>
>  
>
> The compilation proceeds for a while then halts with error 
> -1073741819. This happens on two different Windows 10 machines with 
> different OS versions. It happens when attempting to recompile old .ly
files.
>
>  
>
> Frescobaldi error messages are notoriously obscure.  I have 
> uninstalled ad re-installed Frescobaldi and rebooted to no effect.
>
>  
>
> Does anyone have any suggestions to isolate this issue. I suspect it 
> may be about file permissions but that is just a suspicion.

I suspect this is just because failed assertions now make LilyPond abort
with an error message and you previously ignored them (which was almost a
given since distributed binaries of LilyPond completely omitted them).

--
David Kastrup


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


Re: edition-engraver commit error (was Re: Edition Engraver tweak error)

2018-03-07 Thread Craig Dabelstein
Hi Jan- Peter,

No, I was only caught by my own feeble brain. Thanks so much for all your
work with the EE.

All the best,

Craig

On Wed., 7 Mar. 2018, 5:37 pm Jan-Peter Voigt,  wrote:

> Hi Craig,
>
> Kieren already answered, but I want to assure that you where not caught
> by I mistake I made on Monday: There is a commit that ought to be in its
> own branch for development that accidentally disabled overrides. So
> please do switch to the previous commit (Feb 1 "issue #19") if this is
> the case.
>
> I am sorry for any inconvenience for any user of the edition-engraver!
>
> I repaired the repository, so any users that did not pull between Monday
> 5. Mar 21h CET and 7. Mar 8:30h CET should not be affected by this mistake.
>
> Best
> Jan-Peter
>
>
>
> Am 06.03.2018 um 23:41 schrieb Craig Dabelstein:
> > Hi all,
> >
> > When trying to apply a tweak to a hairpin with the EE I get an
> > "unterminated crescendo" error. If I leave out the crescendo \< from the
> > EE (but include it in the content file which is where it thought it
> > should belong) it doesn't work at all. Is there a different way I should
> > be trying to do this?
> >
> > \editionMod global 57 2/4 wagner.trauermusik.fluteI.Voice -\tweak
> > minimum-length #5 \<
> >
> > Thanks in advance,
> >
> > Craig
> >
> >
> > --
> > *Craig Dabelstein*
> > Maxime's Music
> > craig.dabelst...@gmail.com 
> > /http://maximesmusic.com/
> >
> >
> > ___
> > 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
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user