@@ -166,7 +166,7 @@ auto checksum(std::string const &bytes) -> std::string {
|
||||
}
|
||||
|
||||
auto write_score(std::filesystem::path const &path, std::string part = "Lead") -> void {
|
||||
auto score = boost::json::parse(R"({"schema_version":3,"music":{"metadata":{"title":"Fixture","composer":"Composer",
|
||||
auto score = boost::json::parse(R"({"music":{"metadata":{"title":"Fixture","composer":"Composer",
|
||||
"key_signature":"C","time_signature":"4/4"},"staves":[{"name":"Lead","measures":[{"voices":[]}]}]},
|
||||
"presentation":{"width":976,"height":484,"pages":[]}})");
|
||||
score.at("music").at("staves").as_array().front().as_object()["name"] = part;
|
||||
|
||||
Reference in New Issue
Block a user