lilypond-user
[Top][All Lists]
Advanced

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

Point and click in music-function


From: Helge Kruse
Subject: Point and click in music-function
Date: Sat, 02 Feb 2013 08:25:19 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

Hello,

I wrote a small helper to set tuplets that are wide spreaded over the score. It gives a compact source. But the PDF file includes point-and-click information that points to the function and not the actual notes that I entered. As a workaround I can click at the triplet number to get approximately to the correct position.

How can I change the behavior so that a click goes directly to the note in the source?

Regards
Helge

\version "2.16.0"
\language "deutsch"

global = { \key c \minor }

% abbreviation for a triplet, \times 2/3 { ... } would be a bit annoying
tr = #(define-music-function (parser location p1 p2 p3)
        (ly:pitch? ly:pitch? ly:pitch?)
        #{
          \times 2/3 { $p1 8 [ $p2 $p3 ] }
        #})

\parallelMusic #'( harpL) {
  \tr g c es  \tr g, c es  \tr g, d' f  \tr g, d' f |
}

harpPart = \new PianoStaff \with {
  instrumentName = "Hf."
} <<
  \new Staff = "lower" \with {
    midiInstrument = "orchestral harp"
  } \relative c { \global \clef bass \harpL }
>>

\score {
  \harpPart
}




reply via email to

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