Package apple.avfaudio
Class AVMusicTrack
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfaudio.AVMusicTrack
-
- All Implemented Interfaces:
NSObject
public class AVMusicTrack extends NSObject
AVMusicTrack A collection of music events which will be sent to a given destination, and which can be offset, muted, etc. independently of events in other tracks. AVMusicTrack is not a container of AVMusicEvents - it will not hold references to AVMusicEvents that are added, so an application should maintain its own if it is desired. API-Since: 9.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVMusicTrack.Block_enumerateEventsInRangeUsingBlock-
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 protectedAVMusicTrack(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()voidaddEventAtBeat(@NotNull AVMusicEvent event, double beat)addAvent:atBeat Adds an AVMusicEvent's contents to a track at the specified AVMusicTimeStamp.static AVMusicTrackalloc()static AVMusicTrackallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static 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()voidclearEventsInRange(AVBeatRange range)clearEventsInRange: Removes all events in the given beat range, erasing that portion of the AVMusicTrack.voidcopyAndMergeEventsInRangeFromTrackMergeAtBeat(AVBeatRange range, @NotNull AVMusicTrack sourceTrack, double mergeStartBeat)copyAndMergeEventsInRange:fromTrack:mergeAtBeat Copies all events in the given beat range from the specified AVMusicTrack, merging them into the current AVMusicTrack.voidcopyEventsInRangeFromTrackInsertAtBeat(AVBeatRange range, @NotNull AVMusicTrack sourceTrack, double insertStartBeat)copyEventsInRange:fromTrack:insertAtBeat Copies all events in the given beat range from the specified AVMusicTrack, splicing them into the current AVMusicTrack.voidcutEventsInRange(AVBeatRange range)cutEventsInRange: Removes all events in the given beat range, splicing out that portion of the AVMusicTrack.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()@Nullable AVAudioUnitdestinationAudioUnit()[@property] destinationAudioUnit The AVAudioUnit which will receive the track's events This is mutually exclusive with setting a destination MIDIEndpoint.intdestinationMIDIEndpoint()voidenumerateEventsInRangeUsingBlock(AVBeatRange range, @NotNull AVMusicTrack.Block_enumerateEventsInRangeUsingBlock block)enumerateEventsInRange:usingBlock: Iterates through the AVMusicEvents within the AVMusicTrack whose timestamps fit within the range, calling the block for each.static longhash_static()AVMusicTrackinit()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)booleanisLoopingEnabled()[@property] loopingEnabled Determines whether or not the track is looped.booleanisMuted()[@property] muted Whether the track is mutedbooleanisSoloed()[@property] soloed Whether the track is soloedstatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)doublelengthInBeats()[@property] lengthInBeats The total duration of the track in beats This will return the beat of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc.doublelengthInSeconds()[@property] lengthInSeconds The total duration of the track in seconds This will return time of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc.AVBeatRangeloopRange()[@property] loopRange The timestamp range in beats for the loop The loop is set by specifying its beat range.voidmoveEventsInRangeByAmount(AVBeatRange range, double beatAmount)moveEventsInRange:byAmount Shift the beat location of all events in the given beat range by the amount specified.static AVMusicTracknew_objc()longnumberOfLoops()[@property] numberOfLoops The number of times that the track's loop will repeat If set to AVMusicTrackLoopCountForever, the track will loop forever.doubleoffsetTime()[@property] offsetTime Offset the track's start time to the specified time in beats By default this value is zero.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDestinationAudioUnit(@Nullable AVAudioUnit value)[@property] destinationAudioUnit The AVAudioUnit which will receive the track's events This is mutually exclusive with setting a destination MIDIEndpoint.voidsetDestinationMIDIEndpoint(int value)voidsetLengthInBeats(double value)[@property] lengthInBeats The total duration of the track in beats This will return the beat of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc.voidsetLengthInSeconds(double value)[@property] lengthInSeconds The total duration of the track in seconds This will return time of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc.voidsetLoopingEnabled(boolean value)[@property] loopingEnabled Determines whether or not the track is looped.voidsetLoopRange(AVBeatRange value)[@property] loopRange The timestamp range in beats for the loop The loop is set by specifying its beat range.voidsetMuted(boolean value)[@property] muted Whether the track is mutedvoidsetNumberOfLoops(long value)[@property] numberOfLoops The number of times that the track's loop will repeat If set to AVMusicTrackLoopCountForever, the track will loop forever.voidsetOffsetTime(double value)[@property] offsetTime Offset the track's start time to the specified time in beats By default this value is zero.voidsetSoloed(boolean value)[@property] soloed Whether the track is soloedvoidsetUsesAutomatedParameters(boolean value)[@property] usesAutomatedParameters Indicates whether the track is an automation track.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()longtimeResolution()[@property] timeResolution The time resolution value for the sequence, in ticks (pulses) per quarter note (PPQN) If a MIDI file was used to construct the containing sequence, the resolution will be what was in the file.booleanusesAutomatedParameters()[@property] usesAutomatedParameters Indicates whether the track is an automation track.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
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 AVMusicTrack alloc()
-
allocWithZone
public static AVMusicTrack allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
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()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
destinationAudioUnit
@Nullable public @Nullable AVAudioUnit destinationAudioUnit()
[@property] destinationAudioUnit The AVAudioUnit which will receive the track's events This is mutually exclusive with setting a destination MIDIEndpoint. The AU must already be attached to an audio engine, and the track must be part of the AVAudioSequencer associated with that engine. When playing, the track will send its events to that AVAudioUnit. The destination AU cannot be changed while the track's sequence is playing.
-
destinationMIDIEndpoint
public int destinationMIDIEndpoint()
-
hash_static
public static long hash_static()
-
init
public AVMusicTrack init()
-
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)
-
isLoopingEnabled
public boolean isLoopingEnabled()
[@property] loopingEnabled Determines whether or not the track is looped. If loopRange has not been set, the full track will be looped.
-
isMuted
public boolean isMuted()
[@property] muted Whether the track is muted
-
isSoloed
public boolean isSoloed()
[@property] soloed Whether the track is soloed
-
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)
-
lengthInBeats
public double lengthInBeats()
[@property] lengthInBeats The total duration of the track in beats This will return the beat of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
-
lengthInSeconds
public double lengthInSeconds()
[@property] lengthInSeconds The total duration of the track in seconds This will return time of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
-
loopRange
public AVBeatRange loopRange()
[@property] loopRange The timestamp range in beats for the loop The loop is set by specifying its beat range.
-
new_objc
public static AVMusicTrack new_objc()
-
numberOfLoops
public long numberOfLoops()
[@property] numberOfLoops The number of times that the track's loop will repeat If set to AVMusicTrackLoopCountForever, the track will loop forever. Otherwise, legal values start with 1.
-
offsetTime
public double offsetTime()
[@property] offsetTime Offset the track's start time to the specified time in beats By default this value is zero.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setDestinationAudioUnit
public void setDestinationAudioUnit(@Nullable @Nullable AVAudioUnit value)[@property] destinationAudioUnit The AVAudioUnit which will receive the track's events This is mutually exclusive with setting a destination MIDIEndpoint. The AU must already be attached to an audio engine, and the track must be part of the AVAudioSequencer associated with that engine. When playing, the track will send its events to that AVAudioUnit. The destination AU cannot be changed while the track's sequence is playing.
-
setDestinationMIDIEndpoint
public void setDestinationMIDIEndpoint(int value)
-
setLengthInBeats
public void setLengthInBeats(double value)
[@property] lengthInBeats The total duration of the track in beats This will return the beat of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
-
setLengthInSeconds
public void setLengthInSeconds(double value)
[@property] lengthInSeconds The total duration of the track in seconds This will return time of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
-
setLoopRange
public void setLoopRange(AVBeatRange value)
[@property] loopRange The timestamp range in beats for the loop The loop is set by specifying its beat range.
-
setLoopingEnabled
public void setLoopingEnabled(boolean value)
[@property] loopingEnabled Determines whether or not the track is looped. If loopRange has not been set, the full track will be looped.
-
setMuted
public void setMuted(boolean value)
[@property] muted Whether the track is muted
-
setNumberOfLoops
public void setNumberOfLoops(long value)
[@property] numberOfLoops The number of times that the track's loop will repeat If set to AVMusicTrackLoopCountForever, the track will loop forever. Otherwise, legal values start with 1.
-
setOffsetTime
public void setOffsetTime(double value)
[@property] offsetTime Offset the track's start time to the specified time in beats By default this value is zero.
-
setSoloed
public void setSoloed(boolean value)
[@property] soloed Whether the track is soloed
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
timeResolution
public long timeResolution()
[@property] timeResolution The time resolution value for the sequence, in ticks (pulses) per quarter note (PPQN) If a MIDI file was used to construct the containing sequence, the resolution will be what was in the file. If you want to keep a time resolution when writing a new file, you can retrieve this value and then specify it when calling -[AVAudioSequencer writeToFile:flags:withResolution]. It has no direct bearing on the rendering or notion of time of the sequence itself, just its representation in MIDI files. By default this is set to either 480 if the sequence was created manually, or a value based on what was in a MIDI file if the sequence was created from a MIDI file. This can only be retrieved from the tempo track.
-
version_static
public static long version_static()
-
addEventAtBeat
public void addEventAtBeat(@NotNull @NotNull AVMusicEvent event, double beat)addAvent:atBeat Adds an AVMusicEvent's contents to a track at the specified AVMusicTimeStamp. Because event contents are copied into the track, the same event may be added multiple times at different timestamps. There are restrictions on which AVMusicEvent subclasses may be added to different tracks: - Only AVExtendedTempoEvents and AVMIDIMetaEvents with certain AVMIDIMetaEventTypes can be added to an AVMusicSequence's tempo track (see AVMIDIMetaEvent). - AVParameterEvents can only be added to automation tracks (see AVParameterEvent). - All other event subclasses cannot be added to tempo or automation tracks.- Parameters:
event- the event to be addedbeat- the AVMusicTimeStamp
-
clearEventsInRange
public void clearEventsInRange(AVBeatRange range)
clearEventsInRange: Removes all events in the given beat range, erasing that portion of the AVMusicTrack. All events outside of the specified range left unmodified.- Parameters:
range- the range of beats. Must be a valid AVBeatRange.
-
copyAndMergeEventsInRangeFromTrackMergeAtBeat
public void copyAndMergeEventsInRangeFromTrackMergeAtBeat(AVBeatRange range, @NotNull @NotNull AVMusicTrack sourceTrack, double mergeStartBeat)
copyAndMergeEventsInRange:fromTrack:mergeAtBeat Copies all events in the given beat range from the specified AVMusicTrack, merging them into the current AVMusicTrack. All events originally at or past mergeStartBeat will be left unmodified. Copying events from track to track follows the same type-exclusion rules as adding events: The operation will generate an exception.- Parameters:
range- the range of beats. Must be a valid AVBeatRange.sourceTrack- the AVMusicTrack to copy the events from.insertStartBeat- the start beat at which the copied events should be merged.
-
copyEventsInRangeFromTrackInsertAtBeat
public void copyEventsInRangeFromTrackInsertAtBeat(AVBeatRange range, @NotNull @NotNull AVMusicTrack sourceTrack, double insertStartBeat)
copyEventsInRange:fromTrack:insertAtBeat Copies all events in the given beat range from the specified AVMusicTrack, splicing them into the current AVMusicTrack. All events originally at or past insertStartBeat will be shifted forward by the duration of the copied-in range.- Parameters:
range- the range of beats. Must be a valid AVBeatRange.sourceTrack- the AVMusicTrack to copy the events from.insertStartBeat- the start beat at which the copied events should be spliced in.
-
cutEventsInRange
public void cutEventsInRange(AVBeatRange range)
cutEventsInRange: Removes all events in the given beat range, splicing out that portion of the AVMusicTrack. All events past the end of the specified range will be shifted backward by the duration of the range.- Parameters:
range- the range of beats. Must be a valid AVBeatRange.
-
enumerateEventsInRangeUsingBlock
public void enumerateEventsInRangeUsingBlock(AVBeatRange range, @NotNull @NotNull AVMusicTrack.Block_enumerateEventsInRangeUsingBlock block)
enumerateEventsInRange:usingBlock: Iterates through the AVMusicEvents within the AVMusicTrack whose timestamps fit within the range, calling the block for each. Each event returned via the block should be examined using `NSObject(isKindOfClass:)` to determine its subclass and then cast and accessed/edited accordingly. The iteration may continue after removing an event. The event objects returned via the block will not be the same instances which were added to the AVMusicTrack, though their contents will be identical.- Parameters:
block- the AVMusicEventEnumerationBlock to call for each event.
-
moveEventsInRangeByAmount
public void moveEventsInRangeByAmount(AVBeatRange range, double beatAmount)
moveEventsInRange:byAmount Shift the beat location of all events in the given beat range by the amount specified.- Parameters:
range- the range of beats. Must be a valid AVBeatRange.beatAmount- the amount in beats to shift each event. The amount may be positive or negative.
-
setUsesAutomatedParameters
public void setUsesAutomatedParameters(boolean value)
[@property] usesAutomatedParameters Indicates whether the track is an automation track. If set to YES, this can be used to contain, parameter automation events, exclusively. Adding any other event types will generate exceptions. If a track already contains non-parameter events, setting this to YES will generate an exception.
-
usesAutomatedParameters
public boolean usesAutomatedParameters()
[@property] usesAutomatedParameters Indicates whether the track is an automation track. If set to YES, this can be used to contain, parameter automation events, exclusively. Adding any other event types will generate exceptions. If a track already contains non-parameter events, setting this to YES will generate an exception.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-