Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-05 Thread Federico Bruni



Il giorno ven 4 mag 2018 alle 12:16, Aaron Hill 
 ha scritto:

On 2018-05-04 05:19, Federico Bruni wrote:
Perhaps a smart function may be created but as I need only 4 
variations I can simply use 4 variables:


unoT = \markup \concat { \finger 1 \fontsize #-2.5 \raise #0.03 
\bold t }
dueT = \markup \concat { \finger 2 \fontsize #-2.5 \raise #0.03 
\bold t }
treT = \markup \concat { \finger 3 \fontsize #-2.5 \raise #0.03 
\bold t }
quattroT = \markup \concat { \finger 4 \fontsize #-2.5 \raise #0.03 
\bold t }




The downside of this approach is that it creates TextScript objects,
so in case a score (as in my real project) is using some padding for
TextScript objects then the custom fingering will be placed away from
the note.

[ . . . ]

However I wonder if a better fallback could be provided when using a
letter with \finger.
As Feta numbers look as bold serif fonts, shouldn't the t in `\finger
"3t"` fall back to serif instead of sans?


Federico,

This approach here seems to generate Fingering objects, not 
TextScript objects:


%%%
\version "2.19.80"
tenutoFingeringMark = \markup \text \fontsize #2 \bold "t"
t = #(define-event-function (n) (index?)
  #{ \finger \markup \concat { #(format "~d" n) \tenutoFingeringMark 
} #})

{
  \override Staff.Fingering.color = #green
  \override Staff.TextScript.color = #red
  c\t1 d_\t2 e2^\markup Text
}
%%%

This uses the \text markup command, which by default seems to select 
a font with serifs.  You can obviously adjust \tenutoFingeringMark 
however you need to get the desired appearance.




This is just perfect, thank you!



Even if I was able to change David's function to use a markup for the
t, then the problem would remain: the number would be aligned
correctly but the t would not.


I am afraid I am not familiar with this particular notation to know 
what is expected, but the example I posted seems visually balanced to 
my eye.  What specific alignment are you desiring for these fingering 
marks?




It should behave as a regular fingering. It's good that your code keeps 
it "semantically" correct (i.e. a fingering object instead of text 
script), as layout decisions will be consistent.


I will propose your example for the LSR.

Here's the definition of a manual in italian I have:

Held note (example: 3t): keep pressing your finger on the fret also 
after the actual duration of the note.


It's usually indicated to facilitate next position of the fingers.
So it's more a fingering suggestion than an articulation.





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-04 Thread Aaron Hill

On 2018-05-04 05:19, Federico Bruni wrote:
Perhaps a smart function may be created but as I need only 4 
variations I can simply use 4 variables:


unoT = \markup \concat { \finger 1 \fontsize #-2.5 \raise #0.03 \bold 
t }
dueT = \markup \concat { \finger 2 \fontsize #-2.5 \raise #0.03 \bold 
t }
treT = \markup \concat { \finger 3 \fontsize #-2.5 \raise #0.03 \bold 
t }
quattroT = \markup \concat { \finger 4 \fontsize #-2.5 \raise #0.03 
\bold t }




The downside of this approach is that it creates TextScript objects,
so in case a score (as in my real project) is using some padding for
TextScript objects then the custom fingering will be placed away from
the note.

[ . . . ]

However I wonder if a better fallback could be provided when using a
letter with \finger.
As Feta numbers look as bold serif fonts, shouldn't the t in `\finger
"3t"` fall back to serif instead of sans?


Federico,

This approach here seems to generate Fingering objects, not TextScript 
objects:


%%%
\version "2.19.80"
tenutoFingeringMark = \markup \text \fontsize #2 \bold "t"
t = #(define-event-function (n) (index?)
  #{ \finger \markup \concat { #(format "~d" n) \tenutoFingeringMark } 
#})

{
  \override Staff.Fingering.color = #green
  \override Staff.TextScript.color = #red
  c\t1 d_\t2 e2^\markup Text
}
%%%

This uses the \text markup command, which by default seems to select a 
font with serifs.  You can obviously adjust \tenutoFingeringMark however 
you need to get the desired appearance.



Even if I was able to change David's function to use a markup for the
t, then the problem would remain: the number would be aligned
correctly but the t would not.


I am afraid I am not familiar with this particular notation to know what 
is expected, but the example I posted seems visually balanced to my eye. 
 What specific alignment are you desiring for these fingering marks?


-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread Federico Bruni



Il giorno ven 4 mag 2018 alle 6:54, Federico Bruni  
ha scritto:



Il giorno gio 3 mag 2018 alle 9:47, Torsten 
=?iso-8859-1?q?H=E4mmerle?= <"torsten.haemmerle"@web.de> ha scritto:

Hi all,

And the remaining problem of \finger in this case is that \finger 
(just as

\number) uses the Feta numbers from the Emmentaler notation font.
As this font does not contain the letter "t", the t will be taken 
from a

replacement font (in this case some sans serif font).

The best out-of-the-box solution I can think of is using bold t with 
a

matching font size and slightly adjusted baseline, as in:

\markup \concat { \finger 3 \fontsize #-3 \raise #0.03 \bold t }






Thanks, this is exactly what I want.

Perhaps a smart function may be created but as I need only 4 
variations I can simply use 4 variables:


unoT = \markup \concat { \finger 1 \fontsize #-2.5 \raise #0.03 \bold 
t }
dueT = \markup \concat { \finger 2 \fontsize #-2.5 \raise #0.03 \bold 
t }
treT = \markup \concat { \finger 3 \fontsize #-2.5 \raise #0.03 \bold 
t }
quattroT = \markup \concat { \finger 4 \fontsize #-2.5 \raise #0.03 
\bold t }




The downside of this approach is that it creates TextScript objects, so 
in case a score (as in my real project) is using some padding for 
TextScript objects then the custom fingering will be placed away from 
the note.


Even if I was able to change David's function to use a markup for the 
t, then the problem would remain: the number would be aligned correctly 
but the t would not.
The obvious solution is overriding the TextScript padding when using 
these markup commands.


However I wonder if a better fallback could be provided when using a 
letter with \finger.
As Feta numbers look as bold serif fonts, shouldn't the t in `\finger 
"3t"` fall back to serif instead of sans?





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread Federico Bruni



Il giorno gio 3 mag 2018 alle 9:47, Torsten =?iso-8859-1?q?H=E4mmerle?= 
<"torsten.haemmerle"@web.de> ha scritto:

Hi all,

And the remaining problem of \finger in this case is that \finger 
(just as

\number) uses the Feta numbers from the Emmentaler notation font.
As this font does not contain the letter "t", the t will be taken 
from a

replacement font (in this case some sans serif font).

The best out-of-the-box solution I can think of is using bold t with a
matching font size and slightly adjusted baseline, as in:

\markup \concat { \finger 3 \fontsize #-3 \raise #0.03 \bold t }






Thanks, this is exactly what I want.

Perhaps a smart function may be created but as I need only 4 variations 
I can simply use 4 variables:


unoT = \markup \concat { \finger 1 \fontsize #-2.5 \raise #0.03 \bold t 
}
dueT = \markup \concat { \finger 2 \fontsize #-2.5 \raise #0.03 \bold t 
}
treT = \markup \concat { \finger 3 \fontsize #-2.5 \raise #0.03 \bold t 
}
quattroT = \markup \concat { \finger 4 \fontsize #-2.5 \raise #0.03 
\bold t }






___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread David Kastrup
Federico Bruni  writes:

> Il giorno mer 2 mag 2018 alle 8:49, Gianmaria Lari
>  ha scritto:

>>
>> Not sure that this is what you want, but what about
>>
>>>  \version "2.19.81"
>>> { a\finger "3t"}
>>
>> ?
>
> Well, this produces the same output of David's function.

Darn.  I was not aware that there is \finger command that would also
take a markup.  That makes for a much better starting point than my
proposal.

Which is probably why I wrote it.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread David Kastrup
Federico Bruni  writes:

> Il giorno mer 2 mag 2018 alle 8:56, David Kastrup  ha
> scritto:
>> Federico Bruni  writes:
>>
>>>  Hi all
>>>
>>>  How can I create custom fingerings which are made of a number and a
>>>  letter?
>>>  I want to display 3t, 2t, etc.
>>>
>>>  I found this snippet in the LSR:
>>>  http://lsr.di.unimi.it/LSR/Item?id=83
>>>
>>>  but it allows to use only one character.
>>>
>>>  Thanks in advance
>>>  Federico
>>
>> Something like this?
>>
>> \version "2.19.81"
>>
>> t =
>> #(define-event-function (n) (index?)
>>   #{ \tweak text #(format "~dt" n) -1 #})
>>
>> {
>>   c\t1 d\t2 e2
>> }
>>
>>
>
> This is perfect, thanks.
> I think this should be added to the LSR.
>
> However lilypond is using a sans serif font for the t. How can I set
> it to serif?
> Also, the t seems bigger than the number. See attached image.

#(format "~dt" n) is a string, but you can use arbitrary markup here, so
 write
 
 \markup ...

instead with ... being what is necessary to achieve the desired output.
The default formatting is likely using a fingering font.  Which is ok
for the number, but you'll need to experiment for the rest.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread Federico Bruni



Il giorno mer 2 mag 2018 alle 8:49, Gianmaria Lari 
 ha scritto:



On 2 May 2018 at 08:46, Federico Bruni  wrote:

Hi all

How can I create custom fingerings which are made of a number and a 
letter?

I want to display 3t, 2t, etc.

I found this snippet in the LSR:
http://lsr.di.unimi.it/LSR/Item?id=83

but it allows to use only one character.

Thanks in advance
Federico



Not sure that this is what you want, but what about


 \version "2.19.81"
{ a\finger "3t"}


?


Well, this produces the same output of David's function.
I forgot this command.. I'm happy with it as well.
But I'd prefer having a serif font for the t.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-03 Thread Federico Bruni



Il giorno mer 2 mag 2018 alle 8:56, David Kastrup  ha 
scritto:

Federico Bruni  writes:


 Hi all

 How can I create custom fingerings which are made of a number and a
 letter?
 I want to display 3t, 2t, etc.

 I found this snippet in the LSR:
 http://lsr.di.unimi.it/LSR/Item?id=83

 but it allows to use only one character.

 Thanks in advance
 Federico


Something like this?

\version "2.19.81"

t =
#(define-event-function (n) (index?)
  #{ \tweak text #(format "~dt" n) -1 #})

{
  c\t1 d\t2 e2
}




This is perfect, thanks.
I think this should be added to the LSR.

However lilypond is using a sans serif font for the t. How can I set it 
to serif?

Also, the t seems bigger than the number. See attached image.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread David Kastrup
Gianmaria Lari  writes:

> On 2 May 2018 at 09:25, David Kastrup  wrote:
>
>> Gianmaria Lari  writes:
>>
>> > On 2 May 2018 at 08:56, David Kastrup  wrote:
>> >>
>> >> Something like this?
>> >>
>> >> \version "2.19.81"
>> >>
>> >> t =
>> >> #(define-event-function (n) (index?)
>> >>   #{ \tweak text #(format "~dt" n) -1 #})
>> >>
>> >> {
>> >>   c\t1 d\t2 e2
>> >> }
>> >>
>> >
>> > interesting! As you know David, to indicate a finger on the 4th row of
>> the
>> > accordion right keyboard, we circle the finger number. This same notation
>> > is used on violin/guitar etc. to indicate a chord number.
>> > For example if I need to indicate a "c" pitch to play on the 4th row I
>> > write "c\4".
>> >
>> > Wouldn't be better to define a custom fingering function for that so that
>> > it is treated as a fingering?
>>
>> Uh, the above is a custom fingering function resulting in a fingering
>> event.  I'm not sure what you want instead.
>
>
> Sorry I wrote "... to indicate a chord number"

No, you didn't.  Not at the point I answered.

> but I wanted to say "... to indicate a string number"! (In italian
> corda = string). So:
>
> 1) I would like to understand if  it make sense to avoid to use the string
> notation to indicate a finger notation and
> 2) if yes, how to create a custom fingering notation to circle a finger
> number
>
> I hope I have been more clear. :(

Not really.  Obviously you can use what I wrote for creating fingerings
(or string indications in an analogous way) with arbitrary markup,
including circled numbers.

I have no idea what problem you are trying to solve here, though.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 09:25, David Kastrup  wrote:

> Gianmaria Lari  writes:
>
> > On 2 May 2018 at 08:56, David Kastrup  wrote:
> >>
> >> Something like this?
> >>
> >> \version "2.19.81"
> >>
> >> t =
> >> #(define-event-function (n) (index?)
> >>   #{ \tweak text #(format "~dt" n) -1 #})
> >>
> >> {
> >>   c\t1 d\t2 e2
> >> }
> >>
> >
> > interesting! As you know David, to indicate a finger on the 4th row of
> the
> > accordion right keyboard, we circle the finger number. This same notation
> > is used on violin/guitar etc. to indicate a chord number.
> > For example if I need to indicate a "c" pitch to play on the 4th row I
> > write "c\4".
> >
> > Wouldn't be better to define a custom fingering function for that so that
> > it is treated as a fingering?
>
> Uh, the above is a custom fingering function resulting in a fingering
> event.  I'm not sure what you want instead.


Sorry I wrote "... to indicate a chord number" but I wanted to say "... to
indicate a string number"! (In italian corda = string). So:

1) I would like to understand if  it make sense to avoid to use the string
notation to indicate a finger notation and
2) if yes, how to create a custom fingering notation to circle a finger
number

I hope I have been more clear. :(




> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread David Kastrup
Gianmaria Lari  writes:

> On 2 May 2018 at 08:56, David Kastrup  wrote:
>>
>> Something like this?
>>
>> \version "2.19.81"
>>
>> t =
>> #(define-event-function (n) (index?)
>>   #{ \tweak text #(format "~dt" n) -1 #})
>>
>> {
>>   c\t1 d\t2 e2
>> }
>>
>
> interesting! As you know David, to indicate a finger on the 4th row of the
> accordion right keyboard, we circle the finger number. This same notation
> is used on violin/guitar etc. to indicate a chord number.
> For example if I need to indicate a "c" pitch to play on the 4th row I
> write "c\4".
>
> Wouldn't be better to define a custom fingering function for that so that
> it is treated as a fingering?

Uh, the above is a custom fingering function resulting in a fingering
event.  I'm not sure what you want instead.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 08:56, David Kastrup  wrote:

> Federico Bruni  writes:
>
> > Hi all
> >
> > How can I create custom fingerings which are made of a number and a
> > letter?
> > I want to display 3t, 2t, etc.
> >
> > I found this snippet in the LSR:
> > http://lsr.di.unimi.it/LSR/Item?id=83
> >
> > but it allows to use only one character.
> >
> > Thanks in advance
> > Federico
>
> Something like this?
>
> \version "2.19.81"
>
> t =
> #(define-event-function (n) (index?)
>   #{ \tweak text #(format "~dt" n) -1 #})
>
> {
>   c\t1 d\t2 e2
> }
>

interesting! As you know David, to indicate a finger on the 4th row of the
accordion right keyboard, we circle the finger number. This same notation
is used on violin/guitar etc. to indicate a chord number.
For example if I need to indicate a "c" pitch to play on the 4th row I
write "c\4".

Wouldn't be better to define a custom fingering function for that so that
it is treated as a fingering?

Thank you, g.
P.S. Sorry Federico for my misinterpretation
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread David Kastrup
Federico Bruni  writes:

> Hi all
>
> How can I create custom fingerings which are made of a number and a
> letter?
> I want to display 3t, 2t, etc.
>
> I found this snippet in the LSR:
> http://lsr.di.unimi.it/LSR/Item?id=83
>
> but it allows to use only one character.
>
> Thanks in advance
> Federico

Something like this?

\version "2.19.81"

t =
#(define-event-function (n) (index?)
  #{ \tweak text #(format "~dt" n) -1 #})

{
  c\t1 d\t2 e2
}

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread Federico Bruni

Hi all

How can I create custom fingerings which are made of a number and a 
letter?

I want to display 3t, 2t, etc.

I found this snippet in the LSR:
http://lsr.di.unimi.it/LSR/Item?id=83

but it allows to use only one character.

Thanks in advance
Federico




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user