wavelength 1.0.0
Loading...
Searching...
No Matches
MBT Class Reference

Song position split into a measure, a beat, and a tick within the beat. More...

#include <mbt.h>

Public Member Functions

 MBT (int nTick, int nBeatsPerMeasure, int nTicksPerBeat)
 Split a position.
String ToString () const
 Format the position as measure:beat:tick.

Detailed Description

Song position split into a measure, a beat, and a tick within the beat.

The class is not polymorphic and has no RTTI. The name follows the Mid::MBT of the related engine. The error messages of the track builders print the position of a MIDI event with it.

Constructor & Destructor Documentation

◆ MBT()

MBT::MBT ( int nTick,
int nBeatsPerMeasure,
int nTicksPerBeat )

Split a position.

Parameters
nTickThe position in ticks.
nBeatsPerMeasureThe beats in one measure.
nTicksPerBeatThe ticks in one beat.
Ghidra address:
NTSC-U/C: 0x0015c378
Ghidra address:
PAL: 0x0015db68

Member Function Documentation

◆ ToString()

String MBT::ToString ( ) const

Format the position as measure:beat:tick.

Returns
The text.
Ghidra address:
NTSC-U/C: 0x0015c3b8
Ghidra address:
PAL: 0x0015dba8

The documentation for this class was generated from the following file: