Package apple.avfaudio
Class AVAudioSequencer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfaudio.AVAudioSequencer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVAudioSequencer.Block_setUserCallback-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVAudioSequencer(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVAudioSequenceralloc()static AVAudioSequencerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)doublebeatsForHostTimeError(long inHostTime, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)beatsForHostTime:error: Returns the beat that will be (or was) played at the specified host time.doublebeatsForSeconds(double seconds)beatsForSeconds: Get the beat position (timestamp) for the given time in the AVMusicTrackstatic voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull AVMusicTrackcreateAndAppendTrack()createAndAppendTrack: Create a new AVMusicTrack and append it to the AVMusicSequencer's list API-Since: 16.0doublecurrentPositionInBeats()[@property] currentPositionInBeats The current playback position in beats Setting this positions the sequencer's player to the specified beat.doublecurrentPositionInSeconds()[@property] currentPositionInSeconds The current playback position in seconds Setting this positions the sequencer's player to the specified time.@NotNull NSDatadataWithSMPTEResolutionError(long SMPTEResolution, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)dataWithSMPTEResolution:error: Return a data object containing the events from the sequence All details regarding the SMPTE resolution apply here as well.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()longhostTimeForBeatsError(double inBeats, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)hostTimeForBeats:error: Returns the host time that will be (or was) played at the specified beat.AVAudioSequencerinit()init Initialize a new sequencer, which will not be connected to an audio engine.AVAudioSequencerinitWithAudioEngine(@NotNull AVAudioEngine engine)initWithAudioEngine: Initialize a new sequencer, handing it the audio engine.static 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)booleanisPlaying()[@property] playing Indicates whether or not the sequencer's player is playing Returns TRUE if the sequencer's player has been started and not stopped.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)booleanloadFromDataOptionsError(@NotNull NSData data, long options, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)loadFromData:options:error: Parse the data and add the its events to the sequencebooleanloadFromURLOptionsError(@NotNull NSURL fileURL, long options, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)loadFromURL:options:error: Load the file referenced by the URL and add the events to the sequencestatic AVAudioSequencernew_objc()voidprepareToPlay()prepareToPlay Get ready to play the sequence by prerolling all events Happens automatically on play if it has not already been called, but may produce a delay in startup.floatrate()[@property] rate The playback rate of the sequencer's player 1.0 is normal playback rate.booleanremoveTrack(@NotNull AVMusicTrack track)removeTrack: Remove the given AVMusicTrack from the AVMusicSequencer.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidreverseEvents()reverseEvents: Reverse the order of all events in all AVMusicTracks, including the tempo track API-Since: 16.0doublesecondsForBeats(double beats)secondsForBeats: Get the time in seconds for the given beat position (timestamp) in the AVMusicTrackvoidsetCurrentPositionInBeats(double value)[@property] currentPositionInBeats The current playback position in beats Setting this positions the sequencer's player to the specified beat.voidsetCurrentPositionInSeconds(double value)[@property] currentPositionInSeconds The current playback position in seconds Setting this positions the sequencer's player to the specified time.voidsetRate(float value)[@property] rate The playback rate of the sequencer's player 1.0 is normal playback rate.voidsetUserCallback(@Nullable AVAudioSequencer.Block_setUserCallback userCallback)setUserCallback: Add a block which will be called each time the AVAudioSequencer encounters an AVMusicUserEvent during playback.static voidsetVersion_static(long aVersion)booleanstartAndReturnError(@Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)startAndReturnError: Start the sequencer's player If the AVAudioSequencer has not been prerolled, it will pre-roll itself and then start.voidstop()stop Stop the sequencer's player Stopping the player leaves it in an un-prerolled state, but stores the playback position so that a subsequent call to startAndReturnError will resume where it left off.static org.moe.natj.objc.Classsuperclass_static()@NotNull AVMusicTracktempoTrack()[@property] tempoTrack The tempo track Each AVMusicSequence has a single tempo track.@NotNull NSArray<? extends AVMusicTrack>tracks()[@property] tracks An NSArray containing all the AVMusicTracks in the sequence This list will not include the tempo track.@NotNull NSDictionary<java.lang.String,?>userInfo()[@property] userInfo A dictionary containing meta-data derived from a sequence The dictionary can contain one or more of the values accessible via the AVAudioSequencerInfoDictionaryKeys.static booleanuseStoredAccessor()Deprecated.static longversion_static()booleanwriteToURLSMPTEResolutionReplaceExistingError(@NotNull NSURL fileURL, long resolution, boolean replace, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)writeToURL:SMPTEResolution:replaceExisting:error: Create and write a MIDI file containing the events and complete state of the sequence A MIDI file saved via this method will contain not only the complete MIDI content of the sequence, but also the state of all tracks, including muting, loop points and enablement, etc.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAudioSequencer alloc()
-
allocWithZone
public static AVAudioSequencer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
beatsForHostTimeError
public double beatsForHostTimeError(long inHostTime, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)beatsForHostTime:error: Returns the beat that will be (or was) played at the specified host time. This call is only valid if the player is playing and will return 0 with an error if the player is not playing or if the starting time of the player was after the specified host time. The method uses the sequence's tempo map to retrieve a beat time from the starting and specified host time.
-
beatsForSeconds
public double beatsForSeconds(double seconds)
beatsForSeconds: Get the beat position (timestamp) for the given time in the AVMusicTrack
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
currentPositionInBeats
public double currentPositionInBeats()
[@property] currentPositionInBeats The current playback position in beats Setting this positions the sequencer's player to the specified beat. This can be set while the player is playing, in which case playback will resume at the new position.
-
currentPositionInSeconds
public double currentPositionInSeconds()
[@property] currentPositionInSeconds The current playback position in seconds Setting this positions the sequencer's player to the specified time. This can be set while the player is playing, in which case playback will resume at the new position.
-
dataWithSMPTEResolutionError
@NotNull public @NotNull NSData dataWithSMPTEResolutionError(long SMPTEResolution, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
dataWithSMPTEResolution:error: Return a data object containing the events from the sequence All details regarding the SMPTE resolution apply here as well. The returned NSData lifetime is controlled by the client.
-
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()
-
hostTimeForBeatsError
public long hostTimeForBeatsError(double inBeats, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)hostTimeForBeats:error: Returns the host time that will be (or was) played at the specified beat. This call is only valid if the player is playing and will return 0 with an error if the player is not playing or if the starting position of the player (its "starting beat") was after the specified beat. The method uses the sequence's tempo map to translate a beat time from the starting time and beat of the player.
-
init
public AVAudioSequencer init()
init Initialize a new sequencer, which will not be connected to an audio engine. This is used to create a sequencer whose tracks will only send events to external MIDI endpoints.
-
initWithAudioEngine
public AVAudioSequencer initWithAudioEngine(@NotNull @NotNull AVAudioEngine engine)
initWithAudioEngine: Initialize a new sequencer, handing it the audio engine.
-
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)
-
isPlaying
public boolean isPlaying()
[@property] playing Indicates whether or not the sequencer's player is playing Returns TRUE if the sequencer's player has been started and not stopped. It may have "played" past the end of the events in the sequence, but it is still considered to be playing (and its time value increasing) until it is explicitly stopped.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
loadFromDataOptionsError
public boolean loadFromDataOptionsError(@NotNull @NotNull NSData data, long options, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)loadFromData:options:error: Parse the data and add the its events to the sequence- Parameters:
data- the data to load fromoptions- determines how the contents are mapped to tracks inside the sequenceoutError- on exit, if an error occurs, a description of the error
-
loadFromURLOptionsError
public boolean loadFromURLOptionsError(@NotNull @NotNull NSURL fileURL, long options, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)loadFromURL:options:error: Load the file referenced by the URL and add the events to the sequence- Parameters:
fileURL- the URL to the fileoptions- determines how the file's contents are mapped to tracks inside the sequenceoutError- on exit, if an error occurs, a description of the error
-
new_objc
public static AVAudioSequencer new_objc()
-
prepareToPlay
public void prepareToPlay()
prepareToPlay Get ready to play the sequence by prerolling all events Happens automatically on play if it has not already been called, but may produce a delay in startup.
-
rate
public float rate()
[@property] rate The playback rate of the sequencer's player 1.0 is normal playback rate. Rate must be > 0.0.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
secondsForBeats
public double secondsForBeats(double beats)
secondsForBeats: Get the time in seconds for the given beat position (timestamp) in the AVMusicTrack
-
setCurrentPositionInBeats
public void setCurrentPositionInBeats(double value)
[@property] currentPositionInBeats The current playback position in beats Setting this positions the sequencer's player to the specified beat. This can be set while the player is playing, in which case playback will resume at the new position.
-
setCurrentPositionInSeconds
public void setCurrentPositionInSeconds(double value)
[@property] currentPositionInSeconds The current playback position in seconds Setting this positions the sequencer's player to the specified time. This can be set while the player is playing, in which case playback will resume at the new position.
-
setRate
public void setRate(float value)
[@property] rate The playback rate of the sequencer's player 1.0 is normal playback rate. Rate must be > 0.0.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
startAndReturnError
public boolean startAndReturnError(@Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)startAndReturnError: Start the sequencer's player If the AVAudioSequencer has not been prerolled, it will pre-roll itself and then start. When the sequencer is associated with an audio engine, the sequencer's player will only play if the audio engine is running.
-
stop
public void stop()
stop Stop the sequencer's player Stopping the player leaves it in an un-prerolled state, but stores the playback position so that a subsequent call to startAndReturnError will resume where it left off. This action will not stop an associated audio engine.
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
tempoTrack
@NotNull public @NotNull AVMusicTrack tempoTrack()
[@property] tempoTrack The tempo track Each AVMusicSequence has a single tempo track. All tempo events read from external MIDI files are placed into this track (as well as other appropriate events (e.g., the time signature meta event from the file). The tempo track can be edited and iterated upon as any other track. Non-tempo-related events will generate exceptions if added.
-
tracks
@NotNull public @NotNull NSArray<? extends AVMusicTrack> tracks()
[@property] tracks An NSArray containing all the AVMusicTracks in the sequence This list will not include the tempo track.
-
userInfo
@NotNull public @NotNull NSDictionary<java.lang.String,?> userInfo()
[@property] userInfo A dictionary containing meta-data derived from a sequence The dictionary can contain one or more of the values accessible via the AVAudioSequencerInfoDictionaryKeys.
-
version_static
public static long version_static()
-
writeToURLSMPTEResolutionReplaceExistingError
public boolean writeToURLSMPTEResolutionReplaceExistingError(@NotNull @NotNull NSURL fileURL, long resolution, boolean replace, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)writeToURL:SMPTEResolution:replaceExisting:error: Create and write a MIDI file containing the events and complete state of the sequence A MIDI file saved via this method will contain not only the complete MIDI content of the sequence, but also the state of all tracks, including muting, loop points and enablement, etc. It will also contain all non-MIDI AVMusicEvent types which had been added to the sequence's track. MIDI files are normally beat based, but can also have a SMPTE (or real-time rather than beat time) representation. The relationship between "tick" and quarter note for saving to Standard MIDI File - pass in zero to use default - this will be the value that is currently set on the tempo track- Parameters:
fileURL- the path for the file to be createdresolution- the relationship between "tick" and quarter note for saving to a Standard MIDI File - pass in zero to use default - this will be the value that is currently set on the tempo trackreplace- if the file already exists, YES will cause it to be overwritten with the new data. Otherwise the call will fail with a permission error.outError- on exit, if an error occurs, a description of the error
-
createAndAppendTrack
@NotNull public @NotNull AVMusicTrack createAndAppendTrack()
createAndAppendTrack: Create a new AVMusicTrack and append it to the AVMusicSequencer's list API-Since: 16.0
-
removeTrack
public boolean removeTrack(@NotNull @NotNull AVMusicTrack track)removeTrack: Remove the given AVMusicTrack from the AVMusicSequencer. This does not destroy the AVMusicTrack because it may be re-used. API-Since: 16.0
-
reverseEvents
public void reverseEvents()
reverseEvents: Reverse the order of all events in all AVMusicTracks, including the tempo track API-Since: 16.0
-
setUserCallback
public void setUserCallback(@Nullable @Nullable AVAudioSequencer.Block_setUserCallback userCallback)setUserCallback: Add a block which will be called each time the AVAudioSequencer encounters an AVMusicUserEvent during playback. The same callback is called for events which occur on any track in the sequencer. Set the block to nil to disable it. API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-