F.E.I.S/src/better_beats.hpp

15 lines
399 B
C++
Raw Normal View History

#pragma once
2022-04-03 15:59:05 +02:00
#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);
2022-04-03 15:59:05 +02:00
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);