AKTable

@objc
public class AKTable : NSObject, MutableCollection

A table of values accessible as a waveform or lookup mechanism

  • Declaration

    Swift

    public typealias Index = Int
  • Declaration

    Swift

    public typealias IndexDistance = Int
  • Declaration

    Swift

    public typealias Element = Float
  • Declaration

    Swift

    public typealias SubSequence = ArraySlice<Element>
  • Initialize and set up the default table

    Declaration

    Swift

    @objc
    public init(_ type: AKTableType = .sine,
          phase: Float = 0,
          count: IndexDistance = 4_096)

    Parameters

    type

    AKTableType of the new table

    phase

    Phase offset

    count

    Size of the table (multiple of 2)

  • Create table from audio file

    Declaration

    Swift

    public convenience init(file: AKAudioFile)
  • Offset of the phase

    Declaration

    Swift

    public var phaseOffset: Int { get }