Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Laurie Savage

Leo,

I didn't spot that problem, but your \tweak snippet works perfectly.

Regards,

Laurie
Laurie Savage
https://www.queensofthewest.com/

On Sat, Mar 25 2023 at 11:16:37 +1100, Laurie Savage 
 wrote:

Thanks Michael,

That clarifies the problem. I'm going to see if I can incorporate the 
new segno-repeat structure into the score, but I suspect that might 
be difficult because the Segno is at the start of a repeat and the 
Coda sign is midway through a repeated passage that follows.

Laurie Savage
https://www.queensofthewest.com/

On Sat, Mar 25 2023 at 00:59:40 +0100, Leo Correia de Verdier 
 wrote:
The problem with that solution is that it changes all Scripts, 
including all articulations. I would suggest the somewhat hacky 
solution of redefining just the commands in case, like


segno = \tweak color #red \segno
coda = \tweak color #red \coda

But if something more elegant is required (for instance if there 
could be conflicting tweaks) there is a solution in this thread: 



HTH
/Leo

 25 mars 2023 kl. 00:35 skrev Michael Werner >:


 Hi Laurie,

 On Fri, Mar 24, 2023 at 7:19 PM savage.laurie 
mailto:savage.lau...@gmail.com>> wrote:
 I think the issue might be that I am using explicit \coda and 
\segno commands and your example uses the new \repeat segno form 
which will be too complex in the specific big band chart I'm 
editing. It's about 160 bars long with the segno in bar 24 and the 
"to coda" symbol in bar 48 and three repeated sections, I got lost 
in the nested braces when I tried the new structure. If I was 
writing it from scratch rather than re-editing it would be simpler.


 That is indeed the issue, as those marks are a different type. 
Just needs a different override in a different context. Turns out 
that using the \coda and \segno commands the symbols created are 
handled the same as articulations. That means they fall into the 
somewhat more generic Script type, which is handled in the Voice 
context. Therefor:


 \layout {
   \context {
 \Score
 \override CodaMark.color = #red
 \override SegnoMark.color = #red
 \override SectionLabel.color = #red
 \override SectionLabel.font-size = #3
 \override RehearsalMark.font-size = #3
 \override RehearsalMark.color = #red
 \override TextMark.color = #red
   }
   \context {
 \Voice
 \override Script.color = #red
   }
 }

 should get you sorted.

 Michael






Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Laurie Savage

Thanks Michael,

That clarifies the problem. I'm going to see if I can incorporate the 
new segno-repeat structure into the score, but I suspect that might be 
difficult because the Segno is at the start of a repeat and the Coda 
sign is midway through a repeated passage that follows.

Laurie Savage
https://www.queensofthewest.com/

On Sat, Mar 25 2023 at 00:59:40 +0100, Leo Correia de Verdier 
 wrote:
The problem with that solution is that it changes all Scripts, 
including all articulations. I would suggest the somewhat hacky 
solution of redefining just the commands in case, like


segno = \tweak color #red \segno
coda = \tweak color #red \coda

But if something more elegant is required (for instance if there 
could be conflicting tweaks) there is a solution in this thread: 



HTH
/Leo

 25 mars 2023 kl. 00:35 skrev Michael Werner >:


 Hi Laurie,

 On Fri, Mar 24, 2023 at 7:19 PM savage.laurie 
mailto:savage.lau...@gmail.com>> wrote:
 I think the issue might be that I am using explicit \coda and 
\segno commands and your example uses the new \repeat segno form 
which will be too complex in the specific big band chart I'm 
editing. It's about 160 bars long with the segno in bar 24 and the 
"to coda" symbol in bar 48 and three repeated sections, I got lost 
in the nested braces when I tried the new structure. If I was 
writing it from scratch rather than re-editing it would be simpler.


 That is indeed the issue, as those marks are a different type. Just 
needs a different override in a different context. Turns out that 
using the \coda and \segno commands the symbols created are handled 
the same as articulations. That means they fall into the somewhat 
more generic Script type, which is handled in the Voice context. 
Therefor:


 \layout {
   \context {
 \Score
 \override CodaMark.color = #red
 \override SegnoMark.color = #red
 \override SectionLabel.color = #red
 \override SectionLabel.font-size = #3
 \override RehearsalMark.font-size = #3
 \override RehearsalMark.color = #red
 \override TextMark.color = #red
   }
   \context {
 \Voice
 \override Script.color = #red
   }
 }

 should get you sorted.

 Michael






Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Michael Werner
Hi Leo,

On Fri, Mar 24, 2023 at 7:59 PM Leo Correia de Verdier <
leo.correia.de.verd...@gmail.com> wrote:

> The problem with that solution is that it changes all Scripts, including
> all articulations.


A very good point. That's what I get for trying to do too many things at
the same time. :)


> I would suggest the somewhat hacky solution of redefining just the
> commands in case, like
>
> segno = \tweak color #red \segno
> coda = \tweak color #red \coda
>

Somewhat hacky perhaps, but effective and simple.


> But if something more elegant is required (for instance if there could be
> conflicting tweaks) there is a solution in this thread:
> https://lists.gnu.org/archive/html/lilypond-user/2021-09/msg00484.html


Now this is something I just might have to steal to put into the library of
code snippets I'm accumulating. Looks to be all kinds of useful. Thanks for
the pointer to that.

Michael


Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Leo Correia de Verdier
The problem with that solution is that it changes all Scripts, including all 
articulations. I would suggest the somewhat hacky solution of redefining just 
the commands in case, like 

segno = \tweak color #red \segno
coda = \tweak color #red \coda

But if something more elegant is required (for instance if there could be 
conflicting tweaks) there is a solution in this thread: 
https://lists.gnu.org/archive/html/lilypond-user/2021-09/msg00484.html

HTH
/Leo

> 25 mars 2023 kl. 00:35 skrev Michael Werner :
> 
> Hi Laurie,
> 
> On Fri, Mar 24, 2023 at 7:19 PM savage.laurie  wrote:
> I think the issue might be that I am using explicit \coda and \segno commands 
> and your example uses the new \repeat segno form which will be too complex in 
> the specific big band chart I'm editing. It's about 160 bars long with the 
> segno in bar 24 and the "to coda" symbol in bar 48 and three repeated 
> sections, I got lost in the nested braces when I tried the new structure. If 
> I was writing it from scratch rather than re-editing it would be simpler.
> 
> That is indeed the issue, as those marks are a different type. Just needs a 
> different override in a different context. Turns out that using the \coda and 
> \segno commands the symbols created are handled the same as articulations. 
> That means they fall into the somewhat more generic Script type, which is 
> handled in the Voice context. Therefor:
> 
> \layout {
>   \context {
> \Score
> \override CodaMark.color = #red
> \override SegnoMark.color = #red
> \override SectionLabel.color = #red
> \override SectionLabel.font-size = #3
> \override RehearsalMark.font-size = #3
> \override RehearsalMark.color = #red
> \override TextMark.color = #red
>   }
>   \context {
> \Voice
> \override Script.color = #red
>   }
> }
> 
> should get you sorted.
> 
> Michael




Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Michael Werner
Hi Laurie,

On Fri, Mar 24, 2023 at 7:19 PM savage.laurie 
wrote:

> I think the issue might be that I am using explicit \coda and \segno
> commands and your example uses the new \repeat segno form which will be too
> complex in the specific big band chart I'm editing. It's about 160 bars
> long with the segno in bar 24 and the "to coda" symbol in bar 48 and three
> repeated sections, I got lost in the nested braces when I tried the new
> structure. If I was writing it from scratch rather than re-editing it would
> be simpler.
>

That is indeed the issue, as those marks are a different type. Just needs a
different override in a different context. Turns out that using the \coda
and \segno commands the symbols created are handled the same as
articulations. That means they fall into the somewhat more generic Script
type, which is handled in the Voice context. Therefor:

\layout {
  \context {
\Score
\override CodaMark.color = #red
\override SegnoMark.color = #red
\override SectionLabel.color = #red
\override SectionLabel.font-size = #3
\override RehearsalMark.font-size = #3
\override RehearsalMark.color = #red
\override TextMark.color = #red
  }
  \context {
\Voice
\override Script.color = #red
  }
}

should get you sorted.

Michael


Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread savage.laurie
Thanks Michael,I think the issue might be that I am using explicit \coda and 
\segno commands and your example uses the new \repeat segno form which will be 
too complex in the specific big band chart I'm editing. It's about 160 bars 
long with the segno in bar 24 and the "to coda" symbol in bar 48 and three 
repeated sections, I got lost in the nested braces when I tried the new 
structure. If I was writing it from scratch rather than re-editing it would be 
simpler.ThanksLaurieSent from my Galaxy
 Original message From: Michael Werner  
Date: 25/3/23  2:44 am  (GMT+10:00) To: Laurie Savage  
Cc: Lilypond-User Mailing List  Subject: Re: Coda/Segno 
sign color override not working: LiliyPond 2.24.0 Hi Laurie,On Fri, Mar 24, 
2023 at 10:56 AM Laurie Savage  wrote:Hi,I put this in 
my layout block\context {      \Score      \override CodaMark.color = #red      
\override SegnoMark.color = #red      \override SectionLabel.color = #red      
\override SectionLabel.font-size = #3      \override RehearsalMark.font-size = 
#3      \override RehearsalMark.color = #red    }The result is large red 
rehearsal marks and large red section labels but black segno and coda signs.All 
I can figure is that something somewhere is a bit out of place. I double 
checked here, making sure to use the same version you mention (2.24.0) and it's 
working as expected. Specifically:\version "2.24.0"\language "english"\layout { 
 \context {    \Score    \override CodaMark.color = #red    \override 
SegnoMark.color = #red    \override SectionLabel.color = #red    \override 
SectionLabel.font-size = #3    \override RehearsalMark.font-size = #3    
\override RehearsalMark.color = #red  }}\new Score {  \new Staff {    \new 
Voice {      \fixed c' {        \mark \default        f1 f1        
\sectionLabel "A1"        f1 f1        \repeat segno 2 {          g1 g1         
 \alternative {            \volta 1 { \repeat unfold 4 { a2 } }            
\volta 2 \volta #'() {              \section              \sectionLabel "Coda"  
          }          }        }        b1        \fine      }    }  }}is 
producing:Could you post a small section of code showing how you're using 
everything?Michael


Re: spacing of invisible rests

2023-03-24 Thread William Rehwinkel via LilyPond user discussion

Dear Jaime,

Try using `\once \hideNotes r` and before that include

\once \override Rest.extra-spacing-width = #'(0 . 50)

Or another value, depending on how much space. As in the following example.

I'm having trouble figuring out exactly what you are looking for, could 
you hook up a minimum example of one such instance without the spacing, 
and describe how you would like space to be added?

-Will

\version "2.24.1"

{
  \once \override Rest.extra-spacing-width = #'(0 . 50)
  \once \hideNotes r1
}


On 3/24/23 18:31, Jaime Oliver wrote:

Hi William,

Indeed what I am after is a s4 that takes some space, I am currently 
solving it with


things like:

\once \hide Rest  r16 \once \hide Rest r16
\once \hide Rest  r16 \once \hide Rest r16

which will take some more space, but it is not ideal.

best,

Jaime

On Fri, Mar 24, 2023 at 6:03 PM William Rehwinkel 
mailto:will...@williamrehwinkel.net>> wrote:


Dear Jaime,

If you mean silent rests such as s4, s8 etc. I thought those do not
actually take up any space, and are analogous to using \skip for that
duration. As in the following example:

\version "2.24.1"

<<
    \new Staff {
      c'1 c'1
    }
    \new Staff {
      \repeat unfold 128 { s128 }
    }
  >>

As for how to make measures longer, I usually override the
NoteHead.extra-spacing-width (or same, for Rest) property to add more
horizontal space before or after a note, but I'm not sure that will be
the best option here.

-William

On 3/24/23 17:56, Jaime Oliver wrote:
 > Hi all,
 >
 > I am trying to control the amount of space that s events take on
each
 > bar so that I can make some bars longer. Is there a way I can
specify
 > this? Also, some bars which have values like R1 are also really
short,
 > how can I make those longer?
 >
 > In other words, is there a way to make bars visually longer even
if they
 > show empty space?
 >
 > I have tried things like the one below but have not had good results
 > \layout{
 >     \context {
 >          \Score
 >                    proportionalNotationDuration =
#(ly:make-moment 1/32)
 >                    \override SpacingSpanner.base-shortest-duration =
 > #(ly:make-moment 1/32)
 >                    \override SpacingSpanner.uniform-stretching = ##t
 >
 > I am also attaching a screenshot so you can see the kinds of
results I
 > am getting.
 >
 > All the best,
 >
 > Jaime
 >
 > image.png
 >

-- 
+ -- +

|    William Rehwinkel - Oberlin College and     |
|                           Conservatory '24     |
| will...@williamrehwinkel.net
          |
| PGP key:                                       |
| https://williamrehwinkel.net/static/pubkey.txt
 |
+ -- +



--
**
Jaime E Oliver LR
www.jaimeoliver.pe 



--
+ -- +
|William Rehwinkel - Oberlin College and |
|   Conservatory '24 |
|  will...@williamrehwinkel.net  |
| PGP key:   |
| https://williamrehwinkel.net/static/pubkey.txt |
+ -- +


OpenPGP_signature
Description: OpenPGP digital signature


Re: how to install in Linux

2023-03-24 Thread Knute Snortum
On Fri, Mar 24, 2023 at 2:47 PM William Rehwinkel via LilyPond user
discussion  wrote:

> Dear Dario,
>
> Personally, I think adding the `lilypond-2.24.1/bin` directory to $PATH
> is the best way to handle this, whether you placed lilypond-2.24.1 in
> the user's home directory or somewhere else.
>
> -William
>
> On 3/24/23 17:41, Dario Marrini wrote:
> > Hi lilypond people,
> > I'm using a LinuxMint 21.1 Linux OS distribution, it provides 2.22
> > Lilypond version, but in website I see there is 2.24 as last stable
> > version; I've downloaded it, no installer is provided, how could I
> > integrate the software in my system? is there a script or something else
> > that could automate the process, or must I link every executable in
> > /usr/bin or elsewhere, in any location 'touched' by my $PATH ?
>

There are no installation programs anymore since 2.24.  Lilypond stands on
its own and is self-contained.  There are, however, extensive instructions
for how to get LilyPond and Frescobaldi working in a GNU Linux system:

Here are the installation instructions for a GUI install:
https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-gnu_002flinux

And here are the same instructions, but from the command line:
https://lilypond.org/doc/v2.24/Documentation/learning/command-line-setup

--
Knute Snortum


Re: spacing of invisible rests

2023-03-24 Thread Jaime Oliver
Hi William,

Indeed what I am after is a s4 that takes some space, I am currently
solving it with

things like:

\once \hide Rest  r16 \once \hide Rest r16
\once \hide Rest  r16 \once \hide Rest r16

which will take some more space, but it is not ideal.

best,

Jaime

On Fri, Mar 24, 2023 at 6:03 PM William Rehwinkel <
will...@williamrehwinkel.net> wrote:

> Dear Jaime,
>
> If you mean silent rests such as s4, s8 etc. I thought those do not
> actually take up any space, and are analogous to using \skip for that
> duration. As in the following example:
>
> \version "2.24.1"
>
> <<
>\new Staff {
>  c'1 c'1
>}
>\new Staff {
>  \repeat unfold 128 { s128 }
>}
>  >>
>
> As for how to make measures longer, I usually override the
> NoteHead.extra-spacing-width (or same, for Rest) property to add more
> horizontal space before or after a note, but I'm not sure that will be
> the best option here.
>
> -William
>
> On 3/24/23 17:56, Jaime Oliver wrote:
> > Hi all,
> >
> > I am trying to control the amount of space that s events take on each
> > bar so that I can make some bars longer. Is there a way I can specify
> > this? Also, some bars which have values like R1 are also really short,
> > how can I make those longer?
> >
> > In other words, is there a way to make bars visually longer even if they
> > show empty space?
> >
> > I have tried things like the one below but have not had good results
> > \layout{
> > \context {
> >  \Score
> >proportionalNotationDuration = #(ly:make-moment 1/32)
> >\override SpacingSpanner.base-shortest-duration =
> > #(ly:make-moment 1/32)
> >\override SpacingSpanner.uniform-stretching = ##t
> >
> > I am also attaching a screenshot so you can see the kinds of results I
> > am getting.
> >
> > All the best,
> >
> > Jaime
> >
> > image.png
> >
>
> --
> + -- +
> |William Rehwinkel - Oberlin College and |
> |   Conservatory '24 |
> |  will...@williamrehwinkel.net  |
> | PGP key:   |
> | https://williamrehwinkel.net/static/pubkey.txt |
> + -- +
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe


Re: spacing of invisible rests

2023-03-24 Thread William Rehwinkel via LilyPond user discussion

Dear Jaime,

If you mean silent rests such as s4, s8 etc. I thought those do not 
actually take up any space, and are analogous to using \skip for that 
duration. As in the following example:


\version "2.24.1"

<<
  \new Staff {
c'1 c'1
  }
  \new Staff {
\repeat unfold 128 { s128 }
  }
>>

As for how to make measures longer, I usually override the 
NoteHead.extra-spacing-width (or same, for Rest) property to add more 
horizontal space before or after a note, but I'm not sure that will be 
the best option here.


-William

On 3/24/23 17:56, Jaime Oliver wrote:

Hi all,

I am trying to control the amount of space that s events take on each 
bar so that I can make some bars longer. Is there a way I can specify 
this? Also, some bars which have values like R1 are also really short, 
how can I make those longer?


In other words, is there a way to make bars visually longer even if they 
show empty space?


I have tried things like the one below but have not had good results
\layout{
    \context {
         \Score
                   proportionalNotationDuration = #(ly:make-moment 1/32)
                   \override SpacingSpanner.base-shortest-duration = 
#(ly:make-moment 1/32)

                   \override SpacingSpanner.uniform-stretching = ##t

I am also attaching a screenshot so you can see the kinds of results I 
am getting.


All the best,

Jaime

image.png



--
+ -- +
|William Rehwinkel - Oberlin College and |
|   Conservatory '24 |
|  will...@williamrehwinkel.net  |
| PGP key:   |
| https://williamrehwinkel.net/static/pubkey.txt |
+ -- +


OpenPGP_signature
Description: OpenPGP digital signature


spacing of invisible rests

2023-03-24 Thread Jaime Oliver
Hi all,

I am trying to control the amount of space that s events take on each bar
so that I can make some bars longer. Is there a way I can specify this?
Also, some bars which have values like R1 are also really short, how can I
make those longer?

In other words, is there a way to make bars visually longer even if they
show empty space?

I have tried things like the one below but have not had good results
\layout{
   \context {
\Score
  proportionalNotationDuration = #(ly:make-moment 1/32)
  \override SpacingSpanner.base-shortest-duration =
#(ly:make-moment 1/32)
  \override SpacingSpanner.uniform-stretching = ##t

I am also attaching a screenshot so you can see the kinds of results I am
getting.

All the best,

Jaime

[image: image.png]


Re: how to install in Linux

2023-03-24 Thread William Rehwinkel via LilyPond user discussion

Dear Dario,

Personally, I think adding the `lilypond-2.24.1/bin` directory to $PATH 
is the best way to handle this, whether you placed lilypond-2.24.1 in 
the user's home directory or somewhere else.


-William

On 3/24/23 17:41, Dario Marrini wrote:

Hi lilypond people,
I'm using a LinuxMint 21.1 Linux OS distribution, it provides 2.22 
Lilypond version, but in website I see there is 2.24 as last stable 
version; I've downloaded it, no installer is provided, how could I 
integrate the software in my system? is there a script or something else 
that could automate the process, or must I link every executable in 
/usr/bin or elsewhere, in any location 'touched' by my $PATH ?


regards

dario m.


--
+ -- +
|William Rehwinkel - Oberlin College and |
|   Conservatory '24 |
|  will...@williamrehwinkel.net  |
| PGP key:   |
| https://williamrehwinkel.net/static/pubkey.txt |
+ -- +


OpenPGP_signature
Description: OpenPGP digital signature


how to install in Linux

2023-03-24 Thread Dario Marrini
Hi lilypond people,
I'm using a LinuxMint 21.1 Linux OS distribution, it provides 2.22 Lilypond
version, but in website I see there is 2.24 as last stable version; I've
downloaded it, no installer is provided, how could I integrate the software
in my system? is there a script or something else that could automate the
process, or must I link every executable in /usr/bin or elsewhere, in any
location 'touched' by my $PATH ?

regards

dario m.


Re: [OT] help about some questions

2023-03-24 Thread Dario Marrini
thanks a lot to everyone

Il giorno ven 17 mar 2023 alle ore 04:44 Mike Blackstock <
blackstock.m...@gmail.com> ha scritto:

> re. Beethoven Piano Concerto no. 3
>
> It's been typeset with lilypond by Stelio Samelis. I muted the piano part
> in the midi, and
> converted it to mp3 as well. Double-click sound files to listen:
>
>
> https://scores.omet.ca/?path=user:/mike/Beethoven_Concerto_No3=Concerto_No3-let.pdf
>
> On Thu, 16 Mar 2023 at 06:10, Dario Marrini 
> wrote:
>
>> Hi lilypond friends,
>> I'd like to create an orchestral midi collection, for playing piano
>> concertos with a MIDI accompaniment.
>>
>> The first difficulty is transcribing orchestral scores, then, I wonder if
>> someone could suggest me a pdf2midi or pdf2score app or online service that
>> could help; at this moment I'd be interested in Prokofiev Piano Concerto n.
>> 1 and Beethoven Piano Concerto n. 3; I tried the online service of
>> MuseScore but I got a 'score not compatible' message (I'm using the
>> imslp.org score)
>>
>> Second difficulty will be getting an interactive mode about playing midi
>> orchestral score, even without thinking to a 'follow me' mode, listening to
>> audio solo part (I think it'd be very difficult to implement), I thought I
>> could create and additional track, with just a few notes to play, and then
>> finding a way to concatenate other midi events to those special notes, to
>> get a synchronous mode with solo part (played by human) and midi orchestral
>> part; even in this case (I'm not a such good code programmer) I have no
>> idea if it could be possible and how.
>>
>> I'm a pianist and piano teacher, this kind of solution could improve very
>> much the teaching level and the final piano and orchestra exam; indeed, it
>> could be a development idea, creating a web site to offer this service
>>
>> Hoping this idea could be interesting for someone, I wait for your help
>> or even thoughts
>>
>> regards
>>
>> dario m.
>>
>
>
> --
> https://blackstock.media
>


Re: Coda/Segno sign color override not working: LiliyPond 2.24.0

2023-03-24 Thread Michael Werner
Hi Laurie,

On Fri, Mar 24, 2023 at 10:56 AM Laurie Savage 
wrote:

> Hi,
>
> I put this in my layout block
>
> \context {
>   \Score
>   \override CodaMark.color = #red
>   \override SegnoMark.color = #red
>   \override SectionLabel.color = #red
>   \override SectionLabel.font-size = #3
>   \override RehearsalMark.font-size = #3
>   \override RehearsalMark.color = #red
> }
>
> The result is large red rehearsal marks and large red section labels but
> black segno and coda signs.
>

All I can figure is that something somewhere is a bit out of place. I
double checked here, making sure to use the same version you mention
(2.24.0) and it's working as expected. Specifically:

\version "2.24.0"
\language "english"

\layout {
  \context {
\Score
\override CodaMark.color = #red
\override SegnoMark.color = #red
\override SectionLabel.color = #red
\override SectionLabel.font-size = #3
\override RehearsalMark.font-size = #3
\override RehearsalMark.color = #red
  }
}

\new Score {
  \new Staff {
\new Voice {
  \fixed c' {
\mark \default
f1 f1
\sectionLabel "A1"
f1 f1
\repeat segno 2 {
  g1 g1
  \alternative {
\volta 1 { \repeat unfold 4 { a2 } }
\volta 2 \volta #'() {
  \section
  \sectionLabel "Coda"
}
  }
}
b1
\fine
  }
}
  }
}

is producing:

[image: image.png]

Could you post a small section of code showing how you're using everything?

Michael

>