use floats for tempo calculation
This commit is contained in:
parent
c2a08cc84d
commit
2e7f50064c
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
#include <cstring>
|
||||
|
@ -503,7 +504,7 @@ void PrintAgbTrack(std::vector<Event>& events)
|
|||
ResetTrackVars();
|
||||
break;
|
||||
case EventType::Tempo:
|
||||
PrintByte("TEMPO , %u*%s_tbs/2", 60000000 / event.param2, g_asmLabel.c_str());
|
||||
PrintByte("TEMPO , %u*%s_tbs/2", static_cast<int>(round(60000000.0f / static_cast<float>(event.param2))), g_asmLabel.c_str());
|
||||
PrintWait(event.time);
|
||||
break;
|
||||
case EventType::InstrumentChange:
|
||||
|
|
Loading…
Reference in a new issue