zupfnoter icon indicating copy to clipboard operation
zupfnoter copied to clipboard

configure flowline segments

Open bwl21 opened this issue 6 years ago • 0 comments

Request

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

  • [x] 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 avatar May 11 '19 09:05 bwl21