ToneMatrix

public struct ToneMatrix: Equatable, ExpressibleByArrayLiteral, MutableCollection

The ToneMatrix type deals with tone matrices expressed as multidimensional arrays, or arrays of ToneRow instances.

  • Declaration

    Swift

    public static func ==(lhs: ToneMatrix, rhs: ToneMatrix) -> Bool
  • The underlying array of ToneRows.

    Declaration

    Swift

    public var rows: [Element]!
  • Declaration

    Swift

    public init(arrayLiteral: Element...)
  • Initialize from a ToneRow instance.

    Declaration

    Swift

    public init(from row: Element)
  • Declaration

    Swift

    public func index(after i: Int) -> Int
  • Declaration

    Swift

    public var startIndex: Int
  • Declaration

    Swift

    public var endIndex: Int
  • Get a prticular row form from the matrix.

    Declaration

    Swift

    public func rowForm(_ form: MatrixForm, offset: Int) -> Element
  • Get a prticular row form from the matrix in an arbitrary equal division of the octave/diapason.

    Declaration

    Swift

    public func rowFormNon12(_ form: MatrixForm, offset: Int, ed: ED) -> Element