lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: placement of \trill script


From: Thomas Morley
Subject: Re: placement of \trill script
Date: Sun, 28 Jun 2015 01:02:20 +0200



2015-06-27 23:53 GMT+02:00 Pierre Perol-Schneider <address@hidden>:
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 <address@hidden>:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]