AKMIDIBeatObserver

public protocol AKMIDIBeatObserver

Protocol so that clients may observe beat events

  • preparePlay(continue:) Default implementation

    Called when the midi system real time start or continue message arrives. Will be called when on the very first beat.

    Default Implementation

    Declaration

    Swift

    func preparePlay(continue: Bool)
  • startFirstBeat(continue:) Default implementation

    First beat of playback after an system real time start or continue message. This is called on the first clock tick after a start or continue command

    Default Implementation

    Declaration

    Swift

    func startFirstBeat(continue: Bool)
  • stopSRT() Default implementation

    system real time stop message

    Default Implementation

    Declaration

    Swift

    func stopSRT()
  • receivedBeatEvent(beat:) Default implementation

    Called each midi beat event (every 6 midi clock quantums)

    Default Implementation

    Declaration

    Swift

    func receivedBeatEvent(beat: UInt64)
  • Called each midi clock pulse (quantum = 24 quantums per quarter note)

    Default Implementation

    Declaration

    Swift

    func receivedQuantum(time: MIDITimeStamp, quarterNote: UInt8, beat: UInt64, quantum: UInt64)
  • receivedQuarterNoteBeat(quarterNote:) Default implementation

    Called each 24 midi clock pulses

    Default Implementation

    Declaration

    Swift

    func receivedQuarterNoteBeat(quarterNote: UInt8)
  • isEqualTo(_:) Extension method

    Declaration

    Swift

    func isEqualTo(_ listener: AKMIDIBeatObserver) -> Bool