ManagedSoundFont

@objc(ManagedSoundFont)
public final class ManagedSoundFont : NSManagedObject, Managed

Definition of the Core Data managed sound font entities.

  • The name to show in a view

    Declaration

    Swift

    @NSManaged
    public private(set) var displayName: String { get set }
  • The author name found embedded in the SF2 file

    Declaration

    Swift

    @NSManaged
    public private(set) var embeddedAuthor: String { get set }
  • The comment found embedded in the SF2 file

    Declaration

    Swift

    @NSManaged
    public private(set) var embeddedComment: String { get set }
  • The copyright found embedded in the SF2 file

    Declaration

    Swift

    @NSManaged
    public private(set) var embeddedCopyright: String { get set }
  • The name found embedded in the SF2 file

    Declaration

    Swift

    @NSManaged
    public private(set) var embeddedName: String { get set }
  • The original display name of the SF2

    Declaration

    Swift

    @NSManaged
    public private(set) var originalDisplayName: String { get set }
  • If non-nil, Data to be used to reconstruct a Bookmark

    Declaration

    Swift

    @NSManaged
    public private(set) var resourceBookmark: Data? { get set }
  • If non-nil, the name of the bookmark or the name of the sound font file

    Declaration

    Swift

    @NSManaged
    public private(set) var resourceName: String? { get set }
  • If non-nil, the URL for the resource

    Declaration

    Swift

    @NSManaged
    public private(set) var resourcePath: URL? { get set }
  • If false the sound font will not be shown. Default is true

    Declaration

    Swift

    @NSManaged
    public private(set) var visible: Bool { get set }
  • Obtain the ordered collection of presets in the sound font.

    Declaration

    Swift

    public var presetsCollection: EntityCollection<ManagedPreset> { get }
  • Obtain the set of tags associated with the sound font.

    Declaration

    Swift

    public var tagsSet: Set<ManagedTag> { get }
  • Fetching sound font rows will order them by their name in ascending order

    Declaration

    Swift

    public static var defaultSortDescriptors: [NSSortDescriptor]
  • Fetch request to use for table rows.

    Declaration

    Swift

    public static func fetchRequestForRows(tag: ManagedTag) -> FetchRequest

    Parameters

    tag

    the tag to filter with

    Return Value

    sound fonts that are visible and that belong to a given tag.

  • Obtain a count for the number of sound fonts that are visible and belong to a given tag.

    Declaration

    Swift

    public static func countRows(in context: NSManagedObjectContext, tag: ManagedTag) -> Int

    Parameters

    context

    the context to operate in

    tag

    the tag to filter with

    Return Value

    count of sound fonts that are visible and that belong to a given tag.

  • Fetch the sound fonts that are visible and belong to a given tag.

    Declaration

    Swift

    public static func fetchRows(in context: NSManagedObjectContext, tag: ManagedTag)
      -> [ManagedSoundFont]

    Parameters

    context

    the context to operate in

    tag

    the tag to filter with

    Return Value

    collection of sound fonts that are visible and that belong to a given tag.

  • Generate SoundFontKind value based on contents of various resource values

    Declaration

    Swift

    public var kind: SoundFontKind { get }
  • Create a new ManagedSoundFont instance using data from a SoundFontInfo description.

    Declaration

    Swift

    @discardableResult
    public convenience init(in context: NSManagedObjectContext, config: SoundFontInfo)

    Parameters

    context

    the context to operate in

    config

    the description to use

  • Set the display name for the sound font

    Declaration

    Swift

    public func setDisplayName(_ name: String)

    Parameters

    name

    the display name to use

  • Set the location of the sound font file via a bookmark.

    Declaration

    Swift

    public func setBookmark(_ bookmark: Bookmark)

    Parameters

    bookmark

    the location of the sound font file

  • Set the location of the sound font file via a Bundle resource URL.

    Declaration

    Swift

    public func setBundleUrl(_ url: URL)

    Parameters

    url

    the location of the sound font file

  • Set the location of the sound font file via a file name in the app’s private storage

    Declaration

    Swift

    public func setFileName(_ fileName: String)

    Parameters

    fileName

    the name of the file in the app’s private storage

  • Change the visibility state of a sound font.

    Declaration

    Swift

    public func setVisible(_ value: Bool)

    Parameters

    value

    true if visible

Generated accessors for tags

  • Undocumented

    Declaration

    Swift

    @objc(addTagsObject:)
    @NSManaged
    public func addToTags(_ value: ManagedTag)
  • Undocumented

    Declaration

    Swift

    @objc(removeTagsObject:)
    @NSManaged
    public func removeFromTags(_ value: ManagedTag)