Class AVMIDINoteEvent

  • All Implemented Interfaces:
    NSObject

    public class AVMIDINoteEvent
    extends AVMusicEvent
    AVMIDINoteEvent The event class representing MIDI note-on/off messages. The AVAudioSequencer will automatically send a MIDI note-off after the note duration has passed. To send an explicit note-off event, create an AVMIDINoteEvent with its velocity set to zero. API-Since: 16.0
    • Constructor Detail

      • AVMIDINoteEvent

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVMIDINoteEvent 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)
      • channel

        public int channel()
        [@property] channel The MIDI channel for the event. Range: 0-15.
      • 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()
      • duration

        public double duration()
        [@property] duration The duration of the event in AVMusicTimeStamp beats. Range: Any non-negative number.
      • hash_static

        public static long hash_static()
      • initWithChannelKeyVelocityDuration

        public AVMIDINoteEvent initWithChannelKeyVelocityDuration​(int channel,
                                                                  int keyNum,
                                                                  int velocity,
                                                                  double duration)
        initWithChannel:key:velocity:duration Initialize the event with a MIDI channel, key number, velocity and duration.
        Parameters:
        channel - The MIDI channel. Range: 0-15.
        key - The MIDI key number. Range: 0-127.
        velocity - The MIDI velocity. Range: 0-127 with zero indicating a note-off event.
        duration - The duration in beats for this note. Range: Any non-negative number.
      • 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)
      • key

        public int key()
        [@property] key The MIDI key number for the event. Range: 0-127.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setChannel

        public void setChannel​(int value)
        [@property] channel The MIDI channel for the event. Range: 0-15.
      • setDuration

        public void setDuration​(double value)
        [@property] duration The duration of the event in AVMusicTimeStamp beats. Range: Any non-negative number.
      • setKey

        public void setKey​(int value)
        [@property] key The MIDI key number for the event. Range: 0-127.
      • setVelocity

        public void setVelocity​(int value)
        [@property] velocity The MIDI velocity for the event. Range: 0-127.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • velocity

        public int velocity()
        [@property] velocity The MIDI velocity for the event. Range: 0-127.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.