lilypond-user
[Top][All Lists]
Advanced

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

Re: Point and click in music-function


From: David Kastrup
Subject: Re: Point and click in music-function
Date: Sat, 02 Feb 2013 08:58:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Helge Kruse <address@hidden> writes:

> 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?

Pitches don't have an associated source code location, so that is not
possible.  The best you could hope for is having the click move to \tr.
That would be possible by writing

(music-map
  (lambda (m)
    (set! (ly:music-property m 'origin) location))
  #{ \times 2/3 ... #})

as the function body.

-- 
David Kastrup




reply via email to

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