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

configure flowline segments #264

Open
1 of 18 tasks
bwl21 opened this issue May 11, 2019 · 0 comments
Open
1 of 18 tasks

configure flowline segments #264

bwl21 opened this issue May 11, 2019 · 0 comments
Milestone

Comments

@bwl21
Copy link
Owner

bwl21 commented May 11, 2019

Request

For special cases w should be able to configure segments of flowlines

  • shape
  • line style (color linewidth, pattern)

This configuration should eventually be applicable to all kinds of lines

  • entire flowline
  • flowline segment
  • subflowline
  • synchline
  • jumplines
  • shapes (notes, rests, decorations)

Solution approach

  • [] Enhance configuration section with the ability to define new entries with alpha numeric names. As of now we only have numeric keys for new entries. By default we compute the next number. If a value is entered,

  • predefine styledefinitions

    • add a section styledefinition.colors where we can predefine colors
    • add a configuration section styledefinition.linestyles where we can predefine the styles with the following properties
      • name
      • visible ? hut sure if we need this
      • line-width
      • shape cp1, cp2,
      • color (color picker)
      • stroke pattern (array of integers)
  • by default provide linestyledefintions to represent the current behavior based on the entries in LAYOUT.LINE_MEDIUM etc

    • zn_thin_solid, zn_medium_solid, zn_thick_solid
    • zn_thin_dashedshort, zn_thin_dashedlong

    these styles cannot be edited. They represent builtin color and linestyle definitions such that styles controls the entire styling.

  • apply linestyle to entities as default

        {
          linestyling:{
            flowlines: zn_medium_solid
            subflowlines: zn_thin_dashed_short
            jumplines: zn_thick_solid
            synchlines: zn_thin_dashed_log
            shapes: zn_medium_solid
            ties: zn_medium_solid
            tuplets: zn_medium_solid
         }
        }
  • allow styling of voice-flowlines

          {
            1: {voices: '1,3' linestyle: 'strong-line'},
            2: {voices: '2,4' linestle: 'subflowline'}
          }
  • apply linestyle to flowline segments in extract.0.notebound.flowline

  • fall back to builtin style if the referenced style is not defined

Related issues

see #255 Allow to style voices

@bwl21 bwl21 added this to the 2.x milestone May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant