Other Extensions

The following extensions are available globally.

  • Declaration

    Swift

    protocol Collection : Sequence where Self.SubSequence : Collection
  • Extension to calculate scaling factors, useful for UI controls

    See more

    Declaration

    Swift

    struct Double
  • Int

    Extension to Int to calculate frequency from a MIDI Note Number

    See more

    Declaration

    Swift

    struct Int : FixedWidthInteger, SignedInteger
  • Extension to Int to calculate frequency from a MIDI Note Number

    See more

    Declaration

    Swift

    struct UInt8 : FixedWidthInteger, UnsignedInteger
  • Declaration

    Swift

    protocol RangeReplaceableCollection : Collection where Self.SubSequence : RangeReplaceableCollection
  • Declaration

    Swift

    struct ClosedRange<Bound> where Bound : Comparable
  • Extension to add a check function

    See more

    Declaration

    Swift

    typealias OSStatus = Int32
  • Numeric extension for floats

    See more

    Declaration

    Swift

    struct Float