Printing page numbers from a given page

2021-11-07 Thread Paolo Prete
Hello,

How can I start printing page numbers from page 3?

Thanks,
P


Re: Printing page numbers from a given page

2021-11-07 Thread Jean Abou Samra

Le 07/11/2021 à 14:23, Paolo Prete a écrit :

How can I start printing page numbers from page 3?


\paper {
  first-page-number = 3
}

Documentation at
http://lilypond.org/doc/v2.22/Documentation/notation/other-paper-variables.html#paper-variables-for-page-numbering

Best,
Jean



Timing translator difference between version 2.22 and above with 2.19.84

2021-11-07 Thread Karim Haddad
Hi,

I am experiencing trouble with timing translation of a big polymetric and 
polytempic score using latest stable and dev version of lilypond. This doesn't 
happen with version 2.19.84. I suspect some changing in handling breaks ??

here is the output:

%%
/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:3013:1: 
warning: mid-measure time signature without \partial

\time 5/4
Preprocessing graphical objects...
programming error: insane spring distance requested, ignoring it
continuing, cross fingers
programming error: insane spring min_distance requested, ignoring it
continuing, cross fingers
programming error: insane spring constant
continuing, cross fingers
Finding the ideal number of pages...
Fitting music on 9 or 10 pages...
Drawing systems...
/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:2869:5: 
programming error: bounds of this piece aren't breakable.
b'16
[

/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:2869:5: 
continuing, cross fingers
Converting to `test1.pdf'...
Success: compilation successfully completed

Compilation finished at Sun Nov  7 14:40:46
%%

Although the compilation doesn't fail, but i have an incomplete measure with 
recent versions where the 2.19.84 version render it ok

I am sorry not to post the .ly score since it  is far than an MWE. I tried 
isolating the problem, but this seems an accumulative calculation somewhere 
(?). Tried removing measures before and after, it happens when the score is 
complete.

I can post however a screenshot of the differecne betweene version rendering, 
but i don't think this is pertinent? if yes, i will do this.


Thanks for any insight on this matter.

Best to you all

-- 
Karim Haddad

Music Representations Team, IRCAM
Research and development manager.
email   : karim.had...@ircam.fr
webpage : http://karim.haddad.free.fr



Re: Timing translator difference between version 2.22 and above with 2.19.84

2021-11-07 Thread Jean Abou Samra

Le 07/11/2021 à 14:59, Karim Haddad a écrit :

Hi,

I am experiencing trouble with timing translation of a big polymetric and 
polytempic score using latest stable and dev version of lilypond. This doesn't 
happen with version 2.19.84. I suspect some changing in handling breaks ??

here is the output:

%%
/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:3013:1: 
warning: mid-measure time signature without \partial

\time 5/4
Preprocessing graphical objects...
programming error: insane spring distance requested, ignoring it
continuing, cross fingers
programming error: insane spring min_distance requested, ignoring it
continuing, cross fingers
programming error: insane spring constant
continuing, cross fingers
Finding the ideal number of pages...
Fitting music on 9 or 10 pages...
Drawing systems...
/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:2869:5: 
programming error: bounds of this piece aren't breakable.
b'16
 [
 
/home/karim/Work/quatuor_2/scores/quatuor2/Real_2nd/testings/1/test1.ly:2869:5: 
continuing, cross fingers
 Converting to `test1.pdf'...
 Success: compilation successfully completed

Compilation finished at Sun Nov  7 14:40:46
%%

Although the compilation doesn't fail, but i have an incomplete measure with 
recent versions where the 2.19.84 version render it ok

I am sorry not to post the .ly score since it  is far than an MWE. I tried 
isolating the problem, but this seems an accumulative calculation somewhere 
(?). Tried removing measures before and after, it happens when the score is 
complete.

I can post however a screenshot of the differecne betweene version rendering, 
but i don't think this is pertinent? if yes, i will do this.


Thanks for any insight on this matter.

Best to you all


Guessing without code is pretty hard.
While minimal examples are preferred, a
non-minimal example is still better than
nothing in case a minimal one cannot be
found. It gives something to work with.

Thanks,
Jean



Re: Timing translator difference between version 2.22 and above with 2.19.84

2021-11-07 Thread Kieren MacMillan
Hi all,

Just a “for more data” post: I’ve also noticed changes in breaking in recent 
versions — in particular, using the edition-engraver to inject

   \autoPageBreaksOff

appears to work as expected, but then injecting [later]

   \autoPageBreaksOn

appears not to work at all. I don’t remember this being a problem with 
≤v2.19.x, but have had no time to do any serious testing/confirmation. As with 
Karim, a MWE is hard to put together from my NMRWE (Non-Minimal Real-World 
Example); if I get a moment [before Karim’s issue is diagnosed/resolved], I’ll 
try to do some digging/minimizing…

Cheers,
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Re: Tweaking an ottava bracket after a break

2021-11-07 Thread Knute Snortum
On Sat, Nov 6, 2021 at 2:08 PM Kieren MacMillan
 wrote:
>
> p.s.
>
> > Does \afterBreak not work with OttavaBracket.padding?
>
> um… \alterBroken (as in the snippet).
> Sorry! — K
>
> > \relative {
> >  \alterBroken #'padding #'(1 7) Staff.OttavaBracket
> >  \ottava 1 c1 \break
> > c2 2
> > }

\alterBroken is exactly what I need, thank you!



Re: Printing page numbers from a given page

2021-11-07 Thread Paolo Prete
thanks!

On Sun, Nov 7, 2021 at 2:28 PM Jean Abou Samra  wrote:

> Le 07/11/2021 à 14:23, Paolo Prete a écrit :
> > How can I start printing page numbers from page 3?
>
> \paper {
>first-page-number = 3
> }
>
> Documentation at
>
> http://lilypond.org/doc/v2.22/Documentation/notation/other-paper-variables.html#paper-variables-for-page-numbering
>
> Best,
> Jean
>


search term

2021-11-07 Thread Mark Stephen Mrotek
Hello,

 

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?

 

Thank you for your kind attention.

 

Mark



Re: search term

2021-11-07 Thread Reuben Kagan
Hello Mark,
https://lilypond.org/doc/v2.23/Documentation/notation/expressive-marks-as-curves

Would this help?

Reuben Kagan

On Sun, Nov 7, 2021 at 6:10 PM Mark Stephen Mrotek 
wrote:

> Hello,
>
>
>
> A command/instruction exists to make double slurs between two chords.
>
> What is the search term that I should use?
>
>
>
> Thank you for your kind attention.
>
>
>
> Mark
>


Re: search term

2021-11-07 Thread Павел
Hey! I did not quite understand you, what exactly do you want. But try 
to see examples in the documentation, maybe there is what you are 
looking for: 
http://lilypond.org/doc/v2.22/Documentation/notation/expressive-marks-as-curves#slurs 



07.11.2021 19:08, Mark Stephen Mrotek пишет:


Hello,

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?

Thank you for your kind attention.

Mark


Re: search term

2021-11-07 Thread Lukas-Fabian Moser


Am 07.11.21 um 17:08 schrieb Mark Stephen Mrotek:


Hello,

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?


"Double slurs" probably is not that bad as a search term.

\version "2.22"

{
  \once \set doubleSlurs = ##t
  4( )
}

Lukas



Reduce the gap between time signature and the first note

2021-11-07 Thread Paolo Prete
Hello,

I'm trying to have a minimum space between a TimeSignature and the first
note after it (and, consequently, all the following notes). I tried:

\once\override Score.TimeSignature.space-alist =
#'((first-note fixed-space . 0))

...but there's still a gap which I can't eliminate. How can I fix it?

Thanks
P

%
<<
{

c'1

\time 3/4

\once\override Score.TimeSignature.space-alist =
#'((first-note fixed-space . 0))

cis'2.\break
s

}
>>
%


RE: search term

2021-11-07 Thread Mark Stephen Mrotek
Pavel,

 

You understood exactly!

Thank you.

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of ?
Sent: Sunday, November 7, 2021 8:21 AM
To: lilypond-user@gnu.org
Subject: Re: search term

 

Hey! I did not quite understand you, what exactly do you want. But try to see 
examples in the documentation, maybe there is what you are looking for: 
http://lilypond.org/doc/v2.22/Documentation/notation/expressive-marks-as-curves#slurs
 

07.11.2021 19:08, Mark Stephen Mrotek пишет:

Hello,

 

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?

 

Thank you for your kind attention.

 

Mark



RE: search term

2021-11-07 Thread Mark Stephen Mrotek
Reuben,

 

Exactly!

Thank you.

 

Masrk

 

From: Reuben Kagan [mailto:reuben.ka...@gmail.com] 
Sent: Sunday, November 7, 2021 8:21 AM
To: Mark Stephen Mrotek 
Cc: lilypond-user@gnu.org
Subject: Re: search term

 

Hello Mark,
https://lilypond.org/doc/v2.23/Documentation/notation/expressive-marks-as-curves

Would this help?

 

Reuben Kagan

 

On Sun, Nov 7, 2021 at 6:10 PM Mark Stephen Mrotek mailto:carsonm...@ca.rr.com> > wrote:

Hello,

 

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?

 

Thank you for your kind attention.

 

Mark



RE: search term

2021-11-07 Thread Mark Stephen Mrotek
Lukas-Fabian,

 

A new one for me!

Thank you.

 

Mark

 

From: Lukas-Fabian Moser [mailto:lukasfabianmo...@googlemail.com] On Behalf
Of Lukas-Fabian Moser
Sent: Sunday, November 7, 2021 9:47 AM
To: Mark Stephen Mrotek ; lilypond-user@gnu.org
Subject: Re: search term

 

 

Am 07.11.21 um 17:08 schrieb Mark Stephen Mrotek:

Hello,

 

A command/instruction exists to make double slurs between two chords.

What is the search term that I should use?

"Double slurs" probably is not that bad as a search term.

\version "2.22"

{
  \once \set doubleSlurs = ##t
  4( )
}

Lukas



Re: search term

2021-11-07 Thread David Kastrup
Lukas-Fabian Moser  writes:

> Am 07.11.21 um 17:08 schrieb Mark Stephen Mrotek:
>>
>> Hello,
>>
>> A command/instruction exists to make double slurs between two chords.
>>
>> What is the search term that I should use?
>>
> "Double slurs" probably is not that bad as a search term.
>
> \version "2.22"
>
> {
>   \once \set doubleSlurs = ##t
>   4( )
> }

Somewhat more verbose than just writing

{
  4^(_( )
}

-- 
David Kastrup



Stretching staff 100% horizontally

2021-11-07 Thread Ivanov Dmitry

I attached the minimal working example. The second variant is not stretched 
horizontally as
the first two staves. Is it possible to stretch it so it occupied 100% of page 
width?
\version "2.23.2"
\language "english"
\include "zlatye-gory-bass.ly"
\paper {
  right-margin = 1\cm
  left-margin = 2\cm
  indent = 0
  print-all-headers = ##t
}
\header {
  tagline = ""
}
\score {
  \header{
title = "Basic theme"
  }
  \new PianoStaff <<
\new Staff  \relative c'''{
  \time 3/4
  r2 g4 | g2 d4 | f e d | c2 e4 | g f e | d2 e4 | f e d | c2 e4 | c d e |
  f2 f4 | f g f | e2 f4 | g f e | d2 e4 | f e d | c2 e4 | c d e |
}
  >>
}
\score {
  \header {
subtitle = "Variant 2"
  }
  \new PianoStaff <<
  \new Staff  \relative c''{
  \time 3/4
  2 4 || 2 4 || 
2 4 || c2 e4 | c2 r4 |
}
  >>
}


signature.asc
Description: PGP signature


Re: Stretching staff 100% horizontally

2021-11-07 Thread Kieren MacMillan
Hi Ivanov,

> I attached the minimal working example.

That’s definitely neither minimal nor working (because of the required \include 
file)…  ;)

> Is it possible to stretch it so it occupied 100% of page width?

\paper {
  ragged-right = ##f
  …

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Re: Stretching staff 100% horizontally

2021-11-07 Thread Frank Steinmetzger
Am Sun, Nov 07, 2021 at 10:40:06PM +0300 schrieb Ivanov Dmitry:

> I attached the minimal working example. The second variant is not stretched 
> horizontally as
> the first two staves. Is it possible to stretch it so it occupied 100% of 
> page width?

Add ragged-last = ##f to your \paper block.

-- 
Grüße | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

“If you’re hotter than me, does it make me cooler than you?” – Philosoraptor


signature.asc
Description: PGP signature


RE: search term

2021-11-07 Thread Mark Stephen Mrotek
David,

Even cleaner!
Thank you.

Mark

-Original Message-
From: David Kastrup [mailto:d...@gnu.org] 
Sent: Sunday, November 7, 2021 11:22 AM
To: Lukas-Fabian Moser 
Cc: Mark Stephen Mrotek ; lilypond-user@gnu.org
Subject: Re: search term

Lukas-Fabian Moser  writes:

> Am 07.11.21 um 17:08 schrieb Mark Stephen Mrotek:
>>
>> Hello,
>>
>> A command/instruction exists to make double slurs between two chords.
>>
>> What is the search term that I should use?
>>
> "Double slurs" probably is not that bad as a search term.
>
> \version "2.22"
>
> {
>   \once \set doubleSlurs = ##t
>   4( )
> }

Somewhat more verbose than just writing

{
  4^(_( )
}

-- 
David Kastrup




Need help to familiarize with Lilypond's internals

2021-11-07 Thread CieMaKat
Hello,

I'm a software engineer and I am working on my personal side project
related to rendering sheet music. I didn't want to reinvent the wheel so I
decided to check Lilypond source code (I find Lilypond the best music
typesetter software I know) to understand basic concepts which could help
me with my project. However, I have to say I'm struggling to understand how
Lilypond works internally. Therefore I'm asking for help.

I browsed through the source code on Github, yet I'm unable to find out
how, i.e. slur keypoints are calculated. The Essay on automated music
engraving

explains that actually three slurs are "generated" and one with the highest
point rating is selected. I can't find either three-fold slur generation
nor the rating algorithm.

Is there any valuable documentation for beginners? I am aware of the
Contributor
Guide , yet
it gives little to none introduction to code itself.
Is there anyone who knows the Lilypond internals and would agree to have a
call (Skype/Teams/Discord) to introduce me to the code? I think explaining
how the slur is generated (from parsing the code until final control points
are calculated) would be a great kickoff and would allow me to continue
deep-diving in the Lilypond internals on my own.

Best,
Mateusz


Re: Need help to familiarize with Lilypond's internals

2021-11-07 Thread Jean Abou Samra

Le 07/11/2021 à 21:52, CieMaKat a écrit :

Hello,

I'm a software engineer and I am working on my personal side project 
related to rendering sheet music. I didn't want to reinvent the wheel 
so I decided to check Lilypond source code (I find Lilypond the best 
music typesetter software I know) to understand basic concepts which 
could help me with my project. However, I have to say I'm struggling 
to understand how Lilypond works internally. Therefore I'm asking for 
help.


I browsed through the source code on Github, yet I'm unable to find 
out how, i.e. slur keypoints are calculated. The Essay on automated 
music engraving 
 
explains that actually three slurs are "generated" and one with the 
highest point rating is selected. I can't find either three-fold slur 
generation nor the rating algorithm.


Is there any valuable documentation for beginners? I am aware of the 
Contributor Guide 
, yet 
it gives little to none introduction to code itself.


Do these help?

https://lilypond.org/doc/v2.22/Documentation/extending/index.html
https://extending-lilypond.readthedocs.io/en/latest/

(I am the author of the latter, so you can write
me if you find anything confusing or wish an
improvement.)


Is there anyone who knows the Lilypond internals and would agree to 
have a call (Skype/Teams/Discord) to introduce me to the code? I think 
explaining how the slur is generated (from parsing the code until 
final control points are calculated) would be a great kickoff and 
would allow me to continue deep-diving in the Lilypond internals on my 
own.


I don't know about the slur determination yet, so
I may not be the best person for that. At any rate,
if you are specifically interested in that algorithm,
it's in lily/slur-scoring.cc.

I personally have not-so-high availability at
the moment, but we could arrange something if
you would be helped by more than the two links
above. Saying this, I really don't want to
prevent others from chiming it.

Best,
Jean




Re: Stretching staff 100% horizontally

2021-11-07 Thread Ivanov Dmitry
> That’s definitely neither minimal nor working (because of the required 
> \include file)…  ;)

Oh, sorry, that file was not needed for compilation.

> \paper {
>  ragged-right = ##f

It worked, thank you.

On 11/7/21, Kieren MacMillan  wrote:
> Hi Ivanov,
>
>> I attached the minimal working example.
>
> That’s definitely neither minimal nor working (because of the required
> \include file)…  ;)
>
>> Is it possible to stretch it so it occupied 100% of page width?
>
> \paper {
>   ragged-right = ##f
>   …
>
> Hope that helps!
> Kieren.
> 
>
> Kieren MacMillan, composer (he/him/his)
> ‣ website: www.kierenmacmillan.info
> ‣ email: kie...@kierenmacmillan.info
>
>