Re: using snippets

2022-09-09 Thread Matthew Pierce
"Re-positioning note heads on the other side of the stem."

But if you could show me instead how to slur from one polyphonic voice to 
another within the same staff, my stated problem would go away. 8-)

(replying to all this time)



From: lilypond-user  on 
behalf of Andrew Bernard 
Sent: Friday, September 9, 2022 9:30 PM
To: lilypond-user@gnu.org 
Subject: Re: using snippets

You replied to me but please reply to the list so others can help.

As to slurs and ties between different voices it cannot be done in
Lilypond presently, unfortunate to relate. It's my most desired
functionality. Apparently this is very difficult to achieve in the code
architecture. There was an attempt one on GSoC but it did not succeed.I
think it's going to be a long time coming. The workaround is to mess
around with extra notes made invisible where you can.


Andrew




Re: using snippets

2022-09-09 Thread Andrew Bernard

You replied to me but please reply to the list so others can help.

As to slurs and ties between different voices it cannot be done in 
Lilypond presently, unfortunate to relate. It's my most desired 
functionality. Apparently this is very difficult to achieve in the code 
architecture. There was an attempt one on GSoC but it did not succeed.I 
think it's going to be a long time coming. The workaround is to mess 
around with extra notes made invisible where you can.



Andrew




Re: using snippets

2022-09-09 Thread Andrew Bernard

That is a mailto link.


Can you point to what you are wanting?


Andrew


On 10/09/2022 11:57 am, Matthew Pierce wrote:

I have found a snippet function I would like to try,

lilypond-user@gnu.org

But I have no idea how to access the code. Any guidance would be 
gratefully accepted.

using snippets

2022-09-09 Thread Matthew Pierce
I have found a snippet function I would like to try,

lilypond-user@gnu.org

But I have no idea how to access the code. Any guidance would be gratefully 
accepted.


Re: Moving fingering, spacing between staves

2022-09-09 Thread Knute Snortum
On Fri, Sep 9, 2022 at 8:04 AM David Wright  wrote:
>
> On Fri 09 Sep 2022 at 10:38:24 (+0200), Jean Abou Samra wrote:
> > Le 07/09/2022 à 01:00, Knute Snortum a écrit :
> > > In order to avoid the AB problem,
> >
> > What do you call by "AB problem"?
>
> https://en.wikipedia.org/wiki/XY_problem
>
> > > what I'm trying to do is move some
> > > fingering down in the system, but the problem I run into is I get too
> > > much space between staves.
>
> A tyro would have asked how to close up the staves
> and cause a timewasting discussion, before eventually
> revealing the real cause of the problem: that they'd
> moved the fingering in an inappropriate manner.
>
> Cheers,
> David.

Jean: thank you very much for a solution to my problem, and the explanation.

David and Andrew: Yes, the XY problem (or question) is what I meant.
I started the email as "how do I get the staves to be closer
together," then realized this was the wrong question.



Re: Moving fingering, spacing between staves

2022-09-09 Thread David Wright
On Fri 09 Sep 2022 at 10:38:24 (+0200), Jean Abou Samra wrote:
> Le 07/09/2022 à 01:00, Knute Snortum a écrit :
> > In order to avoid the AB problem,
> 
> What do you call by "AB problem"?

https://en.wikipedia.org/wiki/XY_problem

> > what I'm trying to do is move some
> > fingering down in the system, but the problem I run into is I get too
> > much space between staves.

A tyro would have asked how to close up the staves
and cause a timewasting discussion, before eventually
revealing the real cause of the problem: that they'd
moved the fingering in an inappropriate manner.

Cheers,
David.



Re: issues with installing Lilypond

2022-09-09 Thread Jean Abou Samra

Hi,

Please keep the list in copy so that everyone can participate and 
benefit from the answers.


Le 09/09/2022 à 15:49, Cluanie Fraser a écrit :


Hi Jean,

Thanks for responding, when I download the file it comes up in my 
downloads as Unconfirmed 97595, it’s a CRDOWNLOAD file.


It tries to open it with Notebook, not sure if this is right or not.




I don't know Windows, but judging from this page
https://www.majorgeeks.com/content/page/crdownload_file.html
it looks like you have tried to open the file before the download was 
complete.


Best,
Jean




Re: issues with installing Lilypond

2022-09-09 Thread Jean Abou Samra

Le 09/09/2022 à 13:21, Cluanie Fraser a écrit :


Hi,

I’m struggling to download lilypond and wondering if it’s supported on 
Windows 11?


When I download the Lilypond file it opens as a huge encrypted text 
file on Notepad.


Some help would be great




Yes, LilyPond is supported on Windows 11. It's strange that you get
this. How are you opening the file? Normally, once it's in your
downloads folder, just double-clicking on it in the file explorer
should run an installer (at least for version 2.22, as can be
downloaded from https://lilypond.org/windows.html).

Best,
Jean




issues with installing Lilypond

2022-09-09 Thread Cluanie Fraser
Hi,
I’m struggling to download lilypond and wondering if it’s supported on Windows 
11?

When I download the Lilypond file it opens as a huge encrypted text file on 
Notepad.

Some help would be great
Cheers

Sent from Mail for Windows



Re: Moving fingering, spacing between staves

2022-09-09 Thread Andrew Bernard

He may mean the XY question! :-) [I am also wondering...]

Andrew


On 9/09/2022 6:38 pm, Jean Abou Samra wrote:

Hi,

Le 07/09/2022 à 01:00, Knute Snortum a écrit :

In order to avoid the AB problem,



What do you call by "AB problem"?





Re: Moving fingering, spacing between staves

2022-09-09 Thread Jean Abou Samra

Hi,

Le 07/09/2022 à 01:00, Knute Snortum a écrit :

In order to avoid the AB problem,



What do you call by "AB problem"?



what I'm trying to do is move some
fingering down in the system, but the problem I run into is I get too
much space between staves.

Here is a MWE:

[...]

I've attached a screenshot of what that looks like.  The problem is
there is too much space between the fingering and the markup, and this
may be because I'm not moving the fingering in the correct way.  The
X-offset works fine, but I couldn't get negative numbers to work with
Y-offset, so I tried Y-extent.  Unfortunately, I don't exactly
understand what the pair of numbers means.  It has something to do
with size, but it appears to act chaotically sometimes.  The manual
only says, "Extent (size) in the Y direction, measured in staff-space
units, relative to object’s reference point" but this doesn't tell me
what the two numbers stand for.

I'm hoping someone can explain the "extent" properties to me and help
me move the fingering without the extra space between staves.





To visualize what Y-extent does, you can compile this:


\version "2.23.13"

moveFingerB = {
  \override Fingering.X-offset = -0.5
  \override Fingering.Y-extent = #'(2 . 3)
  \override Fingering.stencil =
    #(grob-transformer
  'stencil
  (lambda (grob orig)
    (ly:stencil-add
 orig
 (stencil-with-color
  (make-filled-box-stencil
   (ly:stencil-extent orig X)
   (ly:grob-extent grob grob Y))
  "red"
  % \override Fingering.Y-offset = -1
}
revertFinger = {
  \revert Fingering.X-offset
  \revert Fingering.Y-extent
  \revert Fingering.stencil
  % \revert Fingering.Y-offset
}

rightHand = \relative {
  \oneVoice
  c''4 c c c |
}

leftHand = \relative {
  \clef bass
  \voiceThree
  \moveFingerB a8-3-1 \revertFinger f-2 a4 a a |
}

dynamics = {
  s1-\markup \large \italic "leggiero" |
}

\score {
  \new PianoStaff <<
    \new Staff \rightHand
    \new Dynamics \dynamics
    \new Staff \leftHand
  >>
}




An object is placed at the point defined by its Y-offset, and its
Y-extent represents the object's dimensions relative to Y-extent.
You are telling LilyPond that the objects are in different places
than where they actually are, which is why you get space between
the staves. You can also see in Frescobaldi that when you modify
Y-extent this way point-and-click is triggered by clicking on the
fake location of the object. So, Y-extent is not the right way
to move things around.

You could use \tweak Y-offset (\override does not work for technical
reasons, and you need different values for the Y-offsets of the two
fingerings anyway).

\version "2.23.12"

moveFinger = {
  \temporary \override Fingering.X-offset = -0.5
}

revertFinger = \undo \moveFinger

rightHand = \relative {
  \oneVoice
  c''4 c c c |
}

leftHand = \relative {
  \clef bass
  \voiceThree
  \moveFinger a8\tweak Y-offset 3 -3 \tweak Y-offset 4.5 -1 
\revertFinger f-2 a4 a a |

}

dynamics = {
  s1-\markup \large \italic "leggiero" |
}

\score {
  \new PianoStaff <<
    \new Staff \rightHand
    \new Dynamics \dynamics
    \new Staff \leftHand
  >>
}


Or you could do something much simpler, since LilyPond already has a setting
for what you seem to want to achieve:


\version "2.23.12"

moveFinger = {
  \temporary \override Fingering.X-offset = -0.5
  \temporary \override Fingering.add-stem-support = ##f
}

revertFinger = \undo \moveFinger

rightHand = \relative {
  \oneVoice
  c''4 c c c |
}

leftHand = \relative {
  \clef bass
  \voiceThree
  \moveFinger a8-3-1 \revertFinger f-2 a4 a a |
}

dynamics = {
  s1-\markup \large \italic "leggiero" |
}

\score {
  \new PianoStaff <<
    \new Staff \rightHand
    \new Dynamics \dynamics
    \new Staff \leftHand
  >>
}



Best,
Jean




Re: Suppress end-of-line key signature change

2022-09-09 Thread Mark Probert
Thank you!

I missed that section of the documentation in my travels, so another thank
you!

 .. m.

On Fri, Sep 9, 2022 at 4:30 PM Xavier Scheuer  wrote:

> On Fri, 9 Sept 2022 at 03:35, Mark Probert  wrote:
> >
> >
> > Hi.
> >
> > By default LP will add the new key signature to the end of a line if the
> next line has a key signature change (as per this example). Is there an
> easy way to suppress this behaviour? For pedagogic exercises like these
> scales it is not really needed
>
> Hello,
>
> \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
>
> The explanation for this is actually documented in NR 5.4.7 Visibility of
> objects > Special considerations
>
> https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objectsl#special-considerations
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer 
>
>

-- 
-mark.


Re: Suppress end-of-line key signature change

2022-09-09 Thread Mark Probert
Hi, Jean.

I was unclear in my writing. The exercise is a Circle of Fourths/Fifths
thing that cycles through each key. There are multiple exercises for major,
minor, etc.. Suppressing the signature works the way I want it to :-)

 ..m.

On Fri, Sep 9, 2022 at 5:54 PM Jean Abou Samra  wrote:

>
>
> Le 09/09/2022 à 08:30, Xavier Scheuer a écrit :
> > On Fri, 9 Sept 2022 at 03:35, Mark Probert  wrote:
> > >
> > >
> > > Hi.
> > >
> > > By default LP will add the new key signature to the end of a line if
> > the next line has a key signature change (as per this example). Is
> > there an easy way to suppress this behaviour? For pedagogic exercises
> > like these scales it is not really needed
> >
> > Hello,
> >
> > \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
> >
> > The explanation for this is actually documented in NR 5.4.7 Visibility
> > of objects > Special considerations
> >
> https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objectsl#special-considerations
>
>
> Xavier's answer is correct. That said, if you are creating separate
> exercises,
> consider creating different score blocks for them rather than overriding
> the
> formatting.
>
> Best,
> Jean
>
>
>

-- 
-mark.


Re: Suppress end-of-line key signature change

2022-09-09 Thread Jean Abou Samra




Le 09/09/2022 à 08:30, Xavier Scheuer a écrit :

On Fri, 9 Sept 2022 at 03:35, Mark Probert  wrote:
>
>
> Hi.
>
> By default LP will add the new key signature to the end of a line if 
the next line has a key signature change (as per this example). Is 
there an easy way to suppress this behaviour? For pedagogic exercises 
like these scales it is not really needed


Hello,

\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible

The explanation for this is actually documented in NR 5.4.7 Visibility 
of objects > Special considerations

https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objectsl#special-considerations



Xavier's answer is correct. That said, if you are creating separate 
exercises,

consider creating different score blocks for them rather than overriding the
formatting.

Best,
Jean





Re: Suppress end-of-line key signature change

2022-09-09 Thread Xavier Scheuer
On Fri, 9 Sept 2022 at 03:35, Mark Probert  wrote:
>
>
> Hi.
>
> By default LP will add the new key signature to the end of a line if the
next line has a key signature change (as per this example). Is there an
easy way to suppress this behaviour? For pedagogic exercises like these
scales it is not really needed

Hello,

\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible

The explanation for this is actually documented in NR 5.4.7 Visibility of
objects > Special considerations
https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objectsl#special-considerations

Cheers,
Xavier

-- 
Xavier Scheuer