Package apple.avfoundation
Class AVAudioUnitMIDIInstrument
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAudioNode
-
- apple.avfoundation.AVAudioUnit
-
- apple.avfoundation.AVAudioUnitMIDIInstrument
-
- All Implemented Interfaces:
AVAudio3DMixing,AVAudioMixing,AVAudioStereoMixing,NSObject
- Direct Known Subclasses:
AVAudioUnitSampler
public class AVAudioUnitMIDIInstrument extends AVAudioUnit implements AVAudioMixing
AVAudioUnitMIDIInstrument Base class for sample synthesizers. This base class represents audio units of type kAudioUnitType_MusicDevice or kAudioUnitType_RemoteInstrument. This can be used in a chain that processes realtime input (live) and has general concept of music events i.e. notes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.avfoundation.AVAudioUnit
AVAudioUnit.Block_instantiateWithComponentDescriptionOptionsCompletionHandler
-
Nested classes/interfaces inherited from class apple.avfoundation.AVAudioNode
AVAudioNode.Block_installTapOnBusBufferSizeFormatBlock
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVAudioUnitMIDIInstrument(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVAudioUnitMIDIInstrumentalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()AVAudioMixingDestinationdestinationForMixerBus(AVAudioNode mixer, long bus)Returns the AVAudioMixingDestination object corresponding to specified mixer node and its input bus When a source node is connected to multiple mixers downstream, setting AVAudioMixing properties directly on the source node will apply the change to all the mixers downstream.static longhash_static()AVAudioUnitMIDIInstrumentinit()AVAudioUnitMIDIInstrumentinitWithAudioComponentDescription(AudioComponentDescription description)initWithAudioComponentDescription: initialize the node with the component descriptionstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static voidinstantiateWithComponentDescriptionOptionsCompletionHandler(AudioComponentDescription audioComponentDescription, int options, AVAudioUnit.Block_instantiateWithComponentDescriptionOptionsCompletionHandler completionHandler)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()floatobstruction()[@property] obstruction Simulates filtering of the direct path of sound due to an obstacle Only the direct path of sound between the source and listener is blocked.floatocclusion()[@property] occlusion Simulates filtering of the direct and reverb paths of sound due to an obstacle Both the direct and reverb paths of sound between the source and listener are blocked.floatpan()[@property] pan Set a bus's stereo pan Range: -1.0 -> 1.0 Default: 0.0 Mixer: AVAudioMixerNodelongpointSourceInHeadMode()[@property] pointSourceInHeadMode In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNodeAVAudio3DPointposition()[@property] position The location of the source in the 3D environment The coordinates are specified in meters.floatrate()[@property] rate Changes the playback rate of the input signal A value of 2.0 results in the output audio playing one octave higher.longrenderingAlgorithm()[@property] renderingAlgorithm Type of rendering algorithm used Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)floatreverbBlend()[@property] reverbBlend Controls the blend of dry and reverb processed audio This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode.voidsendControllerWithValueOnChannel(byte controller, byte value, byte channel)sendController:withValue:onChannel: send a MIDI controller event to the instrument.voidsendMIDIEventData1(byte midiStatus, byte data1)sendMIDIEvent:data1: sends a MIDI event which contains one data byte to the instrument.voidsendMIDIEventData1Data2(byte midiStatus, byte data1, byte data2)sendMIDIEvent:data1:data2: sends a MIDI event which contains two data bytes to the instrument.voidsendMIDISysExEvent(NSData midiData)sendMIDISysExEvent: sends a MIDI System Exclusive event to the instrument.voidsendPitchBendOnChannel(char pitchbend, byte channel)sendPitchBend:onChannel: sends MIDI Pitch Bend event to the instrument.voidsendPressureForKeyWithValueOnChannel(byte key, byte value, byte channel)sendPressureForKey:withValue:onChannel: sends MIDI Polyphonic key pressure event to the instrumentvoidsendPressureOnChannel(byte pressure, byte channel)sendPressure:onChannel: sends MIDI channel pressure event to the instrument.voidsendProgramChangeBankMSBBankLSBOnChannel(byte program, byte bankMSB, byte bankLSB, byte channel)sendProgramChange:bankMSB:bankLSB:onChannel: sends a MIDI Program Change and Bank Select events to the instrumentvoidsendProgramChangeOnChannel(byte program, byte channel)sendProgramChange:onChannel: sends MIDI Program Change event to the instrument the instrument will be loaded from the bank that has been previous set by MIDI Bank Select controller messages (0 and 31).voidsetObstruction(float value)[@property] obstruction Simulates filtering of the direct path of sound due to an obstacle Only the direct path of sound between the source and listener is blocked.voidsetOcclusion(float value)[@property] occlusion Simulates filtering of the direct and reverb paths of sound due to an obstacle Both the direct and reverb paths of sound between the source and listener are blocked.voidsetPan(float value)[@property] pan Set a bus's stereo pan Range: -1.0 -> 1.0 Default: 0.0 Mixer: AVAudioMixerNodevoidsetPointSourceInHeadMode(long value)[@property] pointSourceInHeadMode In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNodevoidsetPosition(AVAudio3DPoint value)[@property] position The location of the source in the 3D environment The coordinates are specified in meters.voidsetRate(float value)[@property] rate Changes the playback rate of the input signal A value of 2.0 results in the output audio playing one octave higher.voidsetRenderingAlgorithm(long value)[@property] renderingAlgorithm Type of rendering algorithm used Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported.voidsetReverbBlend(float value)[@property] reverbBlend Controls the blend of dry and reverb processed audio This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode.voidsetSourceMode(long value)[@property] sourceMode Controls how individual channels of an input bus are rendered Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNodestatic voidsetVersion_static(long aVersion)voidsetVolume(float value)[@property] volume Set a bus's input volume Range: 0.0 -> 1.0 Default: 1.0 Mixers: AVAudioMixerNode, AVAudioEnvironmentNodelongsourceMode()[@property] sourceMode Controls how individual channels of an input bus are rendered Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNodevoidstartNoteWithVelocityOnChannel(byte note, byte velocity, byte channel)startNote:withVelocity:onChannel: sends a MIDI Note On event to the instrumentvoidstopNoteOnChannel(byte note, byte channel)stopNote:onChannel: sends a MIDI Note Off event to the instrumentstatic org.moe.natj.objc.Classsuperclass_static()static longversion_static()floatvolume()[@property] volume Set a bus's input volume Range: 0.0 -> 1.0 Default: 1.0 Mixers: AVAudioMixerNode, AVAudioEnvironmentNode-
Methods inherited from class apple.avfoundation.AVAudioUnit
AUAudioUnit, audioComponentDescription, audioUnit, loadAudioUnitPresetAtURLError, manufacturerName, name, version
-
Methods inherited from class apple.avfoundation.AVAudioNode
engine, inputFormatForBus, installTapOnBusBufferSizeFormatBlock, lastRenderTime, latency, nameForInputBus, nameForOutputBus, numberOfInputs, numberOfOutputs, outputFormatForBus, outputPresentationLatency, removeTapOnBus, reset
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAudioUnitMIDIInstrument alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
instantiateWithComponentDescriptionOptionsCompletionHandler
public static void instantiateWithComponentDescriptionOptionsCompletionHandler(AudioComponentDescription audioComponentDescription, int options, AVAudioUnit.Block_instantiateWithComponentDescriptionOptionsCompletionHandler completionHandler)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
destinationForMixerBus
public AVAudioMixingDestination destinationForMixerBus(AVAudioNode mixer, long bus)
Description copied from interface:AVAudioMixingReturns the AVAudioMixingDestination object corresponding to specified mixer node and its input bus When a source node is connected to multiple mixers downstream, setting AVAudioMixing properties directly on the source node will apply the change to all the mixers downstream. If you want to set/get properties on a specific mixer, use this method to get the corresponding AVAudioMixingDestination and set/get properties on it. Note: - Properties set on individual AVAudioMixingDestination instances will not reflect at the source node level. - AVAudioMixingDestination reference returned by this method could become invalid when there is any disconnection between the source and the mixer node. Hence this reference should not be retained and should be fetched every time you want to set/get properties on a specific mixer. If the source node is not connected to the specified mixer/input bus, this method returns nil. Calling this on an AVAudioMixingDestination instance returns self if the specified mixer/input bus matches its connection point, otherwise, it returns nil.- Specified by:
destinationForMixerBusin interfaceAVAudioMixing
-
init
public AVAudioUnitMIDIInstrument init()
- Overrides:
initin classAVAudioUnit
-
initWithAudioComponentDescription
public AVAudioUnitMIDIInstrument initWithAudioComponentDescription(AudioComponentDescription description)
initWithAudioComponentDescription: initialize the node with the component description- Parameters:
description- audio component description structure that describes the audio component of type kAudioUnitType_MusicDevice or kAudioUnitType_RemoteInstrument.
-
obstruction
public float obstruction()
Description copied from interface:AVAudio3DMixing[@property] obstruction Simulates filtering of the direct path of sound due to an obstacle Only the direct path of sound between the source and listener is blocked. Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
obstructionin interfaceAVAudio3DMixing
-
occlusion
public float occlusion()
Description copied from interface:AVAudio3DMixing[@property] occlusion Simulates filtering of the direct and reverb paths of sound due to an obstacle Both the direct and reverb paths of sound between the source and listener are blocked. Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
occlusionin interfaceAVAudio3DMixing
-
pan
public float pan()
Description copied from interface:AVAudioStereoMixing[@property] pan Set a bus's stereo pan Range: -1.0 -> 1.0 Default: 0.0 Mixer: AVAudioMixerNode- Specified by:
panin interfaceAVAudioStereoMixing
-
position
public AVAudio3DPoint position()
Description copied from interface:AVAudio3DMixing[@property] position The location of the source in the 3D environment The coordinates are specified in meters. Mixer: AVAudioEnvironmentNode- Specified by:
positionin interfaceAVAudio3DMixing
-
rate
public float rate()
Description copied from interface:AVAudio3DMixing[@property] rate Changes the playback rate of the input signal A value of 2.0 results in the output audio playing one octave higher. A value of 0.5, results in the output audio playing one octave lower. Range: 0.5 -> 2.0 Default: 1.0 Mixer: AVAudioEnvironmentNode- Specified by:
ratein interfaceAVAudio3DMixing
-
renderingAlgorithm
public long renderingAlgorithm()
Description copied from interface:AVAudio3DMixing[@property] renderingAlgorithm Type of rendering algorithm used Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported. An array of valid rendering algorithms can be retrieved by calling applicableRenderingAlgorithms on AVAudioEnvironmentNode. Default: AVAudio3DMixingRenderingAlgorithmEqualPowerPanning Mixer: AVAudioEnvironmentNode- Specified by:
renderingAlgorithmin interfaceAVAudio3DMixing
-
reverbBlend
public float reverbBlend()
Description copied from interface:AVAudio3DMixing[@property] reverbBlend Controls the blend of dry and reverb processed audio This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode. A value of 0.5 will result in an equal blend of dry and processed (wet) audio. Range: 0.0 (completely dry) -> 1.0 (completely wet) Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
reverbBlendin interfaceAVAudio3DMixing
-
sendControllerWithValueOnChannel
public void sendControllerWithValueOnChannel(byte controller, byte value, byte channel)sendController:withValue:onChannel: send a MIDI controller event to the instrument.- Parameters:
controller- a standard MIDI controller number. Range: 0 -> 127value- value for the controller. Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
sendMIDIEventData1
public void sendMIDIEventData1(byte midiStatus, byte data1)sendMIDIEvent:data1: sends a MIDI event which contains one data byte to the instrument.- Parameters:
midiStatus- the STATUS value of the MIDI eventdata1- the first data byte of the MIDI event
-
sendMIDIEventData1Data2
public void sendMIDIEventData1Data2(byte midiStatus, byte data1, byte data2)sendMIDIEvent:data1:data2: sends a MIDI event which contains two data bytes to the instrument.- Parameters:
midiStatus- the STATUS value of the MIDI eventdata1- the first data byte of the MIDI eventdata2- the second data byte of the MIDI event.
-
sendMIDISysExEvent
public void sendMIDISysExEvent(NSData midiData)
sendMIDISysExEvent: sends a MIDI System Exclusive event to the instrument.- Parameters:
midiData- a NSData object containing the complete SysEx data including start(F0) and termination(F7) bytes.
-
sendPitchBendOnChannel
public void sendPitchBendOnChannel(char pitchbend, byte channel)sendPitchBend:onChannel: sends MIDI Pitch Bend event to the instrument.- Parameters:
pitchbend- value of the pitchbend Range: 0 -> 16383channel- the channel number to which the event is sent. Range: 0 -> 15
-
sendPressureOnChannel
public void sendPressureOnChannel(byte pressure, byte channel)sendPressure:onChannel: sends MIDI channel pressure event to the instrument.- Parameters:
pressure- value of the pressure. Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
sendPressureForKeyWithValueOnChannel
public void sendPressureForKeyWithValueOnChannel(byte key, byte value, byte channel)sendPressureForKey:withValue:onChannel: sends MIDI Polyphonic key pressure event to the instrument- Parameters:
key- the key (note) number to which the pressure event applies Range: 0 -> 127value- value of the pressure Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
sendProgramChangeBankMSBBankLSBOnChannel
public void sendProgramChangeBankMSBBankLSBOnChannel(byte program, byte bankMSB, byte bankLSB, byte channel)sendProgramChange:bankMSB:bankLSB:onChannel: sends a MIDI Program Change and Bank Select events to the instrument- Parameters:
program- specifies the program (preset) number within the bank to load. Range: 0 -> 127bankMSB- specifies the most significant byte value for the bank to select. Range: 0 -> 127bankLSB- specifies the least significant byte value for the bank to select. Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
sendProgramChangeOnChannel
public void sendProgramChangeOnChannel(byte program, byte channel)sendProgramChange:onChannel: sends MIDI Program Change event to the instrument the instrument will be loaded from the bank that has been previous set by MIDI Bank Select controller messages (0 and 31). If none has been set, bank 0 will be used.- Parameters:
program- the program number. Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
setObstruction
public void setObstruction(float value)
Description copied from interface:AVAudio3DMixing[@property] obstruction Simulates filtering of the direct path of sound due to an obstacle Only the direct path of sound between the source and listener is blocked. Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
setObstructionin interfaceAVAudio3DMixing
-
setOcclusion
public void setOcclusion(float value)
Description copied from interface:AVAudio3DMixing[@property] occlusion Simulates filtering of the direct and reverb paths of sound due to an obstacle Both the direct and reverb paths of sound between the source and listener are blocked. Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
setOcclusionin interfaceAVAudio3DMixing
-
setPan
public void setPan(float value)
Description copied from interface:AVAudioStereoMixing[@property] pan Set a bus's stereo pan Range: -1.0 -> 1.0 Default: 0.0 Mixer: AVAudioMixerNode- Specified by:
setPanin interfaceAVAudioStereoMixing
-
setPosition
public void setPosition(AVAudio3DPoint value)
Description copied from interface:AVAudio3DMixing[@property] position The location of the source in the 3D environment The coordinates are specified in meters. Mixer: AVAudioEnvironmentNode- Specified by:
setPositionin interfaceAVAudio3DMixing
-
setRate
public void setRate(float value)
Description copied from interface:AVAudio3DMixing[@property] rate Changes the playback rate of the input signal A value of 2.0 results in the output audio playing one octave higher. A value of 0.5, results in the output audio playing one octave lower. Range: 0.5 -> 2.0 Default: 1.0 Mixer: AVAudioEnvironmentNode- Specified by:
setRatein interfaceAVAudio3DMixing
-
setRenderingAlgorithm
public void setRenderingAlgorithm(long value)
Description copied from interface:AVAudio3DMixing[@property] renderingAlgorithm Type of rendering algorithm used Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported. An array of valid rendering algorithms can be retrieved by calling applicableRenderingAlgorithms on AVAudioEnvironmentNode. Default: AVAudio3DMixingRenderingAlgorithmEqualPowerPanning Mixer: AVAudioEnvironmentNode- Specified by:
setRenderingAlgorithmin interfaceAVAudio3DMixing
-
setReverbBlend
public void setReverbBlend(float value)
Description copied from interface:AVAudio3DMixing[@property] reverbBlend Controls the blend of dry and reverb processed audio This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode. A value of 0.5 will result in an equal blend of dry and processed (wet) audio. Range: 0.0 (completely dry) -> 1.0 (completely wet) Default: 0.0 Mixer: AVAudioEnvironmentNode- Specified by:
setReverbBlendin interfaceAVAudio3DMixing
-
setVolume
public void setVolume(float value)
Description copied from interface:AVAudioMixing[@property] volume Set a bus's input volume Range: 0.0 -> 1.0 Default: 1.0 Mixers: AVAudioMixerNode, AVAudioEnvironmentNode- Specified by:
setVolumein interfaceAVAudioMixing
-
startNoteWithVelocityOnChannel
public void startNoteWithVelocityOnChannel(byte note, byte velocity, byte channel)startNote:withVelocity:onChannel: sends a MIDI Note On event to the instrument- Parameters:
note- the note number (key) to play. Range: 0 -> 127velocity- specifies the volume with which the note is played. Range: 0 -> 127channel- the channel number to which the event is sent Range: 0 -> 15
-
stopNoteOnChannel
public void stopNoteOnChannel(byte note, byte channel)stopNote:onChannel: sends a MIDI Note Off event to the instrument- Parameters:
note- the note number (key) to stop Range: 0 -> 127channel- the channel number to which the event is sent. Range: 0 -> 15
-
volume
public float volume()
Description copied from interface:AVAudioMixing[@property] volume Set a bus's input volume Range: 0.0 -> 1.0 Default: 1.0 Mixers: AVAudioMixerNode, AVAudioEnvironmentNode- Specified by:
volumein interfaceAVAudioMixing
-
pointSourceInHeadMode
public long pointSourceInHeadMode()
Description copied from interface:AVAudio3DMixing[@property] pointSourceInHeadMode In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNode- Specified by:
pointSourceInHeadModein interfaceAVAudio3DMixing
-
setPointSourceInHeadMode
public void setPointSourceInHeadMode(long value)
Description copied from interface:AVAudio3DMixing[@property] pointSourceInHeadMode In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNode- Specified by:
setPointSourceInHeadModein interfaceAVAudio3DMixing
-
setSourceMode
public void setSourceMode(long value)
Description copied from interface:AVAudio3DMixing[@property] sourceMode Controls how individual channels of an input bus are rendered Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNode- Specified by:
setSourceModein interfaceAVAudio3DMixing
-
sourceMode
public long sourceMode()
Description copied from interface:AVAudio3DMixing[@property] sourceMode Controls how individual channels of an input bus are rendered Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNode- Specified by:
sourceModein interfaceAVAudio3DMixing
-
-