NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVAudioSequencer(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static AVAudioSequencer |
alloc() |
static AVAudioSequencer |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
double |
beatsForHostTimeError(long inHostTime,
org.moe.natj.general.ptr.Ptr<NSError> outError)
beatsForHostTime:error:
|
double |
beatsForSeconds(double seconds)
beatsForSeconds:
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
double |
currentPositionInBeats()
[@property] currentPositionInBeats
|
double |
currentPositionInSeconds()
[@property] currentPositionInSeconds
|
NSData |
dataWithSMPTEResolutionError(long SMPTEResolution,
org.moe.natj.general.ptr.Ptr<NSError> outError)
dataWithSMPTEResolution:error:
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
long |
hostTimeForBeatsError(double inBeats,
org.moe.natj.general.ptr.Ptr<NSError> outError)
hostTimeForBeats:error:
|
AVAudioSequencer |
init()
init
|
AVAudioSequencer |
initWithAudioEngine(AVAudioEngine engine)
initWithAudioEngine:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isPlaying()
[@property] playing
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
loadFromDataOptionsError(NSData data,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
loadFromData:options:error:
|
boolean |
loadFromURLOptionsError(NSURL fileURL,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
loadFromURL:options:error:
|
static AVAudioSequencer |
new_objc() |
void |
prepareToPlay()
prepareToPlay
|
float |
rate()
[@property] rate
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
double |
secondsForBeats(double beats)
secondsForBeats:
|
void |
setCurrentPositionInBeats(double value)
[@property] currentPositionInBeats
|
void |
setCurrentPositionInSeconds(double value)
[@property] currentPositionInSeconds
|
void |
setRate(float value)
[@property] rate
|
static void |
setVersion_static(long aVersion) |
boolean |
startAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> outError)
startAndReturnError:
|
void |
stop()
stop
|
static org.moe.natj.objc.Class |
superclass_static() |
AVMusicTrack |
tempoTrack()
[@property] tempoTrack
|
NSArray<? extends AVMusicTrack> |
tracks()
[@property] tracks
|
NSDictionary<java.lang.String,?> |
userInfo()
[@property] userInfo
|
static long |
version_static() |
boolean |
writeToURLSMPTEResolutionReplaceExistingError(NSURL fileURL,
long resolution,
boolean replace,
org.moe.natj.general.ptr.Ptr<NSError> outError)
writeToURL:SMPTEResolution:replaceExisting:error:
|
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static AVAudioSequencer alloc()
public static AVAudioSequencer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public double beatsForHostTimeError(long inHostTime,
org.moe.natj.general.ptr.Ptr<NSError> outError)
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.
public double beatsForSeconds(double seconds)
Get the beat position (timestamp) for the given time in the track
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public double 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.
public double 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.
public NSData dataWithSMPTEResolutionError(long SMPTEResolution, org.moe.natj.general.ptr.Ptr<NSError> outError)
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.
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public long hostTimeForBeatsError(double inBeats,
org.moe.natj.general.ptr.Ptr<NSError> outError)
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.
public AVAudioSequencer 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.
public AVAudioSequencer initWithAudioEngine(AVAudioEngine engine)
Initialize a new sequencer, handing it the audio engine.
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public boolean isPlaying()
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.
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public boolean loadFromDataOptionsError(NSData data, long options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Parse the data and add the its events to the sequence
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 errorpublic boolean loadFromURLOptionsError(NSURL fileURL, long options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Load the file referenced by the URL and add the events to the sequence
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 errorpublic static AVAudioSequencer new_objc()
public void 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.
public float rate()
The playback rate of the sequencer's player
1.0 is normal playback rate. Rate must be > 0.0.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public double secondsForBeats(double beats)
Get the time in seconds for the given beat position (timestamp) in the track
public void setCurrentPositionInBeats(double value)
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.
public void setCurrentPositionInSeconds(double value)
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.
public void setRate(float value)
The playback rate of the sequencer's player
1.0 is normal playback rate. Rate must be > 0.0.
public static void setVersion_static(long aVersion)
public boolean startAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> outError)
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.
public void 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.
public static org.moe.natj.objc.Class superclass_static()
public AVMusicTrack tempoTrack()
The tempo track
Each sequence has a single tempo track. All tempo events are placed into this track (as well as other appropriate events (for instance, the time signature from a MIDI file). The tempo track can be edited and iterated upon as any other track. Non-tempo events in a tempo track are ignored.
public NSArray<? extends AVMusicTrack> tracks()
An NSArray containing all the tracks in the sequence
Track indices count from 0, and do not include the tempo track.
public NSDictionary<java.lang.String,?> userInfo()
A dictionary containing meta-data derived from a sequence
The dictionary can contain one or more of the kAFInfoDictionary_* keys
specified in
public static long version_static()
public boolean writeToURLSMPTEResolutionReplaceExistingError(NSURL fileURL, long resolution, boolean replace, org.moe.natj.general.ptr.Ptr<NSError> outError)
Create and write a MIDI file from the events in the sequence
Only MIDI events are written when writing to the MIDI file. 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
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