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
namethe display name for the patch
bankthe bank where the patch resides
patchthe 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 }
View on GitHub
LegacyPatch Class Reference