Other Type Aliases

The following type aliases are available globally.

  • Declaration

    Swift

    public typealias AKCallback = () -> Void
  • Declaration

    Swift

    public typealias MIDIByte = UInt8
  • Declaration

    Swift

    public typealias MIDIWord = UInt16
  • Declaration

    Swift

    public typealias MIDINoteNumber = UInt8
  • Declaration

    Swift

    public typealias MIDIVelocity = UInt8
  • Declaration

    Swift

    public typealias MIDIChannel = UInt8
  • Callback function that can be called from C

    Declaration

    Swift

    public typealias AKCCallback = @convention(block) () -> Void
  • BPM

    Declaration

    Swift

    public typealias BPM = Double
  • Declaration

    Swift

    public typealias AKThresholdCallback = @convention(block) (Bool) -> Void
  • A closure that will be called when the clip is finished recording. Result will be an error or a clip. ClipRecording.url is the location of the recording in the temporary diretory, it should be moved or copied from this location within this closure, it will be deleted after. startTime and duration may be different than parameters given in recordClip().

    Declaration

    Swift

    public typealias ClipRecordingCompletion = (ClipRecordingResult) -> Void