Sequencer

class Sequencer : AKSequencer

Audio sequencer

  • Undocumented

    Declaration

    Swift

    static let maxTempo: Double
  • Undocumented

    Declaration

    Swift

    static let minTempo: Double
  • Undocumented

    Declaration

    Swift

    var maxMeasure: Double
  • Undocumented

    Declaration

    Swift

    var measure: Double
  • Undocumented

    Declaration

    Swift

    private let sequenceLength: AKDuration
  • Undocumented

    Declaration

    Swift

    var events: [SequenceEvent]
  • Undocumented

    Declaration

    Swift

    var clearHandler: ((Int?) -> ())?
  • Declaration

    Swift

    override init()
  • Changes the MIDI output source

    Declaration

    Swift

    func changeOutput()
  • Setups the MIDI tracks and properties like loop length

    Declaration

    Swift

    func setupTracks()
  • Adds sequencer item event for the specified note

    Declaration

    Swift

    func addSequenceItem(note: Note, indexPath: IndexPath, stepSize: Float)
  • Removes sequencer item event for the specified note

    Declaration

    Swift

    func removeSequenceItem(note: Note, indexPath: IndexPath, stepSize: Float)
  • Clears the sequencer events and triggers corresponding UI update

    Declaration

    Swift

    func clear(_ track: Int? = nil)

    Parameters

    track

    Midi track as Int to clear or clear all if none specified

  • Plays the sequencer

    Declaration

    Swift

    override func play()
  • Stops the sequencer

    Declaration

    Swift

    override func stop()