MIDI Effect Host Interfaces


IMasterTrackInfo

Inheritance: FUnknown <- IMasterTrackInfo
Include File:  imidieffect.h

You can query the context variable passed on by IPluginBase::initialize for a reference to this interface.

PPQ conversion:

Tempo events:

Bar information:

Signature events:


IMasterTrackInfo::getPpqBase

long PLUGIN_API getPpqBase ()

Returns the PPQ base of the host application.


IMasterTrackInfo::seconds2ppq

long PLUGIN_API seconds2ppq (long seconds)

Converts from milliseconds to PPQ.


IMasterTrackInfo::ppq2seconds

long PLUGIN_API ppq2seconds (long ppq)

Converts from PPQ to milliseconds.


IMasterTrackInfo::countTempoEvents

long PLUGIN_API countTempoEvents ()

Counts the number of tempo changes in the current host arrangement.


IMasterTrackInfo::getTempo

tresult PLUGIN_API getTempo (long index, long* ppq, long* bpm)

Gets tempo change at the specified index. On return, ppq is set to the PPQ position of the tempo change, bpm is the tempo in BPM times 1000 (e.g. 120000 equals 120.000 BPM).


IMasterTrackInfo::getTempoIndex

long PLUGIN_API getTempoIndex (long ppq)

Gets an index for the tempo change table at the specified PPQ position.


IMasterTrackInfo::getBar

tresult PLUGIN_API getBar (
		long ppq,
		long* barCount,
		long* beatCount,
		long* remainder)

Gets bar information at the specified PPQ position.


IMasterTrackInfo::getBarPosition

long PLUGIN_API getBarPosition (long barCount, long beatCount, long remainder)

Gets PPQ position from bar information.


IMasterTrackInfo::countSignatureEvents

long PLUGIN_API countSignatureEvents ()

Returns the number of signature events in the current host arrangement.


IMasterTrackInfo::getSignature

tresult	PLUGIN_API getSignature (
		long index,
		long* numerator,
		long* denominator)

Gets signature information at the specified signature table index.


IMasterTrackInfo::getSignatureIndex

long PLUGIN_API getSignatureIndex (long ppq)

Gets a signature table index for the specified PPQ position.


ITransportInfo

Inheritance: FUnknown <- ITransportInfo
Include File:  imidieffect.h

You can query the context variable passed on by IPluginBase::initialize for a reference to this interface.

Methods:


ITransportInfo::getSystemTimePpq

long PLUGIN_API getSystemTimePpq ()

Returns the current system time of the host sequencer in PPQ.



Last Modified: