Shared Catalog
This commit is contained in:
@@ -86,6 +86,13 @@ auto vamp_zero::parse_notation_document(std::string_view json, std::string sourc
|
||||
return invalid(std::string{part.error().message()});
|
||||
}
|
||||
document.part = std::move(*part);
|
||||
if (metadata->if_contains("authored_key_signature")) {
|
||||
auto key = string_field(*metadata, "authored_key_signature");
|
||||
if (!key || key->empty()) {
|
||||
return invalid("authored_key_signature must be a nonempty string");
|
||||
}
|
||||
document.authored_key_signature = std::move(*key);
|
||||
}
|
||||
if (staff.if_contains("arrangement_part_type")) {
|
||||
auto type = string_field(staff, "arrangement_part_type");
|
||||
if (!type) {
|
||||
|
||||
Reference in New Issue
Block a user