Table of Contents

Class NoteEvent

Namespace
NAudio.Midi
Assembly
NAudio.Midi.dll

Represents a note MIDI event

public class NoteEvent : MidiEvent, ICloneable
Inheritance
NoteEvent
Implements
Derived
Inherited Members

Constructors

NoteEvent(BinaryReader)

Reads a NoteEvent from a stream of MIDI data

public NoteEvent(BinaryReader br)

Parameters

br BinaryReader

Binary Reader for the stream

NoteEvent(long, int, MidiCommandCode, int, int)

Creates a MIDI Note Event with specified parameters

public NoteEvent(long absoluteTime, int channel, MidiCommandCode commandCode, int noteNumber, int velocity)

Parameters

absoluteTime long

Absolute time of this event

channel int

MIDI channel number

commandCode MidiCommandCode

MIDI command code

noteNumber int

MIDI Note Number

velocity int

MIDI Note Velocity

Properties

NoteName

The note name

public string NoteName { get; }

Property Value

string

NoteNumber

The MIDI note number

public virtual int NoteNumber { get; set; }

Property Value

int

Velocity

The note velocity

public int Velocity { get; set; }

Property Value

int

Methods

Export(ref long, BinaryWriter)

public override void Export(ref long absoluteTime, BinaryWriter writer)

Parameters

absoluteTime long
writer BinaryWriter

GetAsShortMessage()

public override int GetAsShortMessage()

Returns

int

ToString()

Describes the Note Event

public override string ToString()

Returns

string

Note event as a string