Files
Work/guitar/backup/20030502/Timing.hpp
2024-08-07 09:16:27 -04:00

49 lines
1.2 KiB
C++

#ifndef _GUITAR_TIMING_HPP_
#define _GUITAR_TIMING_HPP_
#ifndef _COMMON_STRING_HPP_
#include <common/string.hpp>
#endif
#ifndef _GUITAR_NOTETYPE_HPP_
#include <guitar/NoteType.hpp>
#endif
class Timing
{
public:
static int microsecondsPerQuarterNote(int microsecondsPerQuarterNote);
static int microsecondsPerQuarterNote(void);
static void secondsPerQuarterNote(float secondsPerQuarterNote);
static int millisecondsPerWholeNote(void);
static int millisecondsPerHalfNote(void);
static int millisecondsPerQuarterNote(void);
static int millisecondsPerEightNote(void);
static int millisecondsPerSixteenthNote(void);
static int millisecondsPerThirtySecondNote(void);
static int millisecondsPerSixtyFourthNote(void);
static int getDelay(const NoteType &noteType);
static String toString(void);
private:
Timing();
virtual ~Timing();
static int mMicrosecondsPerQuarterNote;
static int mMillisecondsPerWholeNote;
static int mMillisecondsPerHalfNote;
static int mMillisecondsPerQuarterNote;
static int mMillisecondsPerEigthNote;
static int mMillisecondsPerSixteenthNote;
static int mMillisecondsPerThirtySecondNote;
static int mMillisecondsPerSixtyFourthNote;
};
inline
Timing::Timing()
{
}
inline
Timing::~Timing()
{
}
#endif