F.E.I.S/src/better_beats.hpp
2022-04-03 15:59:05 +02:00

15 lines
399 B
C++

#pragma once
#include <cstdint>
#include <json.hpp>
#include "special_numeric_types.hpp"
// Utilities for dumping to memon
bool is_expressible_as_240th(const Fraction& beat);
nlohmann::ordered_json beat_to_best_form(const Fraction& beat);
nlohmann::ordered_json beat_to_fraction_tuple(const Fraction& beat);
Fraction load_memon_1_0_0_beat(const nlohmann::json& json, std::uint64_t resolution);