blob: 5838766b28acebb7b6db0f00a58ad6527decee91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "common.h"
// Timing calculations {{{
// NanoSeconds per Tick
int nspt(const int nbpm, const int resolution){
// nbpm: 133000 = 133bpm
// resolution: Tick per beat
return 60000000000 / (nbpm * resolution);
}
// }}}
// vim: syntax=cpp.doxygen
|