Re: fingering context

2016-12-05 Thread Simon Albrecht

On 04.12.2016 23:45, Gianmaria Lari wrote:
Any reason why you use attachment instead to directly copy and paste 
your code? I was thinking that for snippet was better the latter 
because the user can read the code without having to open the file


Good causes can be made for both. Using attachments prevents mangling of 
the code underway due to e.g. encoding issues or reformatting, and you 
can just open the file in Frescobaldi instead of having to copy & paste.


In fact, Thunderbird displays text attachments (and images) without 
having to open them externally, normal attachments as well as the kind 
of ‘inline attachment’ that is apparently supported by the e-mail 
standard, but that I’ve only ever seen used by David, since most mailing 
clients don’t support it…


Best, Simon

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


Re: fingering context

2016-12-05 Thread ching hsu
Hi, I am a new user of Lilypond.
Since on the topic of finger: As Frescobaldi has a tool of Quick remove
fingering, is there is a way  a snippet to automatically add fingering of
numeric tonic name).
I understand this may be under keybord data-entry issue not a engraver
issue?

ching




\version "2.19.52"
\language english

#(define Ez_numbers_engraver
   (make-engraver
(acknowledgers
 ((note-head-interface engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
(tonic-pitch (ly:context-property context 'tonic))
(tonic-name (ly:pitch-notename tonic-pitch))
(grob-pitch
 (ly:event-property (event-cause grob) 'pitch))
(grob-name (ly:pitch-notename grob-pitch))
(delta (modulo (- grob-name tonic-name) 7))
(note-names
 (make-vector 7 (number->string (1+ delta)
(ly:grob-set-property! grob 'note-names note-names))

#(set-global-staff-size 30)

\layout {
  ragged-right = ##t
  \context {
\Voice
\consists \Ez_numbers_engraver
  }
}

\relative c' {
  \key g \major
  \easyHeadsOn
   d4 e fs g
   \easyHeadsOff
   d4-5 e-6 fs-7 g-1
   \break
}
%

On Sun, Dec 4, 2016 at 3:26 AM, David Kastrup  wrote:

> Gianmaria Lari  writes:
>
> > Is there any way to specify the fingering in a specific context? I tried
> > this without success:
> >
> > \version "2.19.49"
> >
> > \score
> > {
> >   <<
> > \new Staff {c' d' e' f'}
> > \new Dynamics {s4-1 s4-2 s4-3 s4-4}
> >   >>
> >   \layout { }
> > }
>
>
>
>
> --
> David Kastrup
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fingering context

2016-12-04 Thread Gianmaria Lari
Thank you David, it works perfectly!

I started to read the "Defining new contexts" and it looks clear (even if
not trivial).

Ciao, g.
P.S. Any reason why you use attachment instead to directly copy and paste
your code? I was thinking that for snippet was better the latter because
the user can read the code without having to open the file
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fingering context

2016-12-04 Thread David Kastrup
Gianmaria Lari  writes:

> Is there any way to specify the fingering in a specific context? I tried
> this without success:
>
> \version "2.19.49"
>
> \score
> {
>   <<
> \new Staff {c' d' e' f'}
> \new Dynamics {s4-1 s4-2 s4-3 s4-4}
>   >>
>   \layout { }
> }

\version "2.19.49"

\score
{
  <<
\new Staff {c' d' e' f'}
\new Dynamics {s4-1 s4-2 s4-3 s4-4}
  >>
  \layout {
\context {
  \Dynamics
  \consists "Fingering_engraver"
}
  }
}


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


fingering context

2016-12-04 Thread Gianmaria Lari
Is there any way to specify the fingering in a specific context? I tried
this without success:

\version "2.19.49"

\score
{
  <<
\new Staff {c' d' e' f'}
\new Dynamics {s4-1 s4-2 s4-3 s4-4}
  >>
  \layout { }
}

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