SoundFontKind

public enum SoundFontKind
extension SoundFontKind: Codable
extension SoundFontKind: Hashable

There are two types of SoundFont instances in the application: a built-in kind that resides in the app’s bundle, and a file kind which comes from an external source.

  • log

    Undocumented

    Declaration

    Swift

    static let log: OSLog
  • Built-in sound font file that is comes with the app. Holds a URL to a bundle resource

    Declaration

    Swift

    case builtin(resource: URL)
  • Sound font file that was installed by the user. Holds the name of the SF2 file

    Declaration

    Swift

    case installed(fileName: String)
  • Alternative sound font file that was installed by the user but that was not copied into the app’s working directory.

    Declaration

    Swift

    case reference(bookmark: Bookmark)
  • The URL that points to the data file that defines the SoundFont.

    Declaration

    Swift

    public var fileURL: URL { get }
  • The String representation of the fileURL

    Declaration

    Swift

    public var path: String { get }
  • True if the file deleted by the user

    Declaration

    Swift

    public var removable: Bool { get }
  • True if is resource

    Declaration

    Swift

    public var resource: Bool { get }
  • True if is reference

    Declaration

    Swift

    public var reference: Bool { get }

Codable Protocol

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

Hashable Protocol

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)