2015-06-27 23:53 GMT+02:00 Pierre Perol-Schneider <
[email protected]>:
> Hi Pat,
>
> How about:
>
> \version "2.19.20"
>
> myTrill =
> #(let ((finger (make-music 'FingeringEvent)))
> (set! (ly:music-property finger 'tweaks)
> (acons 'text
> #{
> \markup
> \fontsize #5
> \with-dimensions #'(-2 . 1) #'(0 . 1)
> \musicglyph #"scripts.trill"
> #}
> (ly:music-property finger 'tweaks)))
> finger)
>
> {
> \new PianoStaff <<
> \new Staff \relative c'' <<
> \new Voice="first" { \voiceOne b8 a a2 \oneVoice r4 }
> \new Voice="second" {
> \voiceTwo d,8 e
> \once \set fingeringOrientations = #'(left)
> <fis\myTrill d>2
> }
> >>
> \new Staff {
> \clef bass
> \relative c' { b4 c r r }
> }
> >>
> }
>
> Cheers,
> Pierre
>
> 2015-06-27 23:21 GMT+02:00 Patrick Karl <[email protected]>:
>
>> I am having a problem with the following snippet:
>>
>> \version "2.19.20"
>>
>> {
>> \new PianoStaff <<
>> \new Staff
>> { \relative c'' {
>> <<
>> \new Voice="first" { \voiceOne b8 a a2 \oneVoice r4 }
>> \new Voice="second" { \voiceTwo d,8 e <fis\trill d>2}
>> >>
>> }
>> }
>> \new Staff {
>> \clef bass
>> \relative c' { b4 c r r }
>> }
>> >>
>> }
>>
>> which produces:
>>
>>
>> The problem is the ambiguous placement of the “trill” script. It is only
>> the F# that should be trilled, but the output seems to me to indicate that
>> it is either the d2 or the middle C in the left-hand staff that is to be
>> trilled.
>>
>> The document I am trying to reproduce has the trill sign in the bottom
>> space of the treble clef, just to the left of the F#. I would be satisfied
>> with that solution, but have been unsuccessful in accomplishing it.
>>
>> Can anyone either show me how to do it, or offer a better suggestion?
>>
>> Thanks,
>> Pat
>>
>
Probably less scary:
\version "2.19.21"
trill-right =
-\tweak Y-offset #-2
%% with 2.18.2 uncomment:
% -\tweak X-offset #'-2.9
-\tweak X-extent #'(-2 . 9)
\trill
\new PianoStaff <<
\new Staff
\relative c'' {
<<
\new Voice="first" { \voiceOne b8 a a2 \oneVoice r4 }
\new Voice="second" { \voiceTwo d,8 e <fis \trill-right d>2 }
>>
}
\new Staff
\relative c' {
\clef bass
b4 c r r }
>>
HTH,
Harm
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user