Method
Libopenmpt.ModuleGetCurrentEstimatedBPM(IntPtr)

Summary

Syntax

[DllImport(DLL, EntryPoint = "openmpt_module_get_current_estimated_bpm")]
public static extern double ModuleGetCurrentEstimatedBPM(IntPtr mod)

Remarks

Many module formats lack time signature metadata. It is common that this estimate is off by a factor of two, but other multipliers are also possible. Due to the nature of how module tempo works, the estimate may change slightly after switching libopenmpt's output to a different sample rate.

Attributes

Type Description
DllImportAttribute

Parameters

Name Type Description
mod IntPtr The module handle to work on.

Return Value

Type Description
double The current estimated BPM.