LegacySoundFont

public final class LegacySoundFont : Codable
extension LegacySoundFont: Hashable
extension LegacySoundFont: CustomStringConvertible

Representation of a sound font library. NOTE: all sound font files must have ‘sf2’ extension.

  • Presentation name of the sound font

    Declaration

    Swift

    var displayName: String
  • The resolved URL for the sound font

    Declaration

    Swift

    public var fileURL: URL { get }
  • True if the SF2 file is not part of the install

    Declaration

    Swift

    var removable: Bool { get }
  • Key

    Undocumented

    Declaration

    Swift

    public typealias Key = UUID
  • key

    Undocumented

    Declaration

    Swift

    let key: Key
  • Undocumented

    Declaration

    Swift

    let originalDisplayName: String
  • Undocumented

    Declaration

    Swift

    @DecodableDefault
    .EmptyString var embeddedName: String { get set }
  • Undocumented

    Declaration

    Swift

    @DecodableDefault
    .EmptyString var embeddedComment: String { get set }
  • Undocumented

    Declaration

    Swift

    @DecodableDefault
    .EmptyString var embeddedAuthor: String { get set }
  • Undocumented

    Declaration

    Swift

    @DecodableDefault
    .EmptyString var embeddedCopyright: String { get set }
  • Undocumented

    Declaration

    Swift

    let kind: SoundFontKind
  • The collection of Patches found in the sound font

    Declaration

    Swift

    let patches: [LegacyPatch]
  • Collection of tags assigned to the sound font

    Declaration

    Swift

    @DecodableDefault
    .EmptyTagSet var tags: Set<LegacyTag.Key> { get set }
  • Constructor for installed sound font files – those added via File app.

    Declaration

    Swift

    public init(_ displayName: String, soundFontInfo: SoundFontInfo, url: URL, key: Key)

    Parameters

    displayName

    the display name of the resource

    soundFontInfo

    patch info from the sound font

    url

    the resource URL for this sound font

    key

    UUID for this font

  • Constructor for built-in sound font files – those in the Bundle.

    Declaration

    Swift

    public init(_ displayName: String, soundFontInfo: SoundFontInfo, resource: URL)

    Parameters

    displayName

    the display name of the resource

    soundFontInfo

    patch info from the sound font

    resource

    the name of the resource in the bundle

  • Undocumented

    Declaration

    Swift

    public static func makeSoundFont(from url: URL) -> Result<
      LegacySoundFont, SoundFontFileLoadFailure
    >
  • Determines if the sound font file exists on the device

    Declaration

    Swift

    public var isAvailable: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func makeSoundFontAndPatch(at index: Int) -> SoundFontAndPatch
  • Undocumented

    Declaration

    Swift

    public func makeSoundFontAndPatch(for patch: LegacyPatch) -> SoundFontAndPatch
  • Undocumented

    Declaration

    Swift

    public func reloadEmbeddedInfo() -> Bool
  • Undocumented

    Declaration

    Swift

    public func validate(_ tags: Tags)
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Declaration

    Swift

    public static func == (lhs: LegacySoundFont, rhs: LegacySoundFont) -> Bool
  • Declaration

    Swift

    public var description: String { get }