Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVAudioUnitSamplerMBS class.
AVAudioUnitSamplerMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
AVAudioUnitSamplerMBS.Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
AVAudioUnitSamplerMBS.loadAudioFilesAtFiles(Files() as folderitem, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Files: An array of files for the audio files.
Error: Returns, by-reference, a description of the error, if an error occurs.
Returns true if the sampler was configured with the audio file(s); otherwise false.
The audio files are loaded into a new instrument with each audio file placed into its own sampler zone. Any information contained in the audio file regarding their placement in the instrument, for example, root key, key range, will be used.
AVAudioUnitSamplerMBS.loadAudioFilesAtURLs(URLs() as string, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
URLs: An array of URLs for the audio files.
Error: Returns, by-reference, a description of the error, if an error occurs.
Returns true if the sampler was configured with the audio file(s); otherwise false.
The audio files are loaded into a new instrument with each audio file placed into its own sampler zone. Any information contained in the audio file regarding their placement in the instrument, for example, root key, key range, will be used.
AVAudioUnitSamplerMBS.loadInstrumentAtFile(File as folderitem, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
File: The file containing the instrument.
Error: Returns, by-reference, a description of the error, if an error occurs.
Returns true if the sampler was configured with the instrument file; otherwise false.
The instrument can be of one of the following types: Logic or GarageBand EXS24, sampler’s native .aupreset file or an audio file, for example, “.caf”, “.aiff”, “.wav”, or “.mp3”.
In the case of single audio file, it is loaded into a new default instrument and any information contained in the audio file regarding its placement in the instrument, for example, root key, key range, will be used.
AVAudioUnitSamplerMBS.loadInstrumentAtURL(URL as string, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
URL: The URL of the file containing the instrument.
Error: Returns, by-reference, a description of the error, if an error occurs.
Returns true if the sampler was configured with the instrument file; otherwise false.
The instrument can be of one of the following types: Logic or GarageBand EXS24, sampler’s native .aupreset file or an audio file, for example, “.caf”, “.aiff”, “.wav”, or “.mp3”.
In the case of single audio file, it is loaded into a new default instrument and any information contained in the audio file regarding its placement in the instrument, for example, root key, key range, will be used.
AVAudioUnitSamplerMBS.loadSoundBankInstrumentAtFile(bankFile as folderitem, program as Integer, bankMSB as Integer, bankLSB as Integer, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
bankFile: Soundbank file. The file can be either a DLS bank (.dls) or a SoundFont bank (.sf2).
program: program number for the instrument to load
bankMSB: MSB for the bank number for the instrument to load. This is usually 0x79 for melodic instruments and 0x78 for percussion instruments.
bankLSB: LSB for the bank number for the instrument to load. This is often 0, and represents the "bank variation".
Error: the status of the operation
This method reads from file and allocates memory, so it should not be called on a real time thread.
AVAudioUnitSamplerMBS.loadSoundBankInstrumentAtURL(bankURL as string, program as Integer, bankMSB as Integer, bankLSB as Integer, byref error as NSErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
bankURL: URL for a Soundbank file. The file can be either a DLS bank (.dls) or a SoundFont bank (.sf2).
program: program number for the instrument to load
bankMSB: MSB for the bank number for the instrument to load. This is usually 0x79 for melodic instruments and 0x78 for percussion instruments.
bankLSB: LSB for the bank number for the instrument to load. This is often 0, and represents the "bank variation".
Error: the status of the operation
This method reads from file and allocates memory, so it should not be called on a real time thread.
The items on this page are in the following plugins: MBS AVFoundation Plugin.