Beaming

public struct Beaming : Equatable

The beaming information for an entire Rhythm.

  • Creates a Beaming with the given verticals.

    Declaration

    Swift

    public init<C>(_ verticals: C) where C : Collection, C.Element == Beaming.Point.Vertical
  • Subdivides beaming verticals by the given amount at the given index.

    Throws

    Error if the Item at the given index is empty.

    Throws

    Error if the Item at the given index is less than 1 or greater than equal to the amount of events contained herein.

    Declaration

    Swift

    public func cut(amount: Int, at index: Int) throws -> Beaming
  • Errors which may occur when performing an cutting operation on an Item.

    See more

    Declaration

    Swift

    public enum Error : Swift.Error
  • Whether a beamlet is pointed forward or backward.

    See more

    Declaration

    Swift

    public enum BeamletDirection : Double
  • A single point of the beaming for a single beaming item (metrical context).

    See more

    Declaration

    Swift

    public enum Point : Equatable
  • Declaration

    Swift

    public var base: [Point.Vertical] { get }
  • Declaration

    Swift

    public var description: String { get }

    Return Value

    An ASCII representation which looks vaguely like real-world rhythms, for the purposes of eye-balling beam(let) computation errors not caught in logic testing.