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

Helper tools for more complex styling functions #3

Open
uliska opened this issue Jun 27, 2018 · 0 comments
Open

Helper tools for more complex styling functions #3

uliska opened this issue Jun 27, 2018 · 0 comments
Labels
enhancement New feature or request urgent

Comments

@uliska
Copy link
Contributor

uliska commented Jun 27, 2018

The (define-styling-function) macro helps by figuring out the style-type, i.e. the way the modification has to be applied to the music. However, we need more support to help with creating more complex scenarios.

Apart from the application style-type we have other categories:

  • grob target
    functions may have to apply different styles/overrides/elements to different grob types.
  • custom properties
    functions may have to behave differently responding to additional properties. Typical example: c' \editorialMarkup emendation \with { type = addition } \( (span class is emendation, but there are different types of emendation which are visualized differently).

In fact this amounts to a three-dimensional matrix of combinations (tweak-slur-addition) that can't reasonably be realized within a complex conditional within a single music function. So we need to think about a way to put the different alternatives in lookup tables or the like.

@uliska uliska added enhancement New feature or request urgent labels Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request urgent
Projects
None yet
Development

No branches or pull requests

1 participant