Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply editorial commands: point-and-click with music functions #41

Open
uliska opened this issue Aug 11, 2016 · 0 comments
Open

apply editorial commands: point-and-click with music functions #41

uliska opened this issue Aug 11, 2016 · 0 comments
Assignees
Labels

Comments

@uliska
Copy link
Contributor

uliska commented Aug 11, 2016

When applying editorial commands and they are eventually music functions the point-and-click links don't point to the origin but to the place of invocation in __main__.ily.

This somehow has to do with how music functions create music expressions, as can be seen from the following example:

\version "2.19.47"

funcA =
#(define-music-function (mus)(ly:music?)
   #{
     #mus
   #})

funcB =
#(define-music-function (mus)(ly:music?)
   #{
     \once \override NoteHead.color = #red
     #mus
   #})

funcC =
#(define-music-function (mus)(ly:music?)
   #{
     {
       #mus
     }
   #})

funcD =
#(define-music-function (mus)(ly:music?)
   #{
     \once \override NoteHead.color = #blue
     {
       #(parenthesize mus)
     }
   #})

funcF =
#(define-music-function (mus)(ly:music?)
   #{
     {
       \override NoteHead.color = #green
       \parenthesize { #mus }
     }
   #})

{
  % funcA: point-and-click points tofunction invocation
  \funcA c'
  % funcB: point-and-click points to music
  \funcB d'
  % funcC: point-and-click *also* points to function invocation
  \funcC e'
  % funcD: point-and-click points to invocation of (parenthesize)
  \funcD f'
  % funcF: point-and-click is correct but parenthesis is not printed
  \funcF g'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants