init(data:soundBankURL:)
Creates a player to play MIDI data with the specified soundbank.
Declaration
init(data: Data, soundBankURL bankURL: URL?) throwsParameters
- data:
The data to play.
- bankURL:
The URL of the sound bank. The sound bank must be a SoundFont2 or DLS bank. In macOS, you can pass Nil 227m0 for the bank URL argument to use the default sound bank. In iOS, you must always pass a valid bank file.
Return Value
A new MIDI player, or nil if an error occurred.