Re: MIDI dynamics parsing error

2016-10-09 Thread Dominicus
I'm dealing with several of these MIDI errors during compilation of a long
piece.
"programming error: Impossible or ambiguous (de)crescendo in MIDI."

I tried to get rid of these by placing a starting volume, but alas, it's not
that simple.  I'm not the original typesetter for the piece, and I have 250
bars to inspect and plenty of polyphonic sections.

I'm compiling with v2.18.2.  Do later LilyPond versions reveal the offending
line# when raising this error?
If not, it would be a welcome enhancement to specify the offending bar along
with this error.

I've spent hours searching for a hairpin in the haystack (pun intended)




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/MIDI-dynamics-parsing-error-tp162479p195255.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Horizontal spacing - How to prevent compressing while allowing stretching?

2016-10-09 Thread David Wright
On Sun 09 Oct 2016 at 16:43:49 (-0700), Andrew Bernard wrote:
> Hi Karol,
> 
> By ‘natural’ are you referring to the spacing displayed when ragged-right
> is set to true, or something else?
> 
> As far as I know there is no parameter to enable what you want - stretch
> but don’t compress. One of the major advantages and features of lilypond is
> it’s very smart and subtle spacing algorithms, containing a lot of deep
> heuristics other programs lack.
> 
> For me, although it may be tedious and is manual rather than automatic, I
> simply put a \break at the point you want a break, and this allows you to
> adjust spacing, up to the granularity of a bar.

or less than a bar if you use   \bar "" \break   which is a
construction much used in hymnbooks to give priority to the lyrics
over the music, especially when each line of music starts with an
anacrusis (pickup).

> You may also consider turning on proportional spacing. For my new
> complexity school scores I have to say that it just does not work very well
> at all (the radily changing rhythmic structures confuse it), but for more
> common era period music I think people have success with it.

Yes. The first time I used it was to set De Profundis (Mozart) which
is full of  4. 8  and  8. 16  rhythms. This completely cured all the
frequent rhythmic mistakes being made by the choir when previously
they sang from conventional copies.

> There are also ‘new spacing section’ commands you may want to look up. I’m
> no expert on that - others here will know more!
> 
> There’s also some code around to set a fixed number of bars per line, if
> this is of any use for your scores. It goes against the grain a bit but it
> can be made to work and there are uses for that.
> 
> Andrew
> 
> 
> 
> On 9 October 2016 at 9:35:56 pm, Karol Majewski wrote:
> 
> When ragged-right is set to false (default) LilyPond either stretches a
> line (system) or compresses it. I'd like to modify this behaviour so that
> LilyPond only stretches a line, but never compresses it. I don't want my
> spacing to be tighter than the natural one.
> 
> Is this adjustable?

Cheers,
David.

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


Re: Horizontal spacing - How to prevent compressing while allowing stretching?

2016-10-09 Thread tisimst
Karol,

On Sunday, October 9, 2016, Andrew Bernard [via Lilypond] <
ml-node+s1069038n195252...@n5.nabble.com> wrote:

> Hi Karol,
>
> By ‘natural’ are you referring to the spacing displayed when ragged-right
> is set to true, or something else?
>
> As far as I know there is no parameter to enable what you want - stretch
> but don’t compress. One of the major advantages and features of lilypond is
> it’s very smart and subtle spacing algorithms, containing a lot of deep
> heuristics other programs lack.
>
> For me, although it may be tedious and is manual rather than automatic, I
> simply put a \break at the point you want a break, and this allows you to
> adjust spacing, up to the granularity of a bar.
>
> You may also consider turning on proportional spacing. For my new
> complexity school scores I have to say that it just does not work very well
> at all (the radily changing rhythmic structures confuse it), but for more
> common era period music I think people have success with it.
>
> There are also ‘new spacing section’ commands you may want to look up. I’m
> no expert on that - others here will know more!
>
> There’s also some code around to set a fixed number of bars per line, if
> this is of any use for your scores. It goes against the grain a bit but it
> can be made to work and there are uses for that.
>
> Andrew
>

I would try something like this if it is that important that you don't get
any compressed measures. First compile with all the ragged-... = ##t so
that you can see where the natural break points are located. Then, follow
Andrew's advice by inserting the manual \break after the measures at the
end of each system.

Not sure if there's a better way than that. Not sure if it even works, but
could be worth a try.

Good luck,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Horizontal-spacing-How-to-prevent-compressing-while-allowing-stretching-tp195240p195253.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal spacing - How to prevent compressing while allowing stretching?

2016-10-09 Thread Andrew Bernard
Hi Karol,

By ‘natural’ are you referring to the spacing displayed when ragged-right
is set to true, or something else?

As far as I know there is no parameter to enable what you want - stretch
but don’t compress. One of the major advantages and features of lilypond is
it’s very smart and subtle spacing algorithms, containing a lot of deep
heuristics other programs lack.

For me, although it may be tedious and is manual rather than automatic, I
simply put a \break at the point you want a break, and this allows you to
adjust spacing, up to the granularity of a bar.

You may also consider turning on proportional spacing. For my new
complexity school scores I have to say that it just does not work very well
at all (the radily changing rhythmic structures confuse it), but for more
common era period music I think people have success with it.

There are also ‘new spacing section’ commands you may want to look up. I’m
no expert on that - others here will know more!

There’s also some code around to set a fixed number of bars per line, if
this is of any use for your scores. It goes against the grain a bit but it
can be made to work and there are uses for that.

Andrew



On 9 October 2016 at 9:35:56 pm, Karol Majewski wrote:

When ragged-right is set to false (default) LilyPond either stretches a
line (system) or compresses it. I'd like to modify this behaviour so that
LilyPond only stretches a line, but never compresses it. I don't want my
spacing to be tighter than the natural one.

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


RE: issue on legato with repeat

2016-10-09 Thread Mark Stephen Mrotek
Guillaume,

 

^\repeatTie

 

Mark

 

From: Guillaume Audirac [mailto:guillaume.audi...@gmail.com] 
Sent: Sunday, October 09, 2016 12:51 PM
To: Mark Stephen Mrotek 
Cc: lilypond-user@gnu.org
Subject: Re: issue on legato with repeat

 

Hi,

Thanks a lot. It is almost perfect ;-)

Is it possible to have the legato on the top instead? My case is closer to this 
example:

\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
c''1(
  }
  \alternative {
  { d''1) }
  { a'1\repeatTie } % the legato is at the bottom, not on the top
  }
}



Guillaume

 

2016-10-09 20:40 GMT+02:00 Mark Stephen Mrotek  >:

Guillaume,

 

Try the following with the addition in red.

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark 
 =ca.rr@gnu.org 
 ] On Behalf Of Guillaume Audirac
Sent: Sunday, October 09, 2016 11:16 AM
To: lilypond-user@gnu.org  
Subject: issue on legato with repeat

 

Dear users of the list,

I need to display a legato in a second repeat but cannot succeed. A simple 
example here:

\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
g'1(
  }
  \alternative {
  { a'1) }
  { b'1\repeatTie } % the legato is not visible in the repetition
  }
}

Is there something wrong in my code ?

Thanks for your help.

Guillaume

 

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


Re: issue on legato with repeat

2016-10-09 Thread Noeck
> Is it possible to have the legato on the top instead?

By adding a ^ before \repeatTie just like with other objects, too:

a'1^\repeatTie

Cheers,
Joram

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


Re: issue on legato with repeat

2016-10-09 Thread Guillaume Audirac
Hi,

Thanks a lot. It is almost perfect ;-)
Is it possible to have the legato on the top instead? My case is closer to
this example:

\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
c''1(
  }
  \alternative {
  { d''1) }
  { a'1\repeatTie } % the legato is at the bottom, not on the top
  }
}

Guillaume

2016-10-09 20:40 GMT+02:00 Mark Stephen Mrotek :

> Guillaume,
>
>
>
> Try the following with the addition in red.
>
>
>
> *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark=
> ca.rr@gnu.org] *On Behalf Of *Guillaume Audirac
> *Sent:* Sunday, October 09, 2016 11:16 AM
> *To:* lilypond-user@gnu.org
> *Subject:* issue on legato with repeat
>
>
>
> Dear users of the list,
>
> I need to display a legato in a second repeat but cannot succeed. A simple
> example here:
>
> \version "2.18.2"
>
> {
>   \clef "treble"
>   \time 4/4
>   R1
>   \repeat volta 2 {
> g'1(
>   }
>   \alternative {
>   { a'1) }
>   { b'1\repeatTie } % the legato is not visible in the repetition
>   }
> }
>
> Is there something wrong in my code ?
>
> Thanks for your help.
>
> Guillaume
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: issue on legato with repeat

2016-10-09 Thread Mark Stephen Mrotek
Guillaume,

 

Try the following with the addition in red.

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Guillaume Audirac
Sent: Sunday, October 09, 2016 11:16 AM
To: lilypond-user@gnu.org
Subject: issue on legato with repeat

 

Dear users of the list,

I need to display a legato in a second repeat but cannot succeed. A simple 
example here:

\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
g'1(
  }
  \alternative {
  { a'1) }
  { b'1\repeatTie } % the legato is not visible in the repetition
  }
}

Is there something wrong in my code ?

Thanks for your help.

Guillaume

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


Re: Why warning: cannot end volta spanner?

2016-10-09 Thread Simon Albrecht

On 09.10.2016 19:08, Peter Toye wrote:

Re: Why warning: cannot end volta spanner? David,

This is what I'd like. But it compiles with the warning message. My 
original questions was: why and can I get what I want without the warning?


If everything is fine except for the warning, you can use
#(ly:expect-warning "cannot end volta")
It goes on top-level, once for every instance of the warning. If a 
future compilation issues fewer warnings than expected, there will be a 
warning about that.


Best, Simon



\version "2.18.2"

\language "english"

\score {
 \new Staff {

   \time 4/4
   \clef treble

   \relative c''
   {
 c1
 \repeat volta 2 {
   c d e f
 }
 \alternative {
   {
 g f e d
   }
   {
 \set Score.voltaSpannerDuration = #(ly:make-moment 4/4)
 \repeat unfold 2 {
   \repeat unfold 12  {g8 a}
   g f e d c d e f
 }
   }
 }
 g1 f e d c
   }
 }
}

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 

-
Friday, October 7, 2016, 7:03:43 PM, you wrote:

*Wright> On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote:
>> Not exactly! I've modded my example and am getting interesting 
results. In my original music (far too long to show here) without the 
change to voltaSpannerDuration the 2nd time volta spanner stretches 
right over the repeat unfold (over several lines) without any error 
message.


>> My original had two nested repeat unfolds (I didn't put this into 
my snippet an I didn't think it would be relevant), so I've replicated 
the correct structure below. With the change to voltaSpannerDuration I 
get the desired effect but a warning message. Without it there's no 
error message but the 2nd time volta spanner spans 5 bars - to the end 
of the line. Which is different from what happens in my original 
music. I can try to provide a reduced version which displays the 
issue, but it'll probably take some time to work it out.


Wright> It might help to tell us exactly what you want to see printed,
Wright> and how this differs from what has been posted here.
Wright> Otherwise we're all left guessing.

Wright> Cheers,
Wright> David.


___
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


issue on legato with repeat

2016-10-09 Thread Guillaume Audirac
Dear users of the list,

I need to display a legato in a second repeat but cannot succeed. A simple
example here:

\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
g'1(
  }
  \alternative {
  { a'1) }
  { b'1) } % the legato is not visible in the repetition
  }
}

Is there something wrong in my code ?

Thanks for your help.
Guillaume
\version "2.18.2"

{
  \clef "treble"
  \time 4/4
  R1
  \repeat volta 2 {
g'1(
  }
  \alternative {
  { a'1) }
  { b'1) } % the legato is not visible in the repetition
  }
}

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


Re: Why warning: cannot end volta spanner?

2016-10-09 Thread Peter Toye
David,

This is what I'd like. But it compiles with the warning message. My original 
questions was: why and can I get what I want without the warning?

\version "2.18.2"

\language "english"

\score {
  \new Staff {

\time 4/4
\clef treble

\relative c''
{
  c1
  \repeat volta 2 {
c d e f
  }
  \alternative {
{
  g f e d
}
{
  \set Score.voltaSpannerDuration = #(ly:make-moment 4/4)
  \repeat unfold 2 {
\repeat unfold 12  {g8 a} 
g f e d c d e f
  }
}
  }
  g1 f e d c
}
  }
}

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Friday, October 7, 2016, 7:03:43 PM, you wrote:

Wright> On Fri 07 Oct 2016 at 18:44:28 (+0100), Peter Toye wrote:
>> Not exactly! I've modded my example and am getting interesting results. In 
>> my original music (far too long to show here) without the change to 
>> voltaSpannerDuration the 2nd time volta spanner stretches right over the 
>> repeat unfold (over several lines) without any error message. 

>> My original had two nested repeat unfolds (I didn't put this into my snippet 
>> an I didn't think it would be relevant), so I've replicated the correct 
>> structure below. With the change to voltaSpannerDuration I get the desired 
>> effect but a warning message. Without it there's no error message but the 
>> 2nd time volta spanner spans 5 bars - to the end of the line. Which is 
>> different from what happens in my original music. I can try to provide a 
>> reduced version which displays the issue, but it'll probably take some time 
>> to work it out.

Wright> It might help to tell us exactly what you want to see printed,
Wright> and how this differs from what has been posted here.
Wright> Otherwise we're all left guessing.

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


Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Thomas Morley
2016-10-09 13:23 GMT+02:00 Urs Liska :
>
>
> Am 09.10.2016 um 12:07 schrieb Thomas Morley:
>
> 2016-09-18 15:38 GMT+02:00 Simon Albrecht :
>
> On 18.09.2016 15:15, Kieren MacMillan wrote:
>
> And finally with a better user interface
>
> Under what circumstances would you NOT want the end of one curve to match
> precisely the beginning of the next one?
> If “none”, then I would say an even better user interface would not
> require typing that set of coordinates twice.
>
> I thought about that too – it also makes the data structure less complicated
> if it’s a list of seven pairs. I added the new version to the LSR
> , awaiting approval.
>
> Best, Simon
>
> Hi Simon,
>
> I'm not sure what to do with this snippet.
>
> I had the impression Urs started to implement it in the source. Is
> that true? Urs?
> Otoh, the LSR runs 2.18.0. With this version the lsr-snippet is the
> only available possibility to do slurs this way, warranting it's
> approval, I'd say.
>
> Opinions?
>
>
> I've started an implementation in https://github.com/openlilylib/snippets,
> but with the intention of proposing it for LilyPond proper. My approach
> doesn't require the redundant definition of control points (both doubling
> the start/end and ensuring the two opposing control points are in opposite
> directions), but actually I could even imagine integrating it into the
> \shape function, in a way that allows you to optionally add inflection
> points when shaping a slur.
>
> If it makes a difference (and I can imagine it does) my code will only run
> with latest LilyPond and would unreasonably complicated to backport (due to
> the really useful angle/vector ly:XXX functions that are available now).
>
> Urs
>
>
> Cheers,
>   Harm
>
>

Simon, Urs,

thanks for your replies.
I added a remark/link and approved it as
"Slur with two turning points"
http://lsr.di.unimi.it/LSR/Item?id=1045

Thanks,
  Harm

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


Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Urs Liska


Am 09.10.2016 um 12:07 schrieb Thomas Morley:
> 2016-09-18 15:38 GMT+02:00 Simon Albrecht :
>> On 18.09.2016 15:15, Kieren MacMillan wrote:
 And finally with a better user interface
>>> Under what circumstances would you NOT want the end of one curve to match
>>> precisely the beginning of the next one?
>>> If “none”, then I would say an even better user interface would not
>>> require typing that set of coordinates twice.
>> I thought about that too – it also makes the data structure less complicated
>> if it’s a list of seven pairs. I added the new version to the LSR
>> , awaiting approval.
>>
>> Best, Simon
> Hi Simon,
>
> I'm not sure what to do with this snippet.
>
> I had the impression Urs started to implement it in the source. Is
> that true? Urs?
> Otoh, the LSR runs 2.18.0. With this version the lsr-snippet is the
> only available possibility to do slurs this way, warranting it's
> approval, I'd say.
>
> Opinions?

I've started an implementation in
https://github.com/openlilylib/snippets, but with the intention of
proposing it for LilyPond proper. My approach doesn't require the
redundant definition of control points (both doubling the start/end and
ensuring the two opposing control points are in opposite directions),
but actually I could even imagine integrating it into the \shape
function, in a way that allows you to optionally add inflection points
when shaping a slur.

If it makes a difference (and I can imagine it does) my code will only
run with latest LilyPond and would unreasonably complicated to backport
(due to the really useful angle/vector ly:XXX functions that are
available now).

Urs

>
> Cheers,
>   Harm

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


Horizontal spacing - How to prevent compressing while allowing stretching?

2016-10-09 Thread Karol Majewski
Hi, I have question related to horizontal spacing.

When ragged-right is set to false (default) LilyPond either stretches a line 
(system) or compresses it. I'd like to modify this behaviour so that LilyPond 
only stretches a line, but never compresses it. I don't want my spacing to be 
tighter than the natural one.

Is this adjustable?

Karol



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


Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Simon Albrecht

On 09.10.2016 12:07, Thomas Morley wrote:

2016-09-18 15:38 GMT+02:00 Simon Albrecht :

On 18.09.2016 15:15, Kieren MacMillan wrote:

And finally with a better user interface

Under what circumstances would you NOT want the end of one curve to match
precisely the beginning of the next one?
If “none”, then I would say an even better user interface would not
require typing that set of coordinates twice.

I thought about that too – it also makes the data structure less complicated
if it’s a list of seven pairs. I added the new version to the LSR
, awaiting approval.

Best, Simon

Hi Simon,

I'm not sure what to do with this snippet.

I had the impression Urs started to implement it in the source. Is
that true? Urs?
Otoh, the LSR runs 2.18.0. With this version the lsr-snippet is the
only available possibility to do slurs this way, warranting it's
approval, I'd say.

Opinions?


In the end, it’s a UI design question, and a question on the 
relationship between LSR and openlilylib. Urs’ solution is much more 
sophisticated, of course, and its user interface is somewhat untypical 
in comparison to most LSR snippets.
I’d suggest to leave the LSR version as is (and approve it) and add a 
comment like


%% For a more refined solution to the problem, see .

Best, Simon

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


Re: What to do wanting a 4th order Bézier?

2016-10-09 Thread Thomas Morley
2016-09-18 15:38 GMT+02:00 Simon Albrecht :
> On 18.09.2016 15:15, Kieren MacMillan wrote:
>>>
>>> And finally with a better user interface
>>
>> Under what circumstances would you NOT want the end of one curve to match
>> precisely the beginning of the next one?
>> If “none”, then I would say an even better user interface would not
>> require typing that set of coordinates twice.
>
>
> I thought about that too – it also makes the data structure less complicated
> if it’s a list of seven pairs. I added the new version to the LSR
> , awaiting approval.
>
> Best, Simon

Hi Simon,

I'm not sure what to do with this snippet.

I had the impression Urs started to implement it in the source. Is
that true? Urs?
Otoh, the LSR runs 2.18.0. With this version the lsr-snippet is the
only available possibility to do slurs this way, warranting it's
approval, I'd say.

Opinions?


Cheers,
  Harm

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