Search Results for

    Show / Hide Table of Contents

    Class NoteOnEvent

    Represents a Note On message.
    Inheritance
    object
    MidiEvent
    ChannelEvent
    NoteEvent
    NoteOnEvent
    Inherited Members
    NoteEvent.NoteNumber
    NoteEvent.Velocity
    ChannelEvent.Channel
    MidiEvent.UnknownContentSize
    MidiEvent.EventType
    MidiEvent.DeltaTime
    MidiEvent.Clone()
    MidiEvent.Equals(MidiEvent, MidiEvent)
    MidiEvent.Equals(MidiEvent, MidiEvent, out string)
    MidiEvent.Equals(MidiEvent, MidiEvent, MidiEventEqualityCheckSettings)
    MidiEvent.Equals(MidiEvent, MidiEvent, MidiEventEqualityCheckSettings, out string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class NoteOnEvent : NoteEvent
    Remarks
    This message is sent when a note is depressed (start).

    Constructors

    NoteOnEvent()

    Initializes a new instance of the NoteOnEvent.
    Declaration
    public NoteOnEvent()

    NoteOnEvent(SevenBitNumber, SevenBitNumber)

    Initializes a new instance of the NoteOnEvent with the specified note number and velocity.
    Declaration
    public NoteOnEvent(SevenBitNumber noteNumber, SevenBitNumber velocity)
    Parameters
    Type Name Description
    SevenBitNumber noteNumber Note number.
    SevenBitNumber velocity Velocity.

    Methods

    CloneEvent()

    Clones event by creating a copy of it.
    Declaration
    protected override MidiEvent CloneEvent()
    Returns
    Type Description
    MidiEvent Copy of the event.
    Overrides
    MidiEvent.CloneEvent()

    ToString()

    Returns a string that represents the current object.
    Declaration
    public override string ToString()
    Returns
    Type Description
    string A string that represents the current object.
    Overrides
    object.ToString()

    Extension Methods

    NoteEventUtilities.GetNoteName(NoteEvent)
    NoteEventUtilities.GetNoteOctave(NoteEvent)
    NoteEventUtilities.SetNoteNumber(NoteEvent, NoteName, int)
    In this article
    Back to top 2024 / Generated by DocFX