AKSimpleSequencer

open class AKSimpleSequencer

Sequencer based on the AV Audio Engine Sequencer

  • Undocumented

    Declaration

    Swift

    open class AKSimpleSequencer
  • Undocumented

    Declaration

    Swift

    open class AKSimpleSequencer
  • Array of AudioKit Music Tracks

    Declaration

    Swift

    open var tracks: [AVMusicTrack]
  • Loop control

    Declaration

    Swift

    public var loopEnabled: Bool = false
  • Sequencer Initialization

    Declaration

    Swift

    public init()
  • Initialize the sequence with a MIDI file

    Declaration

    Swift

    public convenience init(filename: String)

    Parameters

    filename

    Location of the MIDI File

  • Load a sequence from data

    Declaration

    Swift

    open func sequenceFromData(_ data: Data)

    Parameters

    data

    data to create sequence from

  • Set loop functionality of entire sequence

    Declaration

    Swift

    open func toggleLoop()
  • Enable looping for all tracks - loops entire sequence

    Declaration

    Swift

    open func enableLooping()
  • Enable looping for all tracks with specified length

    Declaration

    Swift

    public func enableLooping(_ loopLength: AKDuration)

    Parameters

    loopLength

    Loop length in beats

  • Disable looping for all tracks

    Declaration

    Swift

    open func disableLooping()
  • Set length of all tracks

    Declaration

    Swift

    open func setLength(_ length: AKDuration)

    Parameters

    length

    Length of tracks in beats

  • Length of longest track in the sequence

    Declaration

    Swift

    open var length: AKDuration
  • Set the rate of the sequencer

    Declaration

    Swift

    open func setRate(_ rate: Double)

    Parameters

    rate

    Set the rate relative to the tempo of the track

  • Rate relative to the default tempo (BPM) of the track

    Declaration

    Swift

    open var rate: Double
  • Play the sequence

    Declaration

    Swift

    open func play()
  • Stop the sequence

    Declaration

    Swift

    open func stop()
  • Rewind the sequence

    Declaration

    Swift

    open func rewind()
  • Set the Audio Unit output for all tracks - on hold while technology is still unstable

    Declaration

    Swift

    open func setGlobalAVAudioUnitOutput(_ audioUnit: AVAudioUnit)
  • Wheter or not the sequencer is currently playing

    Declaration

    Swift

    open var isPlaying: Bool
  • Current Time

    Declaration

    Swift

    open var currentPosition: AKDuration
  • Current Time relative to sequencer length

    Declaration

    Swift

    open var currentRelativePosition: AKDuration
  • Track count

    Declaration

    Swift

    open var trackCount: Int
  • Load a MIDI file

    Declaration

    Swift

    open func loadMIDIFile(_ filename: String)
  • Set the midi output for all tracks

    Declaration

    Swift

    open func setGlobalMIDIOutput(_ midiEndpoint: MIDIEndpointRef)
  • Nearest time of quantized beat

    Declaration

    Swift

    open func nearestQuantizedPosition(quantizationInBeats: Double) -> AKDuration
  • The last quantized beat

    Declaration

    Swift

    open func previousQuantizedPosition(quantizationInBeats: Double) -> AKDuration
  • Next quantized beat

    Declaration

    Swift

    open func nextQuantizedPosition(quantizationInBeats: Double) -> AKDuration