Re: pitch-class sets in lilypond

2022-09-20 Thread Stefan Thomas
Dear community,
I really didn't expect so many replies to my last post.
That is why I have to apoligize not have beeing clear in my words.
As I wrote, I'm writing the module in python, I'm not familiar with scheme,
I'm a hobby-programmer.
When I wrotei, I'm planning to integrate it in lilypond, I should better
have writen in Frescobaldi, which can deal with python scripts.
Sorry, but I guess direct integration in Lilypond would be to heavy for me.
Best,
Stefan

Am Mi., 21. Sept. 2022 um 01:49 Uhr schrieb Kieren MacMillan <
kie...@kierenmacmillan.info>:

> Hi all!
>
> The timing, of course, couldn't be worse…  ;)  There's a workshop/reading
> of my newest [Lilypond-engraved, of course!] musical on Oct 15, and my
> co-writer and I *just* found out (as the result of a session with our
> brilliant dramaturge/director) that there are a whole pant-load of
> revisions to be done.
>
> That being said… I've done a fair bit of work around this, some alone and
> some in collaboration with Urs Liska (who isn't able to continue that
> work), and I would *love* to be involved in any “committee” work going on
> with regard to helping Lilypond enter the 20th Century. ;)
>
> Please keep me in the loop!
> Kieren.
>
> > On Sep 20, 2022, at 10:27 AM, Lukas-Fabian Moser  wrote:
> > Hi Stefan,
> > Am 20.09.22 um 13:00 schrieb Stefan Thomas:
> >> Dear community,
> >> sorry, it's a bit an off topic
>


Re: Alphabetised table of contents?

2022-09-20 Thread Jean Abou Samra

Le 21/09/2022 à 07:09, Werner LEMBERG a écrit :

[*] Except Jean has time and interest to produce a solution like pulling
 a rabbit out of a hat :-)



I do have a rabbit to pull out, because I actually already posted a
snippet like this on the lilypond-user-fr list. See

https://lists.gnu.org/archive/html/lilypond-user-fr/2021-01/msg00041.html

This user had needs that went beyond just sorting the TOC (replacing
page number with piece numbers), here is a simpler solution if sorting
is all you need:

\version "2.22.2"

%% Copied from LilyPond's definition and modified
#(define-markup-list-command (ordered-table-of-contents layout props) ()
  #:properties ((baseline-skip))
  (let* ((titleMarkup (ly:output-def-lookup layout 'tocTitleMarkup))
 (indentMarkup (ly:output-def-lookup layout 'tocIndentMarkup))
 (toplevelFormatter (ly:output-def-lookup layout 'tocFormatMarkup))
 (toc-alist (toc-items))
 (sorted-toc-alist
  (sort toc-alist
    ;; Could use comparator-from-key in 2.23
    (lambda (item1 item2)
  (let ((mkup1 (assoc-get 'toc-markup (cdr item1)))
    (mkup2 (assoc-get 'toc-markup (cdr item2
 (stringstring mkup1)
 (markup->string mkup2)))
    (ly:output-def-set-variable! layout 'label-alist-table
 (append (ly:output-def-lookup layout 
'label-alist-table)

 toc-alist))
    (cons (interpret-markup layout props titleMarkup)
  (space-lines baseline-skip
   (map (lambda (toc-item)
  (let* ((label (car toc-item))
 (alist (cdr toc-item))
 (toc-markup (assoc-get 'toc-markup 
alist))

 (text (assoc-get 'text alist))
 (level (assoc-get 'level alist)))
    (interpret-markup
 layout
 (cons (list
    (cons 'toc:page
  (markup #:with-link label
  #:page-ref label 
"XXX" "?"))
    (cons 'toc:text (markup 
#:with-link label text))

    (cons 'toc:label label)
    (cons 'toc:level level)
    (cons 'toc:toplevel-formatter 
toplevelFormatter)

    (cons 'toc:indent
  (make-line-markup
   (make-list level 
indentMarkup

   props)
 (ly:output-def-lookup layout 
toc-markup

    sorted-toc-alist)

\markuplist \ordered-table-of-contents

\tocItem \markup "A"
{ c' }
\tocItem \markup "C"
{ c' }
\tocItem \markup "E"
{ c' }
\tocItem \markup "F"
{ c' }
\tocItem \markup "H"
{ c' }
\tocItem \markup "G"
{ c' }
\tocItem \markup "B"
{ c' }
\tocItem \markup "D"
{ c' }




Best,
Jean




Re: Alphabetised table of contents?

2022-09-20 Thread Werner LEMBERG


> I'm just wondering if it's possible in Lilypond to create a table of
> contents that is alphabetical by item, rather than by page number
> order?

IMHO this is not a table of context but rather an index that is
positioned near the beginning.

> I'm trying to create an alphabetical index by hymn tune or first
> line that will go in the back of a book.

I suggest to not do this in directly in LilyPond.[*] With
`lilypond-book` in LaTeX mode, for example, you might read this link,
which covers *exactly* your use-case:

  https://latex.org/forum/viewtopic.php?t=4169


Werner


[*] Except Jean has time and interest to produce a solution like pulling
a rabbit out of a hat :-)



Alphabetised table of contents?

2022-09-20 Thread Brent Annable
Hi all,

I'm just wondering if it's possible in Lilypond to create a table of
contents that is alphabetical by item, rather than by page number order?
I'm trying to create an alphabetical index by hymn tune or first line that
will go in the back of a book.

Many thanks for any help,

Brent.


Re: Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Kenneth Wolcott
Oh, doh!

I have to redefine my function to handle the chords!


On Tue, Sep 20, 2022 at 7:50 PM Kenneth Wolcott
 wrote:
>
> Oh, it not only does not like "q"; it silently drops chords.  Oh well,
> it still is cool even though not completely useful for my use case.
>
> Thanks,
> Ken
>
> On Tue, Sep 20, 2022 at 7:43 PM Kenneth Wolcott
>  wrote:
> >
> > No, it does not support the "q' functionality, but it is still a very
> > cool function :-)
> >
> > Thanks,
> > Ken
> >
> > On Tue, Sep 20, 2022 at 7:36 PM Kenneth Wolcott
> >  wrote:
> > >
> > > HI Aaron;
> > >
> > >   Thank you very much!  Works great now.
> > >
> > >   A followup question: I don't think that this function supports the
> > > "q" substitution for chord repetition, does it?
> > >
> > >   I guess I'll find out :-)
> > >
> > > Thanks,
> > > Ken
> > >
> > > On Tue, Sep 20, 2022 at 6:15 PM Aaron Hill  
> > > wrote:
> > > >
> > > > On 2022-09-20 4:27 pm, Kenneth Wolcott wrote:
> > > > > Hi;
> > > > >
> > > > > Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme
> > > > > errors.
> > > > >
> > > > > https://lsr.di.unimi.it/LSR/Search?q=music+box
> > > > >
> > > > > See attachments. I did not include my generated pdf file because it
> > > > > pertains to the input file prior to trying to implement the music box.
> > > > >
> > > > > Thanks,
> > > > > Ken Wolcott
> > > > >
> > > > > ~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
> > > > > GNU LilyPond 2.22.2 (running Guile 2.2)
> > > > > Processing `O_Holy_Night.ly'
> > > > > Parsing...Backtrace:
> > > > > [...]
> > > > > ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: 
> > > > > -14
> > > >
> > > > Review the documentation for LSR 346.  The transformation pattern must
> > > > use notes starting from middle C.  Your pattern has notes in a much
> > > > lower octave, which results in a negative index.  So, you would want to
> > > > say something like this:
> > > >
> > > > 
> > > > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f g
> > > > a) }
> > > > 
> > > >
> > > > However, you can do this more efficiently, removing the redundant notes:
> > > >
> > > > 
> > > > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f d
> > > > e) } % 1 2 3 4 2 3
> > > > % ...
> > > > | \make_bass_pattern { g, g d b } \make_bass_pattern { b, g d b }
> > > > | \make_bass_pattern { b, g d b } \make_bass_pattern { b, g d b }
> > > > | \make_bass_pattern { b, g d b } \make_bass_pattern { c g e c' }
> > > > % ...
> > > > 
> > > >
> > > >
> > > > -- Aaron Hill



Re: Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Kenneth Wolcott
Oh, it not only does not like "q"; it silently drops chords.  Oh well,
it still is cool even though not completely useful for my use case.

Thanks,
Ken

On Tue, Sep 20, 2022 at 7:43 PM Kenneth Wolcott
 wrote:
>
> No, it does not support the "q' functionality, but it is still a very
> cool function :-)
>
> Thanks,
> Ken
>
> On Tue, Sep 20, 2022 at 7:36 PM Kenneth Wolcott
>  wrote:
> >
> > HI Aaron;
> >
> >   Thank you very much!  Works great now.
> >
> >   A followup question: I don't think that this function supports the
> > "q" substitution for chord repetition, does it?
> >
> >   I guess I'll find out :-)
> >
> > Thanks,
> > Ken
> >
> > On Tue, Sep 20, 2022 at 6:15 PM Aaron Hill  wrote:
> > >
> > > On 2022-09-20 4:27 pm, Kenneth Wolcott wrote:
> > > > Hi;
> > > >
> > > > Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme
> > > > errors.
> > > >
> > > > https://lsr.di.unimi.it/LSR/Search?q=music+box
> > > >
> > > > See attachments. I did not include my generated pdf file because it
> > > > pertains to the input file prior to trying to implement the music box.
> > > >
> > > > Thanks,
> > > > Ken Wolcott
> > > >
> > > > ~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
> > > > GNU LilyPond 2.22.2 (running Guile 2.2)
> > > > Processing `O_Holy_Night.ly'
> > > > Parsing...Backtrace:
> > > > [...]
> > > > ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: -14
> > >
> > > Review the documentation for LSR 346.  The transformation pattern must
> > > use notes starting from middle C.  Your pattern has notes in a much
> > > lower octave, which results in a negative index.  So, you would want to
> > > say something like this:
> > >
> > > 
> > > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f g
> > > a) }
> > > 
> > >
> > > However, you can do this more efficiently, removing the redundant notes:
> > >
> > > 
> > > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f d
> > > e) } % 1 2 3 4 2 3
> > > % ...
> > > | \make_bass_pattern { g, g d b } \make_bass_pattern { b, g d b }
> > > | \make_bass_pattern { b, g d b } \make_bass_pattern { b, g d b }
> > > | \make_bass_pattern { b, g d b } \make_bass_pattern { c g e c' }
> > > % ...
> > > 
> > >
> > >
> > > -- Aaron Hill



Re: Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Kenneth Wolcott
No, it does not support the "q' functionality, but it is still a very
cool function :-)

Thanks,
Ken

On Tue, Sep 20, 2022 at 7:36 PM Kenneth Wolcott
 wrote:
>
> HI Aaron;
>
>   Thank you very much!  Works great now.
>
>   A followup question: I don't think that this function supports the
> "q" substitution for chord repetition, does it?
>
>   I guess I'll find out :-)
>
> Thanks,
> Ken
>
> On Tue, Sep 20, 2022 at 6:15 PM Aaron Hill  wrote:
> >
> > On 2022-09-20 4:27 pm, Kenneth Wolcott wrote:
> > > Hi;
> > >
> > > Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme
> > > errors.
> > >
> > > https://lsr.di.unimi.it/LSR/Search?q=music+box
> > >
> > > See attachments. I did not include my generated pdf file because it
> > > pertains to the input file prior to trying to implement the music box.
> > >
> > > Thanks,
> > > Ken Wolcott
> > >
> > > ~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
> > > GNU LilyPond 2.22.2 (running Guile 2.2)
> > > Processing `O_Holy_Night.ly'
> > > Parsing...Backtrace:
> > > [...]
> > > ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: -14
> >
> > Review the documentation for LSR 346.  The transformation pattern must
> > use notes starting from middle C.  Your pattern has notes in a much
> > lower octave, which results in a negative index.  So, you would want to
> > say something like this:
> >
> > 
> > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f g
> > a) }
> > 
> >
> > However, you can do this more efficiently, removing the redundant notes:
> >
> > 
> > make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f d
> > e) } % 1 2 3 4 2 3
> > % ...
> > | \make_bass_pattern { g, g d b } \make_bass_pattern { b, g d b }
> > | \make_bass_pattern { b, g d b } \make_bass_pattern { b, g d b }
> > | \make_bass_pattern { b, g d b } \make_bass_pattern { c g e c' }
> > % ...
> > 
> >
> >
> > -- Aaron Hill



Re: Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Kenneth Wolcott
HI Aaron;

  Thank you very much!  Works great now.

  A followup question: I don't think that this function supports the
"q" substitution for chord repetition, does it?

  I guess I'll find out :-)

Thanks,
Ken

On Tue, Sep 20, 2022 at 6:15 PM Aaron Hill  wrote:
>
> On 2022-09-20 4:27 pm, Kenneth Wolcott wrote:
> > Hi;
> >
> > Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme
> > errors.
> >
> > https://lsr.di.unimi.it/LSR/Search?q=music+box
> >
> > See attachments. I did not include my generated pdf file because it
> > pertains to the input file prior to trying to implement the music box.
> >
> > Thanks,
> > Ken Wolcott
> >
> > ~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
> > GNU LilyPond 2.22.2 (running Guile 2.2)
> > Processing `O_Holy_Night.ly'
> > Parsing...Backtrace:
> > [...]
> > ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: -14
>
> Review the documentation for LSR 346.  The transformation pattern must
> use notes starting from middle C.  Your pattern has notes in a much
> lower octave, which results in a negative index.  So, you would want to
> say something like this:
>
> 
> make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f g
> a) }
> 
>
> However, you can do this more efficiently, removing the redundant notes:
>
> 
> make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f d
> e) } % 1 2 3 4 2 3
> % ...
> | \make_bass_pattern { g, g d b } \make_bass_pattern { b, g d b }
> | \make_bass_pattern { b, g d b } \make_bass_pattern { b, g d b }
> | \make_bass_pattern { b, g d b } \make_bass_pattern { c g e c' }
> % ...
> 
>
>
> -- Aaron Hill



Re: Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Aaron Hill

On 2022-09-20 4:27 pm, Kenneth Wolcott wrote:

Hi;

Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme 
errors.


https://lsr.di.unimi.it/LSR/Search?q=music+box

See attachments. I did not include my generated pdf file because it
pertains to the input file prior to trying to implement the music box.

Thanks,
Ken Wolcott

~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
GNU LilyPond 2.22.2 (running Guile 2.2)
Processing `O_Holy_Night.ly'
Parsing...Backtrace:
[...]
ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: -14


Review the documentation for LSR 346.  The transformation pattern must 
use notes starting from middle C.  Your pattern has notes in a much 
lower octave, which results in a negative index.  So, you would want to 
say something like this:



make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f g 
a) }



However, you can do this more efficiently, removing the redundant notes:


make_bass_pattern = \defineTransform \tuplet 6/4 \fixed c' { c8( d e f d 
e) } % 1 2 3 4 2 3

% ...
| \make_bass_pattern { g, g d b } \make_bass_pattern { b, g d b }
| \make_bass_pattern { b, g d b } \make_bass_pattern { b, g d b }
| \make_bass_pattern { b, g d b } \make_bass_pattern { c g e c' }
% ...



-- Aaron Hill



Re: pitch-class sets in lilypond

2022-09-20 Thread Andrew Bernard

Or possibly even the 21st century. :-)

Is your work in Scheme?

Andrew


On 21/09/2022 9:49 am, Kieren MacMillan wrote:

That being said… I've done a fair bit of work around this, some alone and some 
in collaboration with Urs Liska (who isn't able to continue that work), and I 
would *love* to be involved in any “committee” work going on with regard to 
helping Lilypond enter the 20th Century. ;)





Re: pitch-class sets in lilypond

2022-09-20 Thread Kieren MacMillan
Hi all!

The timing, of course, couldn't be worse…  ;)  There's a workshop/reading of my 
newest [Lilypond-engraved, of course!] musical on Oct 15, and my co-writer and 
I *just* found out (as the result of a session with our brilliant 
dramaturge/director) that there are a whole pant-load of revisions to be done.

That being said… I've done a fair bit of work around this, some alone and some 
in collaboration with Urs Liska (who isn't able to continue that work), and I 
would *love* to be involved in any “committee” work going on with regard to 
helping Lilypond enter the 20th Century. ;)

Please keep me in the loop!
Kieren.

> On Sep 20, 2022, at 10:27 AM, Lukas-Fabian Moser  wrote:
> Hi Stefan,
> Am 20.09.22 um 13:00 schrieb Stefan Thomas:
>> Dear community,
>> sorry, it's a bit an off topic



Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors

2022-09-20 Thread Kenneth Wolcott
Hi;

Tried to use "music box" with Lilypond 2.22.2, get lots of Scheme errors.

https://lsr.di.unimi.it/LSR/Search?q=music+box

See attachments. I did not include my generated pdf file because it
pertains to the input file prior to trying to implement the music box.

Thanks,
Ken Wolcott

~/bin/engrave.pl --lpv=2.22.2 --s=O_Holy_Night.ly
GNU LilyPond 2.22.2 (running Guile 2.2)
Processing `O_Holy_Night.ly'
Parsing...Backtrace:
  15 (apply-smob/1 #)
In ice-9/eval.scm:
   293:34 14 (_ #(#(#) #))
619:8 13 (_ #(#(#(#(#(#(#) …) …) …) …) …))
In srfi/srfi-1.scm:
640:9 12 (for-each # …)
In ice-9/eval.scm:
619:8 11 (_ #(#(#(#(# #f # …) …) …) …))
In ice-9/boot-9.scm:
829:9 10 (catch _ _ # …)
In unknown file:
   9 (ly:parse-file "O_Holy_Night.ly")
In ice-9/eval.scm:
   293:34  8 (_ #(#(#(#(#(#) …) …) …) …))
619:8  7 (_ #(#(#(# #) #) #(# …) #))
619:8  6 (_ #(#(#(# # …) …) …))
619:8  5 (_ #(#(#(# # …) …) …))
In srfi/srfi-1.scm:
640:9  4 (for-each # (# # # # # # #))
In ice-9/eval.scm:
259:9  3 (_ #(#(# # …) …))
619:8  2 (_ #(#(#(# #(# # …)) #) #))
   202:51  1 (_ #(#(#(# #(# # …)) #) #))
159:9  0 (_ #(#(#(# #(# # …)) #) #))

ice-9/eval.scm:159:9: Value out of range 0 to 18446744073709551615: -14


O_Holy_Night_arranged_for_Piano.pdf
Description: Adobe PDF document


define_transform.ily
Description: Binary data


O_Holy_Night.ly
Description: Binary data


Re: pitch-class sets in lilypond

2022-09-20 Thread Jean Abou Samra




Le 20/09/2022 à 16:27, Lukas-Fabian Moser a écrit :


Hi Stefan,

Am 20.09.22 um 13:00 schrieb Stefan Thomas:

Dear community,
sorry, it's a bit an off topic: If You are not interested in 
pitch-class set theory, You don't have to read the following.
I've worked on a python module dealing with pitch-class set theory as 
I've read in "The structure of atonal music" by Allen Forte.
I know that there already exists some modules like that but I want to 
integrate it in lilypond.

I'm still working on this module, but at the  moment I can do:

  * Getting the normal form and prime form of a pcs.
  * Transposing and inverting a pcs
  * Finding subsets of a pcs given in primeform.

I'm working on:

  * Finding different kinds of similarity of pcs.
  * Getting subcomplexes k and kh of a pcs.
  * Finding primeform and so on, when pitches in lilypond-style are
given.
  * Getting pitches in lilypond-style when pitches in midinote-nums
or as pcs are given.

Let me know it if You are interested. Maybee it's only something of 
interest for nerdy persons like me, but maybee for others too.


I don't know if this is of use to you, but I created a bunch of 
LilyPond routines for dealing with PC sets (like in Forte, but also 
with a finer equivalence relation not identifying a set with its 
inverse) last year. I attach it unchanged, as I don't have time to 
clean it up at the moment; you'll probably want to uncomment some of 
the routines at the end to see what the functions do.


I'm curious: You write that you are working on a Python module; how 
does this integrate in LilyPond?





What does the include file dodeka.ily contain?



Re: pitch-class sets in lilypond

2022-09-20 Thread Stefan Thomas
Dear Lukas,
the file, unfortunately, doesn't work for me, I don't have dodeka.ly

Am Di., 20. Sept. 2022 um 16:28 Uhr schrieb Lukas-Fabian Moser :

> Hi Stefan,
> Am 20.09.22 um 13:00 schrieb Stefan Thomas:
>
> Dear community,
> sorry, it's a bit an off topic: If You are not interested in pitch-class
> set theory, You don't have to read the following.
> I've worked on a python module dealing with pitch-class set theory as I've
> read in "The structure of atonal music" by Allen Forte.
> I know that there already exists some modules like that but I want to
> integrate it in lilypond.
> I'm still working on this module, but at the  moment I can do:
>
>- Getting the normal form and prime form of a pcs.
>- Transposing and inverting a pcs
>- Finding subsets of a pcs given in primeform.
>
> I'm working on:
>
>- Finding different kinds of similarity of pcs.
>- Getting subcomplexes k and kh of a pcs.
>- Finding primeform and so on, when pitches in lilypond-style are
>given.
>- Getting pitches in lilypond-style when pitches in midinote-nums or
>as pcs are given.
>
> Let me know it if You are interested. Maybee it's only something of
> interest for nerdy persons like me, but maybee for others too.
>
> I don't know if this is of use to you, but I created a bunch of LilyPond
> routines for dealing with PC sets (like in Forte, but also with a finer
> equivalence relation not identifying a set with its inverse) last year. I
> attach it unchanged, as I don't have time to clean it up at the moment;
> you'll probably want to uncomment some of the routines at the end to see
> what the functions do.
>
> I'm curious: You write that you are working on a Python module; how does
> this integrate in LilyPond?
>
> Lukas
>


Re: LilyPond 2.23.13

2022-09-20 Thread Jonas Hahnfeld via LilyPond user discussion
Hi,

On Mon, 2022-09-19 at 08:41 +, Ya Gloops wrote:
> Hello Jean !
> 
> Error 1073741819
> 
> \version "2.23.13"
> 
> $@(map (lambda (i)
>          #{
>            \bookpart {
>              \score {
>            \repeat unfold 100 c'1
>              }
>            }
>          #})
>         (iota 300))

I suppose this is crashing for you? Can you share the frequency, every
time, or 1 out of 10, or ...? I executed this 20 times and seemed to
work fine on my machine.

> Block on Fitting music on 171 or 172 pages...
> 
> \version "2.23.13"
> 
> $@(map (lambda (i)
>          #{
>              \score {
>            \repeat unfold 100 c'1
>              }
>          #})
>         (iota 300))

I think this example just takes a very long time because of the many
pages. I see the same on Linux.

Jonas


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


Re: LilyPond 2.23.13

2022-09-20 Thread Jean Abou Samra




Le 20/09/2022 à 20:33, Jean Abou Samra a écrit :

Le 20/09/2022 à 20:01, Jonas Hahnfeld a écrit :

Block on Fitting music on 171 or 172 pages...

\version "2.23.13"

$@(map (lambda (i)
          #{
              \score {
            \repeat unfold 100 c'1
              }
          #})
         (iota 300))

I think this example just takes a very long time because of the many
pages. I see the same on Linux.



Most of all, it seems to take forever because the measures
are extremely narrow in this artificial example. Because of
this, there are enormously many sensible line breaking and
page breaking configurations, and LilyPond is trying out many
of them. This will complete much faster:

\version "2.23.14"

$@(map
   (lambda (i)
   #{
 \score {
   {
 \autoPageBreaksOff
 \repeat unfold 10 { \repeat unfold 10 c'1 \break }
   }
 }
 #})
   (iota 300))


and this also compiles in a reasonable time while still yielding ~280
pages of output:

\version "2.23.14"

$@(map
   (lambda (i)
   #{
 \score {
   \repeat unfold 100 { \repeat unfold 32 c'32 \break }



Sorry, that \break shouldn't have been there, I meant to demonstate 
acceptably fast page breaking without manual help. (It still completes 
in a reasonable time.)




Re: LilyPond 2.23.13

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 20:01, Jonas Hahnfeld a écrit :

Block on Fitting music on 171 or 172 pages...

\version "2.23.13"

$@(map (lambda (i)
          #{
              \score {
            \repeat unfold 100 c'1
              }
          #})
         (iota 300))

I think this example just takes a very long time because of the many
pages. I see the same on Linux.



Most of all, it seems to take forever because the measures
are extremely narrow in this artificial example. Because of
this, there are enormously many sensible line breaking and
page breaking configurations, and LilyPond is trying out many
of them. This will complete much faster:

\version "2.23.14"

$@(map
   (lambda (i)
   #{
 \score {
   {
 \autoPageBreaksOff
 \repeat unfold 10 { \repeat unfold 10 c'1 \break }
   }
 }
 #})
   (iota 300))


and this also compiles in a reasonable time while still yielding ~280
pages of output:

\version "2.23.14"

$@(map
   (lambda (i)
   #{
 \score {
   \repeat unfold 100 { \repeat unfold 32 c'32 \break }
 }
 #})
   (iota 40))



Jean





Re: pitch-class sets in lilypond

2022-09-20 Thread Martín Rincón Botero
  
  

 Hi Stefan,
  

  
as abjad user I find this interesting, although abjad already provides some 
functionality in this regard. You can write me privately (in German if you 
wish), I'd be glad to give you feedback or simply checking out your module.
  

  
If you want to integrate this to Lilypond, like Jean says, Scheme and not 
Python (unfortunately for some of us who can barely read any Scheme) can be 
integrated into Lilypond.
  

  
Regards,
  
Martín.
  
  
  
 www.martinrinconbotero.com
  
  
  

  
  
>   
> On Sep 20, 2022 at 3:53 PM,   (mailto:kontrapunktste...@gmail.com)>  wrote:
>   
>   
>   
>   
> Dear community,
>   
> sorry, it's a bit an off topic: If You are not interested in pitch-class set 
> theory, You don't have to read the following.
>   
> I've worked on a python module dealing with pitch-class set theory as I've 
> read in "The structure of atonal music" by Allen Forte.
>   
> I know that there already exists some modules like that but I want to 
> integrate it in lilypond.
>   
> I'm still working on this module, but at themoment I can do:
>   
>   
> Getting the normal form and prime form of a pcs.
>   
> Transposing and inverting a pcs
>   
> Finding subsets of a pcs given in primeform.
>   
>   
> I'm working on:
>   
>   
> Finding different kinds of similarity of pcs.
>   
> Getting subcomplexes k and kh of a pcs.
>   
> Finding primeform and so on, when pitches in lilypond-style are given.
>   
> Getting pitches in lilypond-style when pitches in midinote-nums or as pcs are 
> given.
>   
>   
> Let me know it if You are interested. Maybee it's only something of interest 
> for nerdy persons like me, but maybee for others too.
>   
> Best,
>   
> Stefan
>

Re: issues with installing Lilypond

2022-09-20 Thread Richard Shann
On Tue, 2022-09-20 at 09:26 -0400, t...@risingdove.com wrote:
> On 19 Sep 2022 at 17:55, Cluanie Fraser wrote:
> 
> > 
> >  Hi Tim,
> >  Thanks for responding. I´m really struggling as I´m quite out
> > of depth with this tech stuff.
> >  This is what shows up when I download the Lilypond file from
> > the website and double 
> >  click to open it.
> 
> You've opened it in Notepad, which is for text files. What you have
> opened is definitely NOT a 
> text file. 
>  
> >  I tried downloading Denemo and that kind of worked but doesn´t
> > let me edit the music in 
> >  the lilypond text file, I can only do it graphically which
> > isn´t ideal.
> 
> I know next to nothing about Denomo, but I think it's a graphical
> music editor, which would 
> work with files in its own format, and would know nothing about
> Lilypond (*.ly) files.

just to set things straight - Denemo certainly does know about LilyPond
files, it can write them and it can import them sometimes and can read
chunks of music from LilyPond files via the clipboard. And you can
insert LilyPond syntax at places in a Denemo score...

Richard Shann






Re: pitch-class sets in lilypond

2022-09-20 Thread Andrew Bernard
Definitely. And when you are done, we can add it to OpenLilyLib for all 
to use.


I do not think this is off topic by any means. It's a valid use case for 
Lilypond. And OLL is a good place for a module like this, as LSR is only 
for smallish snippets.


Andrew





Re: pitch-class sets in lilypond

2022-09-20 Thread Lukas-Fabian Moser

Hi Stefan,

Am 20.09.22 um 13:00 schrieb Stefan Thomas:

Dear community,
sorry, it's a bit an off topic: If You are not interested in 
pitch-class set theory, You don't have to read the following.
I've worked on a python module dealing with pitch-class set theory as 
I've read in "The structure of atonal music" by Allen Forte.
I know that there already exists some modules like that but I want to 
integrate it in lilypond.

I'm still working on this module, but at the  moment I can do:

  * Getting the normal form and prime form of a pcs.
  * Transposing and inverting a pcs
  * Finding subsets of a pcs given in primeform.

I'm working on:

  * Finding different kinds of similarity of pcs.
  * Getting subcomplexes k and kh of a pcs.
  * Finding primeform and so on, when pitches in lilypond-style are given.
  * Getting pitches in lilypond-style when pitches in midinote-nums or
as pcs are given.

Let me know it if You are interested. Maybee it's only something of 
interest for nerdy persons like me, but maybee for others too.


I don't know if this is of use to you, but I created a bunch of LilyPond 
routines for dealing with PC sets (like in Forte, but also with a finer 
equivalence relation not identifying a set with its inverse) last year. 
I attach it unchanged, as I don't have time to clean it up at the 
moment; you'll probably want to uncomment some of the routines at the 
end to see what the functions do.


I'm curious: You write that you are working on a Python module; how does 
this integrate in LilyPond?


Lukas
\version "2.22.0"

\include "dodeka.ily"

% -- Forte number dictionaries --

forte-distinct-inverses = % Taken from https://en.wikipedia.org/wiki/List_of_pitch-class_sets
#'((0-1 . ())
   (1-1 . (0))
   (2-1 . (0 1))
   (2-2 . (0 2))
   (2-3 . (0 3))
   (2-4 . (0 4))
   (2-5 . (0 5))
   (2-6 . (0 6))
   (3-1 . (0 1 2))
   (3-2A . (0 1 3))
   (3-2B . (0 2 3))
   (3-3A . (0 1 4))
   (3-3B . (0 3 4))
   (3-4A . (0 1 5))
   (3-4B . (0 4 5))
   (3-5A . (0 1 6))
   (3-5B . (0 5 6))
   (3-6 . (0 2 4))
   (3-7A . (0 2 5))
   (3-7B . (0 3 5))
   (3-8A . (0 2 6))
   (3-8B . (0 4 6))
   (3-9 . (0 2 7))
   (3-10 . (0 3 6))
   (3-11A . (0 3 7))
   (3-11B . (0 4 7))
   (3-12 . (0 4 8))
   (4-1 . (0 1 2 3))
   (4-2A . (0 1 2 4))
   (4-2B . (0 2 3 4))
   (4-3 . (0 1 3 4))
   (4-4A . (0 1 2 5))
   (4-4B . (0 3 4 5))
   (4-5A . (0 1 2 6))
   (4-5B . (0 4 5 6))
   (4-6 . (0 1 2 7))
   (4-7 . (0 1 4 5))
   (4-8 . (0 1 5 6))
   (4-9 . (0 1 6 7))
   (4-10 . (0 2 3 5))
   (4-11A . (0 1 3 5))
   (4-11B . (0 2 4 5))
   (4-12A . (0 2 3 6))
   (4-12B . (0 3 4 6))
   (4-13A . (0 1 3 6))
   (4-13B . (0 3 5 6))
   (4-14A . (0 2 3 7))
   (4-14B . (0 4 5 7))
   (4-z15A . (0 1 4 6))
   (4-z15B . (0 2 5 6))
   (4-16A . (0 1 5 7))
   (4-16B . (0 2 6 7))
   (4-17 . (0 3 4 7))
   (4-18A . (0 1 4 7))
   (4-18B . (0 3 6 7))
   (4-19A . (0 1 4 8))
   (4-19B . (0 3 4 8))
   (4-20 . (0 1 5 8))
   (4-21 . (0 2 4 6))
   (4-22A . (0 2 4 7))
   (4-22B . (0 3 5 7))
   (4-23 . (0 2 5 7))
   (4-24 . (0 2 4 8))
   (4-25 . (0 2 6 8))
   (4-26 . (0 3 5 8))
   (4-27A . (0 2 5 8))
   (4-27B . (0 3 6 8))
   (4-28 . (0 3 6 9))
   (4-z29A . (0 1 3 7))
   (4-z29B . (0 4 6 7))
   (5-1 . (0 1 2 3 4))
   (5-2A . (0 1 2 3 5))
   (5-2B . (0 2 3 4 5))
   (5-3A . (0 1 2 4 5))
   (5-3B . (0 1 3 4 5))
   (5-4A . (0 1 2 3 6))
   (5-4B . (0 3 4 5 6))
   (5-5A . (0 1 2 3 7))
   (5-5B . (0 4 5 6 7))
   (5-6A . (0 1 2 5 6))
   (5-6B . (0 1 4 5 6))
   (5-7A . (0 1 2 6 7))
   (5-7B . (0 1 5 6 7))
   (5-8 . (0 2 3 4 6))
   (5-9A . (0 1 2 4 6))
   (5-9B . (0 2 4 5 6))
   (5-10A . (0 1 3 4 6))
   (5-10B . (0 2 3 5 6))
   (5-11A . (0 2 3 4 7))
   (5-11B . (0 3 4 5 7))
   (5-z12 . (0 1 3 5 6))
   (5-13A . (0 1 2 4 8))
   (5-13B . (0 2 3 4 8))
   (5-14A . (0 1 2 5 7))
   (5-14B . (0 2 5 6 7))
   (5-15 . (0 1 2 6 8))
   (5-16A . (0 1 3 4 7))
   (5-16B . (0 3 4 6 7))
   (5-z17 . (0 1 3 4 8))
   (5-z18A . (0 1 4 5 7))
   (5-z18B . (0 2 3 6 7))
   (5-19A . (0 1 3 6 7))
   (5-19B . (0 1 4 6 7))
   (5-20A . (0 1 5 6 8))
   (5-20B . (0 2 3 7 8))
   (5-21A . (0 1 4 5 8))
   (5-21B . (0 3 4 7 8))
   (5-22 . (0 1 4 7 8))
   (5-23A . (0 2 3 5 7))
   (5-23B . (0 2 4 5 7))
   (5-24A . (0 1 3 5 7))
   (5-24B . (0 2 4 6 7))
   (5-25A . (0 2 3 5 8))
   (5-25B . (0 3 5 6 8))
   (5-26A . (0 2 4 5 8))
   (5-26B . (0 3 4 6 8))
   (5-27A . (0 1 3 5 8))
   (5-27B . (0 3 5 7 8))
   (5-28A . (0 2 3 6 8))
   (5-28B . (0 2 5 6 8))
   (5-29A . (0 1 3 6 8))
   (5-29B . (0 2 5 7 8))
   (5-30A . (0 1 4 6 8))
   (5-30B . (0 2 4 7 8))
   (5-31A . (0 1 3 6 9))
   (5-31B . (0 2 3 6 9))
   (5-32A . (0 1 4 6 9))
   (5-32B . (0 3 5 8 9))
   (5-33 . (0 2 4 6 8))
   (5-34 . (0 2 4 6 9))
   (5-35 . (0 2 4 7 9))
   (5-z36A . (0 1 2 4 7))
   (5-z36B . (0 3 5 6 7))
   (5-z37 . (0 3 4 5 8))
   (5-z38A . (0 1 2 5 8))
   (5-z38B . (0 3 6 7 8))
   (6-1 . (0 1 2 3 4 5))
   (6-2A . (0 1 2 3 4 6))
   (6-2B . (0 2 3 4 5 6))
   (6-z3A . (0 1 2 3 5 6))
   (6-z3B . (0 1 

Re: pitch-class sets in lilypond

2022-09-20 Thread David Kastrup
Stefan Thomas  writes:

>- Finding different kinds of similarity of pcs.
>- Getting subcomplexes k and kh of a pcs.
>- Finding primeform and so on, when pitches in lilypond-style are given.
>- Getting pitches in lilypond-style when pitches in midinote-nums or as
>pcs are given.

Check out make-semitone->pitch .

-- 
David Kastrup



Re: error: Unbound variable: \version

2022-09-20 Thread David Wright
On Tue 20 Sep 2022 at 05:49:24 (-0400), ming tsang wrote:
> On Tue, Sep 20, 2022 at 4:56 AM Jean Abou Samra  wrote:
> > Le 20/09/2022 à 10:18, ming tsang a écrit :
> > > dear lilyponders,
> > > i have the following lilypond code:
> > > \version "2.18.2"
> > > \markup "Test"
> > >
> > > That produce the following error in log file:
> > >
> > > Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...
> > >
> > > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>:
> > > In procedure primitive-load-path in expression (primitive-load-path
> > > file-name):
> > >
> > > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>:
> > > Unbound variable: \version
> > >
> > > Exited with return code 1.
> > >
> > >
> > > QUESTION:
> > > I have version in my computer. I have window 10, lilypond v2.18.2 and
> > > v2.23.10, frecoaldi v3.2
> >
> > Does the error reproduce in 2.23.10, and if so, can you paste the exact
> > error message (with the line numbers)?
> >
> > What is the name of the file? This sounds like LilyPond is mistaking it
> > for one of its internal files.

> The following code is in v2.23.11 and it run OK.
> \version "2.23.11"
> \markup "test"
> 
> And the log file is :
> Starting lilypond.exe 2.23.11 [Untitled (11)]...

Why is this 11, not 9?

> Processing
> `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-7krgt6o3/tmprbzc8juy/
> document.ly'

You didn't post this line in the OP. It's helpful to see the whole log
pasted, rather than snippets.

So can we assume that you're running this code from Frescobaldi?

In which case, can you test whether the cade runs correctly in
LilyPond; that's native LilyPond, executed directly from Windows.

Otherwise, you haven't eliminated the possibility that new
Frescobaldis have "forgotten" how to call ancient versions
of LilyPond successfully.

I also wonder whether the old "unsaved file" has anything to
do with the problem (which would make the problem go away with
direct LilyPond, as you can't run LP on an unsaved file).

Cheers,
David.



Re: pitch-class sets in lilypond

2022-09-20 Thread Jean Abou Samra




Le 20/09/2022 à 13:00, Stefan Thomas a écrit :

Dear community,
sorry, it's a bit an off topic: If You are not interested in 
pitch-class set theory, You don't have to read the following.
I've worked on a python module dealing with pitch-class set theory as 
I've read in "The structure of atonal music" by Allen Forte.
I know that there already exists some modules like that but I want to 
integrate it in lilypond.



If you want to integrate it in LilyPond, wouldn't writing it in Scheme 
be more appropriate? That way you can really use it inside LilyPond, as 
opposed to generating LilyPond code and feeding it to LilyPond 
afterwards. Just a thought.




Re: issues with installing Lilypond

2022-09-20 Thread tim
On 19 Sep 2022 at 17:55, Cluanie Fraser wrote:

>
> Hi Tim,
> Thanks for responding. I´m really struggling as I´m quite out of depth 
> with this tech stuff.
> This is what shows up when I download the Lilypond file from the website 
> and double
> click to open it.

You've opened it in Notepad, which is for text files. What you have opened is 
definitely NOT a
text file.

> I tried downloading Denemo and that kind of worked but doesn´t let me 
> edit the music in
> the lilypond text file, I can only do it graphically which isn´t ideal.

I know next to nothing about Denomo, but I think it's a graphical music editor, 
which would
work with files in its own format, and would know nothing about Lilypond (*.ly) 
files.

I you have an existing *.ly file, open it in a text editor (or maybe better yet 
Frescobaldi, which I
gave you a URL for). And read the Learning manual, which I also gave you the 
URL for. The
*.ly file probably will make no sense to you until you read the Learning manual.

There is certainly a learning curve with Lilypond, but the results are worth it.

> I appreciate any help; I feel like it shouldn´t be this difficult!
>
> Cluanie
>
>
>
> Sent from Mail for Windows
>
> From: t...@risingdove.com
> Sent: 09 September 2022 15:16
> To: li.lypond-u...@gnu.org; Cluanie Fraser
> Subject: Re: issues with installing Lilypond
>
> On 9 Sep 2022 at 11:21, Cluanie Fraser wrote:
>
> >
> > Hi,
> > I´m struggling to download lilypond and wondering if it´s supported on 
> Windows 11?
>
> It certainly runs on Win11, that's how I use it.
>
> > When I download the Lilypond file it opens as a huge encrypted text 
> file on
> Notepad.
>
> It's basically a command line application. You prepare a file for it to 
> process and it spits
> out a
> PDF. For the basics of how to use it, download the Learning manual at
> http://lilypond.org/doc/v2.22/Documentation/learning/index.html
>
> Also, check out Frescobaldi at frescobaldi.org. That's a multiplatform 
> front-end for Lily
> that
> makes writing, editing, and compiling your Lilypond input easier.
>
> And continue to ask questions here.
>
> --
> Tim Slattery
> t...@risingdove.com
>
>



--
Tim Slattery
t...@risingdove.com





Re: error: Unbound variable: \version

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 11:49, ming tsang a écrit :

Hi Jean,
The following code is in v2.23.11 and it run OK.
\version "2.23.11"
\markup "test"

And the log file is :
Starting lilypond.exe 2.23.11 [Untitled (11)]...

Processing 
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-7krgt6o3/tmprbzc8juy/document.ly 
'


Parsing...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Converting to `document.pdf'...

Success: compilation successfully completed

Completed successfully in 1.4".

I am just querious about the error in v2.18.2.





I've now checked with a 2.18 install, and the only way I am able
to reproduce this error is by editing one of LilyPond's internal
.scm files and adding \version in it. Did you edit the internal files?





Re: error: Unbound variable: \version

2022-09-20 Thread Andrew Bernard
I am curious as to why you are still using 2.18.2. Is it really 
necessary for you? Why? Stable release is now 22.22.2. That's a _long_ 
way further on. I'm not sure people want to spend time helping debug 
2.18.2 issues. Just asking.


Andrew





pitch-class sets in lilypond

2022-09-20 Thread Stefan Thomas
Dear community,
sorry, it's a bit an off topic: If You are not interested in pitch-class
set theory, You don't have to read the following.
I've worked on a python module dealing with pitch-class set theory as I've
read in "The structure of atonal music" by Allen Forte.
I know that there already exists some modules like that but I want to
integrate it in lilypond.
I'm still working on this module, but at the  moment I can do:

   - Getting the normal form and prime form of a pcs.
   - Transposing and inverting a pcs
   - Finding subsets of a pcs given in primeform.

I'm working on:

   - Finding different kinds of similarity of pcs.
   - Getting subcomplexes k and kh of a pcs.
   - Finding primeform and so on, when pitches in lilypond-style are given.
   - Getting pitches in lilypond-style when pitches in midinote-nums or as
   pcs are given.

Let me know it if You are interested. Maybee it's only something of
interest for nerdy persons like me, but maybee for others too.
Best,
Stefan


Re: Incipit: horizontal alignment of instrument names

2022-09-20 Thread Johannes Roeßler

Thank you, Jean - it worked!

InstrumentName = "Org"
  \override InstrumentName.self-alignment-X = #0.8 




Re: error: Unbound variable: \version

2022-09-20 Thread ming tsang
Hi Jean,
The following code is in v2.23.11 and it run OK.
\version "2.23.11"
\markup "test"

And the log file is :
Starting lilypond.exe 2.23.11 [Untitled (11)]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-7krgt6o3/tmprbzc8juy/
document.ly'

Parsing...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Converting to `document.pdf'...

Success: compilation successfully completed

Completed successfully in 1.4".


I am just querious about the error in v2.18.2.


Ming

On Tue, Sep 20, 2022 at 4:56 AM Jean Abou Samra  wrote:

> Le 20/09/2022 à 10:18, ming tsang a écrit :
> > dear lilyponders,
> > i have the following lilypond code:
> > \version "2.18.2"
> > \markup "Test"
> >
> > That produce the following error in log file:
> >
> > Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...
> >
> > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>:
> > In procedure primitive-load-path in expression (primitive-load-path
> > file-name):
> >
> > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>:
> > Unbound variable: \version
> >
> > Exited with return code 1.
> >
> >
> > QUESTION:
> > I have version in my computer. I have window 10, lilypond v2.18.2 and
> > v2.23.10, frecoaldi v3.2
>
>
> Does the error reproduce in 2.23.10, and if so, can you paste the exact
> error message (with the line numbers)?
>
> What is the name of the file? This sounds like LilyPond is mistaking it
> for one of its internal files.
>
> Jean
>
>

-- 
ming (lyndon) tsang


Re: Incipit: horizontal alignment of instrument names

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 10:35, Johannes Roeßler a écrit :


Hi Group,

I've got issues with aligning the instrument names when using incipits.

A solution discribed here 
https://lilypondforum.de/index.php/topic,894.0.html help to some degree,

but my piano staff still doesn't fit.

[...]

Any advice?






Instead of using \override Staff.InstrumentName.self-alignment-X = #LEFT
in the \layout block, try only setting it for the staves that need it,
and fine-tuning the value in others.


\version "2.22.2"


altinc={ \clef "alto" \time 2/2 \key g\major b4 }

\score {
  <<
    \new ChoirStaff
    <<
  \new Staff = Soprano
  \with {
    instrumentName = "Soprano"  shortInstrumentName = "S"
    \override InstrumentName.self-alignment-X = #LEFT
  }
  {
    \incipit { \clef "soprano" \omit Staff.TimeSignature s1 }
    \repeat unfold 12 { c''4 c'' c'' c''}
  }

  \new Staff = Alto
  \with {
    instrumentName = "Alto"
    shortInstrumentName = "A"
    \override InstrumentName.self-alignment-X = #LEFT
  }
  {
    \incipit \altinc
    \repeat unfold 12 { c''4 c'' c'' c''}
  }

  \new Staff = Tenore
  \with {
    instrumentName = "Tenore"
    shortInstrumentName = "T"
    \override InstrumentName.self-alignment-X = #LEFT
  }
  {
    \incipit { \clef "tenor" \omit Staff.TimeSignature s1 }
    \clef "treble_8"
    \repeat unfold 12 { c'4 c' c' c' }
  }

  \new Staff = Basso
  \with {
    instrumentName = "Basso"
    shortInstrumentName = "B"
    \override InstrumentName.self-alignment-X = #0.8
  }
  {
    \repeat unfold 12 { c''4 c'' c'' c'' }
  }
    >>
    \new PianoStaff
    \with {
  instrumentName = "Orgel"
  shortInstrumentName = "Org"
  \override InstrumentName.self-alignment-X = #0.8
    } <<
  \new Staff = "right"

  {
    \repeat unfold 12 { c''4 c'' c'' c'' }
  }


  \new Staff = "left"

  {
    \repeat unfold 12 { c''4 c'' c'' c'' }
  }

    >>
  >>
}
\layout {
  indent = 5\cm
  short-indent = 1\cm
  incipit-width = 3\cm
}



Best,
Jean




Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 04:27, David Wright a écrit :

On Mon 19 Sep 2022 at 17:45:24 (-0700), Kenneth Wolcott wrote:


   What is "\rightjust"? Is it a variable (macro) that you have
defined?  I can't find that command in the NR.  How does that differ
from right-align, which I tried and it didn't work for me.

Oops, I'm sorry. I forgot that I'm relying on my main library for
its definition:

rightjust = {
   \override Score.RehearsalMark.self-alignment-X = #right
   \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
}

Of course, now I shall read Jean's contribution to see whether
I'm up-to-date. My libraries can otherwise fall behind the latest
ways of doing things.




This is the latest way of doing it as of LilyPond 2.23.13. However,
with a patch that has been merged just last night, the next version
will have a \textEndMark command making \textEndMark  somewhat
similar to \rightjust \mark  with your definition, but
creating a TextMark grob and not a RehearsalMark grob. The counterpart
is \textMark , which is sort of an equivalent of
\tweak self-alignment-X #LEFT \mark . We're adding these
to disentangle arbitrary text marks from "rehearsal" marks
(and there are some more differences: there can be several
text marks at the same moment, and the default font size is not
the same).

Jean




Re: error: Unbound variable: \version

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 10:18, ming tsang a écrit :

dear lilyponders,
i have the following lilypond code:
\version "2.18.2"
\markup "Test"

That produce the following error in log file:

Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...

C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>: 
In procedure primitive-load-path in expression (primitive-load-path 
file-name):


C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>: 
Unbound variable: \version


Exited with return code 1.


QUESTION:
I have version in my computer. I have window 10, lilypond v2.18.2 and 
v2.23.10, frecoaldi v3.2



Does the error reproduce in 2.23.10, and if so, can you paste the exact 
error message (with the line numbers)?


What is the name of the file? This sounds like LilyPond is mistaking it 
for one of its internal files.


Jean




Incipit: horizontal alignment of instrument names

2022-09-20 Thread Johannes Roeßler

Hi Group,

I've got issues with aligning the instrument names when using incipits.

A solution discribed here 
https://lilypondforum.de/index.php/topic,894.0.html help to some degree,

but my piano staff still doesn't fit.

\version "2.22.0"


altinc={ \clef "alto" \time 2/2 \key g\major b4 }

\score {
  <<
    \new ChoirStaff
    <<
      \new Staff = Soprano
      \with {
instrumentName = "Soprano"      shortInstrumentName = "S"
      }
      {
\incipit { \clef "soprano" \omit Staff.TimeSignature s1 }
\repeat unfold 12 { c''4 c'' c'' c''}
      }

      \new Staff = Alto
      \with {
instrumentName = "Alto"
shortInstrumentName = "A"
      }
      {
\incipit \altinc
\repeat unfold 12 { c''4 c'' c'' c''}
      }

      \new Staff = Tenore
      \with {
instrumentName = "Tenore"
shortInstrumentName = "T"
      }
      {
\incipit { \clef "tenor" \omit Staff.TimeSignature s1 }
        \clef "treble_8"
\repeat unfold 12 { c'4 c' c' c' }
      }

      \new Staff = Basso
      \with {
instrumentName = "Basso"
shortInstrumentName = "B"
      }
      {
\repeat unfold 12 { c''4 c'' c'' c'' }
      }
    >>
    \new PianoStaff
    \with {
instrumentName = "Orgel"
shortInstrumentName = "Org"
    } <<
      \new Staff = "right"

      {
\repeat unfold 12 { c''4 c'' c'' c'' }
      }


      \new Staff = "left"

      {
\repeat unfold 12 { c''4 c'' c'' c'' }
      }

    >>
  >>
}
\layout {
  indent = 5\cm
short-indent = 1\cm
incipit-width = 3\cm
  \override Staff.InstrumentName.self-alignment-X = #LEFT
}

Any advice?

Thx and best regards
Joei



error: Unbound variable: \version

2022-09-20 Thread ming tsang
dear lilyponders,
i have the following lilypond code:
\version "2.18.2"
\markup "Test"

That produce the following error in log file:

Starting lilypond-windows.exe 2.18.2 [Untitled (9)]...

C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>: In
procedure primitive-load-path in expression (primitive-load-path file-name):

C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>:
Unbound variable: \version

Exited with return code 1.

QUESTION:
I have version in my computer. I have window 10, lilypond v2.18.2 and
v2.23.10, frecoaldi v3.2

Ming
-- 
ming (lyndon) tsang