Platforms to show: All Mac Windows Linux Cross-Platform
AVAudioUnitSamplerMBS class
Super class: AVAudioUnitMIDIInstrumentMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The sampler audio unit can be configured by loading different types of instruments such as an “.aupreset” file, a DLS or SF2 sound bank, an EXS24 instrument, a single audio file or with an array of audio files. The output is a single stereo bus.
Subclass of the AVAudioUnitMIDIInstrumentMBS class.
- 3 properties
- property globalTuning as Double
- property masterGain as Double
- property stereoPan as Double
- 8 methods
- method Constructor Private
- method Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS)
- method loadAudioFilesAtFiles(Files() as folderitem, byref error as NSErrorMBS) as boolean
- method loadAudioFilesAtURLs(URLs() as string, byref error as NSErrorMBS) as boolean
- method loadInstrumentAtFile(File as folderitem, byref error as NSErrorMBS) as boolean
- method loadInstrumentAtURL(URL as string, byref error as NSErrorMBS) as boolean
- method loadSoundBankInstrumentAtFile(bankFile as folderitem, program as Integer, bankMSB as Integer, bankLSB as Integer, byref error as NSErrorMBS) as boolean
- method loadSoundBankInstrumentAtURL(bankURL as string, program as Integer, bankMSB as Integer, bankLSB as Integer, byref error as NSErrorMBS) as boolean
Super class AVAudioUnitMIDIInstrumentMBS
- 12 methods
- method Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS)
- method sendController(Controller as Integer, Value as Integer, Channel as Integer)
- method sendMIDIEvent(midiStatus as Integer, data1 as Integer)
- method sendMIDIEvent(midiStatus as Integer, data1 as Integer, data2 as Integer)
- method sendMIDISysExEvent(data as MemoryBlock)
- method sendPitchBend(pitchbend as Integer, Channel as Integer)
- method sendPressure(pressure as Integer, Channel as Integer)
- method sendPressureForKey(Key as Integer, value as Integer, Channel as Integer)
- method sendProgramChange(program as Integer, bankMSB as Integer, bankLSB as Integer, Channel as Integer)
- method sendProgramChange(program as Integer, Channel as Integer)
- method startNote(note as Integer, Velocity as Integer, Channel as Integer)
- method stopNote(note as Integer, Channel as Integer)
Super class AVAudioUnitMBS
- 2 events
- event LevelMonitor(Level0 as Double, Level1 as Double, Level2 as Double, Level3 as Double, Level4 as Double, Level5 as Double, Level6 as Double, Level7 as Double, tag as Variant)
- event PropertyListener(ID as UInt32, Scope as UInt32, Element as UInt32)
- 6 properties
- property audioComponentDescription as AVAudioComponentDescriptionMBS
- property audioUnitHandle as Integer
- property lastError as Integer
- property ManufacturerName as String
- property Name as String
- property Version as Integer
- 12 methods
- method AddPropertyListener(ID as UInt32)
- method Constructor Private
- method Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS) Private
- method CreateView(PreferredSize as NSSizeMBS) as NSViewMBS
- method Destructor
- method GetParameter(ID as UInt32, Scope as UInt32, Element as UInt32) as Single
- method GetProperty(ID as UInt32, Scope as UInt32, Element as UInt32) as Memoryblock
- method GetPropertyInfo(ID as UInt32, Scope as UInt32, Element as UInt32, byref WriteAble as Boolean) as UInt32
- method installLevelMonitor(CallsPerSecond as Integer, tag as Variant = nil)
- method RemovePropertyListener(ID as UInt32)
- method SetParameter(ID as UInt32, Scope as UInt32, Element as UInt32, Value as Single, inBufferOffsetInFrames as UInt32 = 0)
- method SetProperty(ID as UInt32, Scope as UInt32, Element as UInt32, data as Memoryblock)
Super class AVAudioNodeMBS
- event Tap(bus as Integer, bufferSize as UInt32, format as AVAudioFormatMBS, buffer as AVAudioPCMBufferMBS, time as AVAudioTimeMBS, tag as Variant)
- 8 properties
- property AUAudioUnitHandle as Integer
- property engine as AVAudioEngineMBS
- property Handle as Integer
- property lastRenderTime as AVAudioTimeMBS
- property latency as Double
- property numberOfInputs as Integer
- property numberOfOutputs as Integer
- property outputPresentationLatency as Double
- 8 methods
- method Constructor Private
- method inputFormatForBus(busIndex as Integer) as AVAudioFormatMBS
- method installTapOnBus(busIndex as Integer, bufferSize as UInt32 = 0, format as AVAudioFormatMBS = nil, tag as Variant = nil)
- method nameForInputBus(busIndex as Integer) as string
- method nameForOutputBus(busIndex as Integer) as string
- method outputFormatForBus(busIndex as Integer) as AVAudioFormatMBS
- method removeTapOnBus(busIndex as Integer)
- method reset
- shared method available as boolean
This class has no sub classes.
Blog Entries
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAudioUnitReverbMBS - AVAudioUnitTimeEffectMBS