Search Results for

    Show / Hide Table of Contents

    Class ChannelEvent

    Represents a MIDI file channel event.
    Inheritance
    object
    MidiEvent
    ChannelEvent
    ChannelAftertouchEvent
    ControlChangeEvent
    NoteAftertouchEvent
    NoteEvent
    PitchBendEvent
    ProgramChangeEvent
    Inherited Members
    MidiEvent.UnknownContentSize
    MidiEvent.EventType
    MidiEvent.DeltaTime
    MidiEvent.CloneEvent()
    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.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public abstract class ChannelEvent : MidiEvent

    Constructors

    ChannelEvent(MidiEventType)

    Initializes a new instance of the ChannelEvent with the specified parameters count.
    Declaration
    protected ChannelEvent(MidiEventType eventType)
    Parameters
    Type Name Description
    MidiEventType eventType The type of event.

    Properties

    Channel

    Gets or sets channel for this event.
    Declaration
    public FourBitNumber Channel { get; set; }
    Property Value
    Type Description
    FourBitNumber

    Methods

    ReadDataByte(MidiReader, ReadingSettings)

    Reads channel event's data byte using the specified reader and settings.
    Declaration
    protected byte ReadDataByte(MidiReader reader, ReadingSettings settings)
    Parameters
    Type Name Description
    MidiReader reader Reader to read data byte with.
    ReadingSettings settings Settings according to which a data byte should be read and processed.
    Returns
    Type Description
    byte A data byte read with reader.
    In this article
    Back to top 2024 / Generated by DocFX