Rhythm

  • Undocumented

    See more

    Declaration

    Swift

    public struct Rhythm<Element>
  • Declaration

    Swift

    public func event<T>(_ value: T) -> Rhythm<T>.Context

    Return Value

    .instance(.event(T)) wrapping the given value.

  • Declaration

    Swift

    public func rest<T>() -> Rhythm<T>.Context

    Return Value

    .instance(.absence) with generic context provided by the external environment.

  • Declaration

    Swift

    public func tie<T>() -> Rhythm<T>.Context

    Return Value

    .continuation with generic context provided by the external environment.

  • Similar to the proportional aspect of the OpenMusic Rhythm Tree structure.

    Declaration

    Swift

    public typealias ProportionTree = Tree<Int, Int>
  • Whether a context is a rest or an actual event of type Element.

    See more

    Declaration

    Swift

    public enum AbsenceOrEvent<Element>
  • Whether a metrical context is tied over from the previous context, or if it is new instance of Element.

    See more

    Declaration

    Swift

    public enum ContinuationOrInstance<Element>