Table of Contents

Class TempoEvent

Namespace
NAudio.Midi
Assembly
NAudio.Midi.dll

Represents a MIDI tempo event

public class TempoEvent : MetaEvent, ICloneable
Inheritance
TempoEvent
Implements
Inherited Members

Constructors

TempoEvent(BinaryReader, int)

Reads a new tempo event from a MIDI stream

public TempoEvent(BinaryReader br, int length)

Parameters

br BinaryReader

The MIDI stream

length int

the data length

TempoEvent(int, long)

Creates a new tempo event with specified settings

public TempoEvent(int microsecondsPerQuarterNote, long absoluteTime)

Parameters

microsecondsPerQuarterNote int

Microseconds per quarter note

absoluteTime long

Absolute time

Properties

MicrosecondsPerQuarterNote

Microseconds per quarter note

public int MicrosecondsPerQuarterNote { get; set; }

Property Value

int

Tempo

Tempo

public double Tempo { get; set; }

Property Value

double

Methods

Clone()

Creates a deep clone of this MIDI event.

public override MidiEvent Clone()

Returns

MidiEvent

Export(ref long, BinaryWriter)

Calls base class export first, then exports the data specific to this event MidiEvent.Export

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

Parameters

absoluteTime long
writer BinaryWriter

ToString()

Describes this tempo event

public override string ToString()

Returns

string

String describing the tempo event