Skip to content

Redesign Articulation in final tagless style #94

Description

@bwetherfield

Some ideas for replacing the enum based articulation with a final tagless approach. This will enable more user customization downstream.

// Articulation that can be represented by a single symbol above or below a notehead
protocol SymbolizableArticulation {
    static func staccato() -> Self
    static func staccatissimo() -> Self
    static func marcato() -> Self
    ...
    static func stack([Self]) -> Self
}

typealias DrawnMarking = SomeView // for example - something drawn
typealias MarkingDescribed = String // string representation like "staccato"

extension DrawnMarking: SymbolizableArticulation {
    ...
}

extension MarkingDesribed: SymbolisableArticulation {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions