Class 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.
    • Constructor Detail

      • AVMusicTrack

        protected AVMusicTrack​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • 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()
      • destinationAudioUnit

        public 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()
      • 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.
      • 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.
      • isMuted

        public boolean isMuted()
        [@property] muted Whether the track is muted
      • setMuted

        public void setMuted​(boolean value)
        [@property] muted Whether the track is muted
      • isSoloed

        public boolean isSoloed()
        [@property] soloed Whether the track is soloed
      • setSoloed

        public void setSoloed​(boolean value)
        [@property] soloed Whether the track is soloed
      • 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.
      • 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.
      • setDestinationAudioUnit

        public void setDestinationAudioUnit​(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.
      • 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.
      • 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.