Class AVExtendedNoteOnEvent

  • All Implemented Interfaces:
    NSObject

    public class AVExtendedNoteOnEvent
    extends AVMusicEvent
    AVExtendedNoteOnEvent The event class representing a custom extension of a MIDI note-on. Using an AVExtendedNoteOnEvent allows an application to trigger a specialized note-on event on one of several Apple audio units which support it. The floating point note and velocity numbers allow optional fractional control of the note's run-time properties which are modulated by those inputs. In addition, it supports the possibility of an audio unit with more than the standard 16 MIDI channels. API-Since: 16.0
    • Constructor Detail

      • AVExtendedNoteOnEvent

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVExtendedNoteOnEvent 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()
      • duration

        public double duration()
        [@property] duration The duration of this event in AVMusicTimeStamp beats. Range: Any nonnegative number.
      • groupID

        public int groupID()
        [@property] groupID This represents the audio unit channel (i.e., Group Scope) which should handle this event. Range: normally between 0 and 15, but may be higher if the AVMusicTrack's destinationAudioUnit supports more channels.
      • hash_static

        public static long hash_static()
      • initWithMIDINoteVelocityGroupIDDuration

        public AVExtendedNoteOnEvent initWithMIDINoteVelocityGroupIDDuration​(float midiNote,
                                                                             float velocity,
                                                                             int groupID,
                                                                             double duration)
        initWithMIDINote:velocity:groupID:duration Initialize the event with a midi note, velocity, instrument and group ID, and a duration.
        Parameters:
        midiNote - The MIDI velocity represented as a floating point. Range: Destination-dependent, usually 0.0 - 127.0.
        velocity - The MIDI velocity represented as a floating point. Range: Destination-dependent, usually 0.0 - 127.0.
        groupID - An index indicating the AudioUnitElement within the Group Scope which should handle this event (see AudioUnitElement). This normally maps to a channel within the audio unit. Range: normally between 0 and 15, but may be higher if the AVMusicTrack's destinationAudioUnit supports more channels.
        duration - The duration of this event in AVMusicTimeStamp beats. Range: Any nonnegative number.
      • initWithMIDINoteVelocityInstrumentIDGroupIDDuration

        public AVExtendedNoteOnEvent initWithMIDINoteVelocityInstrumentIDGroupIDDuration​(float midiNote,
                                                                                         float velocity,
                                                                                         int instrumentID,
                                                                                         int groupID,
                                                                                         double duration)
        initWithMIDINote:velocity:instrumentID:groupID:duration Initialize the event with a midi note, velocity, instrument and group ID, and a duration. This initializer is identical to initWithMIDINote:velocity:groupID:duration with the addition of an instrumentID parameter which will allow for the possibility of an externally-created custom instrument. If this initializer is used, instrumentID should be set to AVExtendedNoteOnEventDefaultInstrument for now.
      • instanceMethodSignatureForSelector

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

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • instrumentID

        public int instrumentID()
        [@property] instrumentID This should be set to AVExtendedNoteOnEventDefaultInstrument.
      • 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)
      • midiNote

        public float midiNote()
        [@property] midiNote The MIDI note number represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate arbitrary macro- and micro-tunings. Range: Destination-dependent, usually 0.0 - 127.0.
      • resolveClassMethod

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

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

        public void setDuration​(double value)
        [@property] duration The duration of this event in AVMusicTimeStamp beats. Range: Any nonnegative number.
      • setGroupID

        public void setGroupID​(int value)
        [@property] groupID This represents the audio unit channel (i.e., Group Scope) which should handle this event. Range: normally between 0 and 15, but may be higher if the AVMusicTrack's destinationAudioUnit supports more channels.
      • setInstrumentID

        public void setInstrumentID​(int value)
        [@property] instrumentID This should be set to AVExtendedNoteOnEventDefaultInstrument.
      • setMidiNote

        public void setMidiNote​(float value)
        [@property] midiNote The MIDI note number represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate arbitrary macro- and micro-tunings. Range: Destination-dependent, usually 0.0 - 127.0.
      • setVelocity

        public void setVelocity​(float value)
        [@property] velocity The MIDI velocity represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate very precise changes in gain, etc. Range: Destination-dependent, usually 0.0 - 127.0.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public float velocity()
        [@property] velocity The MIDI velocity represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate very precise changes in gain, etc. Range: Destination-dependent, usually 0.0 - 127.0.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.