Re: Graphical markup between objects?

2024-05-28 Thread Werner LEMBERG


> > Before you go create something yourself, have you looked at what
> > LilyPond supports [1]?  There are built-in options to change the
> > style of the FingerGlideSpanner.  Your "V"-bend shape probably
> > could be added as a new style.
>
> This is exactly what I was looking for! I was unaware that this
> existed; I would have never thought to look for glide.

It seems we have a documentation buglet in the Notation Reference.
Can you suggest one or more index entries that would have helped you
find the proper place in the manual?


Werner



Re: Graphical markup between objects?

2024-05-28 Thread Fennel
Ooh ooh ooh!

This is exactly what I was looking for! I was unaware that this existed; I 
would have never thought to look for glide.

Thank you

-fennel



Re: Graphical markup between objects?

2024-05-28 Thread Aaron Hill

On 2024-05-28 10:43 am, Fennel wrote:

I would like to draw lines between fingerings to indicate shifts,
pivots, etc. on an unfretted string instrument.

Say I have something like the following:

\version "2.24.3"
\relative c' {
c4-1 d-2
}



Before you go create something yourself, have you looked at what 
LilyPond supports [1]?  There are built-in options to change the style 
of the FingerGlideSpanner.  Your "V"-bend shape probably could be added 
as a new style.



[1]: 
https://lilypond.org/doc/v2.25/Documentation/notation/gliding-fingers



-- Aaron Hill



Re: Graphical markup between objects?

2024-05-28 Thread Fennel
Hi Kieren,

Yes, this is a good start! I’d like the fingerings to be engraved as they would 
if they were actual fingering objects. For example, the desired result for the 
following snippet would ideally look like below:

\version "2.24.3"
\relative c' {
 c-1 d''-2
}

[image.png]
instead of being displayed purely horizontally as a TextSpanner would.

-fennel

​
On Tuesday, May 28th, 2024 at 2:35 PM, Kieren MacMillan 
kie...@kierenmacmillan.info wrote:

> Hi Fennel,
>
>> I would like to draw lines between fingerings to indicate shifts, pivots, 
>> etc. on an unfretted string instrument.
>> Say I have something like the following:
>> \version "2.24.3"
>> \relative c' {
>> c4-1 d-2
>> }
>>
>> I would like to produce something similar to the following:
>> 
>> I know that this is achievable using markup and \draw-line as specified 
>> here, but as changes are made to my project and the spacing between notes 
>> changes, I’d have to go back and manually tweak all of the coordinates for 
>> all of the lines in the project, and there will be quite a few.
>
> Maybe this will point you in the right direction?
>
> %%% SNIPPET BEGINS
> \version "2.25.11"
>
> oneTotwo = \relative c' {
> \once \override TextSpanner.style = #'line
> \once \override TextSpanner.thickness = #2
> \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
> \once \override TextSpanner.bound-details.right.stencil-align-dir-y = #CENTER
> \once \override TextSpanner.bound-details.left.text = \markup \fontsize #-3 
> \concat { \number "1" \hspace #0.2 }
> \once \override TextSpanner.bound-details.right.text = \markup \fontsize #-3 
> \concat { \hspace #0.2 \number "2" }
> c4\startTextSpan d\stopTextSpan
> }
>
> \score { \oneTotwo }
>
> \score {
> \oneTotwo
> \layout { ragged-right = ##f }
> }
> %%% SNIPPET ENDS
>
> You’d probably want to build a music function to wrap all that stuff so you’d 
> just have to write
>
> \fingspan #'(1 2)
>
> or some such thing.
>
> Hope that helps!
> Kieren.
> __
>
> My work day may look different than your work day. Please do not feel 
> obligated to read or respond to this email outside of your normal working 
> hours.

Re: Graphical markup between objects?

2024-05-28 Thread Kieren MacMillan
Hi Fennel,

> I would like to draw lines between fingerings to indicate shifts, pivots, 
> etc. on an unfretted string instrument.
> Say I have something like the following:
> \version "2.24.3"
> \relative c' {
> c4-1 d-2
> }
> 
> I would like to produce something similar to the following:
> 
> I know that this is achievable using markup and \draw-line as specified here, 
> but as changes are made to my project and the spacing between notes changes, 
> I’d have to go back and manually tweak all of the coordinates for all of the 
> lines in the project, and there will be quite a few.

Maybe this will point you in the right direction?

%%%  SNIPPET BEGINS
\version "2.25.11"

oneTotwo = \relative c' {
\once \override TextSpanner.style = #'line
\once \override TextSpanner.thickness = #2
\once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
\once \override TextSpanner.bound-details.right.stencil-align-dir-y = 
#CENTER
\once \override TextSpanner.bound-details.left.text = \markup \fontsize #-3 
\concat { \number "1" \hspace #0.2 }
\once \override TextSpanner.bound-details.right.text = \markup \fontsize 
#-3 \concat { \hspace #0.2 \number "2" }
c4\startTextSpan d\stopTextSpan
}

\score { \oneTotwo }

\score {
  \oneTotwo
  \layout { ragged-right = ##f }
}
%%%  SNIPPET ENDS

You’d probably want to build a music function to wrap all that stuff so you’d 
just have to write

   \fingspan #'(1 2)

or some such thing.

Hope that helps!
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Graphical markup between objects?

2024-05-28 Thread Fennel
I would like to draw lines between fingerings to indicate shifts, pivots, etc. 
on an unfretted string instrument.

Say I have something like the following:

\version "2.24.3"
\relative c' {
c4-1 d-2
}

I would like to produce something similar to the following:
[image.png]
I know that this is achievable using markup and \draw-line as specified 
[here](https://lilypond.org/doc/v2.23/Documentation/notation/graphic), but as 
changes are made to my project and the spacing between notes changes, I’d have 
to go back and manually tweak all of the coordinates for all of the lines in 
the project, and there will be quite a few. I also need notation like this:

[image.png]
indicating a “fork”, or the use of two different fingers across strings at the 
same “fret”. Is attaching lines like this a supported feature at the moment, 
and if not, does anyone have any ideas on what writing scripts to support this 
behavior would look like?

-fennel

​

Re: acciaccatura on lieder set

2024-05-28 Thread Owen Le Blanc
On May 28, 2024, at 3:16 AM, David Kastrup  wrote:
> 
> The day will come when this will get smited.

There are in fact a few other issues that sometimes happen in
connection with this bug: besides spacing, besides the problem with
clefs and key signatures when a change is taking place, there are
times when, for example,
 \appoggiatura { b''32( c cis }
which normally produces three notes beamed, makes three independent
notes, which require a manual beam.  Not all these issues are solved
by adding empty grace constructs in the other voices.  The problem is,
examples are usually quite large, and therefore unsuitable for
submission as bugs.
 Yours,
 -- Owen
Dr O V Le Blanc



Re: acciaccatura on lieder set

2024-05-28 Thread Kieren MacMillan
On May 28, 2024, at 3:16 AM, David Kastrup  wrote:
> 
> The day will come when this will get smited.

I dunno… maybe we should bronze it instead?
I mean, you gotta admire the tenacity.
— Kieren
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: acciaccatura on lieder set

2024-05-28 Thread David Kastrup
Stephan Schöll  writes:

> Try adding a grace spacer in the melody at the moment of the
> acciaccaturas in the piano:
>
>     \new Voice \relative c' {
>   \global
>   \grace s8 g'2. |
>     }



The day will come when this will get smited.

-- 
David Kastrup



Re: acciaccatura on lieder set

2024-05-28 Thread Robert Garrigos
thanks, Stephan, that fixes the problem

Robert

> El 28 maig 2024, a les 8:53, Stephan Schöll  va escriure:
> 
> Try adding a grace spacer in the melody at the moment of the
> acciaccaturas in the piano:
> 
> \new Voice \relative c' {
>   \global
>   \grace s8 g'2. |
> }
> 
> Am 28.05.2024 um 08:43 schrieb Robert Garrigos:
>> Could someone tell me what I am doing wrong with this lieder set? When using 
>> acciaccatura in the beginning, I’m getting wrong ouput:
>> 
>> this code:
>> 
>> global = {
>>   \key g \major
>>   \time 3/4
>> }
>> 
>> \score {
>>   <<
>> \new Voice \relative c' {
>>   \global
>>   g'2.
>> }
>> \new Lyrics \lyricmode{
>>   a
>> }
>> \new PianoStaff
>> <<
>>   \new Staff  \relative c' {
>> \global
>> % | \override Flag.stroke-style = #"grace" cs8(  2.
>> % | 2.
>> | \acciaccatura cs8  2.
>>   }
>>   \new Staff  \relative c' {
>> \global
>> % | \override Flag.stroke-style = #"grace" cs8(  2.
>> % | 2.
>> | \acciaccatura cs8  2.
>>   }
>> >>
>>   >>
>> }
>> 
>> gives me:
>> 
>> 
>> whenever I take the acciaccatura out or substitute it with the  \override 
>> Flag.stroke-style = #”grace”, the output is ok. Also, deleting the voice and 
>> lyric lines, the output is ok. What’s wrong with my first code?
>> 
>> thanks.
>> 
>> Robert




Re: acciaccatura on lieder set

2024-05-28 Thread Stephan Schöll

Try adding a grace spacer in the melody at the moment of the
acciaccaturas in the piano:

    \new Voice \relative c' {
  \global
  \grace s8 g'2. |
    }

Am 28.05.2024 um 08:43 schrieb Robert Garrigos:

Could someone tell me what I am doing wrong with this lieder set? When using 
acciaccatura in the beginning, I’m getting wrong ouput:

this code:

global = {
   \key g \major
   \time 3/4
}

\score {
   <<
 \new Voice \relative c' {
   \global
   g'2.
 }
 \new Lyrics \lyricmode{
   a
 }
 \new PianoStaff
 <<
   \new Staff  \relative c' {
 \global
 % | \override Flag.stroke-style = #"grace" cs8(  2.
 % | 2.
 | \acciaccatura cs8  2.
   }
   \new Staff  \relative c' {
 \global
 % | \override Flag.stroke-style = #"grace" cs8(  2.
 % | 2.
 | \acciaccatura cs8  2.
   }
 >>
   >>
}

gives me:


whenever I take the acciaccatura out or substitute it with the  \override 
Flag.stroke-style = #”grace”, the output is ok. Also, deleting the voice and 
lyric lines, the output is ok. What’s wrong with my first code?

thanks.

Robert




acciaccatura on lieder set

2024-05-28 Thread Robert Garrigos
Could someone tell me what I am doing wrong with this lieder set? When using 
acciaccatura in the beginning, I’m getting wrong ouput:

this code:

global = {
  \key g \major
  \time 3/4
}

\score {
  <<
\new Voice \relative c' {
  \global
  g'2.
}
\new Lyrics \lyricmode{
  a
}
\new PianoStaff 
<<
  \new Staff  \relative c' {
\global
% | \override Flag.stroke-style = #"grace" cs8(  2.
% | 2.
| \acciaccatura cs8  2.
  }
  \new Staff  \relative c' {
\global
% | \override Flag.stroke-style = #"grace" cs8(  2.
% | 2.
| \acciaccatura cs8  2.
  }
>>
  >>
}

gives me:


whenever I take the acciaccatura out or substitute it with the  \override 
Flag.stroke-style = #”grace”, the output is ok. Also, deleting the voice and 
lyric lines, the output is ok. What’s wrong with my first code?

thanks.

Robert

Re: Distinguishing semibreve and minim rests without a staff

2024-05-28 Thread David Kastrup
Cameron Horsburgh  writes:

> Hi folks,
>
> I'm writing a resource for beginner musicians, and many of the early
> exercises I'm writing don't use staff lines (Lilypond's 'easy play' feature
> is very useful here!)
>
> One problem I have--it's very difficult to distinguish minim/half-note
> rests from semibreve/full-note rests, because they're essentially the same
> glyph but situated either above or below a staff line. When displaying
> these symbols without a staff it's fairly common to add a short line at the
> appropriate place on the glyph so the type of rest can easily be
> determined. I can't think of any straightforward way to do this in LilyPond
> though.
>
> Has anyone else found a way around this problem?

I can't think of any straightforward way _not_ to do this in LilyPond.

All of

\new Staff \with { \override StaffSymbol.line-count = 0 }
{ r1 r2 r2 }

\markup { \rest { 1 } \hspace #1 \rest { 2 } }

shows clearly distinguishable rest glyphs with the respective stubs.
What did you try that _didn't_ show the line stubs?

-- 
David Kastrup