LegacyPatch
final public class LegacyPatch : Codable
extension LegacyPatch: CustomStringConvertible
Representation of a patch in a sound font.
-
Original name for the preset/patch
Declaration
Swift
public let originalName: String
-
Bank number where the patch resides in the sound font
Declaration
Swift
public let bank: Int
-
Program patch number where the patch resides in the sound font
Declaration
Swift
public let program: Int
-
The index into the owning soundFont’s patches array
Declaration
Swift
public let soundFontIndex: Int
-
Configuration parameters that can be adjusted by the user.
Declaration
Swift
public var presetConfig: PresetConfig { get set }
-
Undocumented
Declaration
Swift
public var favorites: [LegacyFavorite.Key]
-
Obtain the most-significant byte for the bank
Declaration
Swift
public var bankMSB: Int { get }
-
Obtain the least-significant byte for the bank
Declaration
Swift
public var bankLSB: Int { get }
-
Initialize Patch instance.
Declaration
Swift
public init(_ name: String, _ bank: Int, _ program: Int, _ index: Int)
Parameters
name
the display name for the patch
bank
the bank where the patch resides
patch
the program ID of the patch in the sound font
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
func makeFavorite(soundFontAndPatch: SoundFontAndPatch, keyboardLowestNote: Note?) -> LegacyFavorite
-
Undocumented
Declaration
Swift
func validate(_ favorites: Favorites)
-
Declaration
Swift
public var description: String { get }