resonance 1.0.1
Loading...
Searching...
No Matches
quantizer.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/trackdata.h"
4
14class Quantizer {
15public:
23 Quantizer(const TrackData *pTrackData);
24
33 int Quantize(int nTick);
34
43 int GetQuantum(int nTick);
44
57 static unsigned Round(unsigned nTick, unsigned nQuantum);
58
59private:
60 const TrackData *mTrackData; // +0x00
61};
int GetQuantum(int nTick)
Report the quantisation of the bar a song position falls in.
int Quantize(int nTick)
Round a song position to the quantisation of its bar.
Quantizer(const TrackData *pTrackData)
Retain the track description.
static unsigned Round(unsigned nTick, unsigned nQuantum)
Round a song position to the nearest multiple of a quantum.
Converted events of one track of a level.
Definition trackdata.h:52