LegacySoundFontsManager
public final class LegacySoundFontsManager : SubscriptionManager<SoundFontsEvent>
extension LegacySoundFontsManager: SoundFonts
Manages a collection of SoundFont instances. Changes to the collection are communicated as a SoundFontsEvent event.
-
Declaration
Swift
public var restored: Bool { get } -
Undocumented
Declaration
Swift
public var collection: LegacySoundFontCollection { get } -
Create a new manager for a collection of SoundFonts. Attempts to load from disk a saved collection, and if that fails then creates a new one containing SoundFont instances embedded in the app.
Declaration
Swift
public init(_ consolidatedConfigFile: ConsolidatedConfigFile)
-
Declaration
Swift
public var soundFontNames: [String] { get } -
Declaration
Swift
public var defaultPreset: SoundFontAndPatch? { get } -
Declaration
Swift
public func firstIndex(of key: LegacySoundFont.Key) -> Int? -
Declaration
Swift
public func getBy(key: LegacySoundFont.Key) -> LegacySoundFont? -
Declaration
Swift
public func resolve(soundFontAndPatch: SoundFontAndPatch) -> LegacyPatch? -
Declaration
Swift
public func filtered(by tag: LegacyTag.Key) -> [LegacySoundFont.Key] -
Declaration
Swift
public func names(of keys: [LegacySoundFont.Key]) -> [String] -
Declaration
Swift
@discardableResult public func add(url: URL) -> Result<(Int, LegacySoundFont), SoundFontFileLoadFailure> -
Declaration
Swift
public func remove(key: LegacySoundFont.Key) -
Declaration
Swift
public func rename(key: LegacySoundFont.Key, name: String) -
Declaration
Swift
public func createFavorite(soundFontAndPatch: SoundFontAndPatch, keyboardLowestNote: Note?) -> LegacyFavorite? -
Declaration
Swift
public func deleteFavorite(soundFontAndPatch: SoundFontAndPatch, key: LegacyFavorite.Key) -
Declaration
Swift
public func updatePreset(soundFontAndPatch: SoundFontAndPatch, config: PresetConfig) -
Declaration
Swift
public func setVisibility(soundFontAndPatch: SoundFontAndPatch, state isVisible: Bool) -
Declaration
Swift
public func setEffects( soundFontAndPatch: SoundFontAndPatch, delay: DelayConfig?, reverb: ReverbConfig? ) -
Declaration
Swift
public func makeAllVisible(key: LegacySoundFont.Key) -
Declaration
Swift
public var hasAnyBundled: Bool { get } -
Declaration
Swift
public var hasAllBundled: Bool { get } -
Declaration
Swift
public func removeBundled() -
Declaration
Swift
public func restoreBundled() -
Declaration
Swift
public func reloadEmbeddedInfo(key: LegacySoundFont.Key) -
Copy one file to the local document directory.
Declaration
Swift
public func copyToLocalDocumentsDirectory(name: String) -> Bool -
Copy all of the known SF2 files to the local document directory.
Declaration
Swift
public func exportToLocalDocumentsDirectory() -> (good: Int, total: Int) -
Import all SF2 files from the local documents directory that is visible to the user.
Declaration
Swift
public func importFromLocalDocumentsDirectory() -> (good: Int, total: Int) -
Undocumented
Declaration
Swift
static var defaultCollection: LegacySoundFontCollection { get }
View on GitHub
LegacySoundFontsManager Class Reference