diff --git a/docgenerator/data.json b/docgenerator/data.json index bf181afc..517c61f9 100644 --- a/docgenerator/data.json +++ b/docgenerator/data.json @@ -2875,7 +2875,7 @@ "pk": 129, "fields": { "parent": 78, - "child_key": "multimeasure-rests", + "child_key": "multimeasureRests", "child": 102, "is_required": false, "description": "Defines all of the multimeasure rests within this particular score." @@ -5114,8 +5114,8 @@ "name": "Multimeasure rests", "slug": "multimeasure-rests", "schema": 1, - "blurb": "This example document contains three views of the same underlying music: a \"full score\" plus two parts as intended for individual musicians. In MNX, these are represented by three separate elements.\r\n\r\nMultimeasure rests are tied to a particular . They live within the element, and each rest defines its starting measure number and how long the rest lasts.", - "document": "{\r\n\"mnx\": {\"version\": 1},\r\n \"global\": {\r\n \"measures\": [\r\n {\r\n \"barline\": {\"type\": \"regular\"},\r\n \"time\": {\"count\": 4, \"unit\": 4}\r\n },\r\n {},\r\n {},\r\n {},\r\n {},\r\n {},\r\n {}\r\n ]\r\n },\r\n \"parts\": [\r\n {\r\n \"id\": \"PartA\",\r\n \"measures\": [\r\n {\r\n \"clefs\": [\r\n {\"clef\": {\"sign\": \"G\", \"staffPosition\": -2}}\r\n ],\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"PartB\",\r\n \"measures\": [\r\n {\r\n \"clefs\": [\r\n {\"clef\": {\"sign\": \"G\", \"staffPosition\": -2}}\r\n ],\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"D\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"D\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"layouts\": [\r\n {\r\n \"id\": \"PartAAlone\",\r\n \"content\": [\r\n {\r\n \"type\": \"staff\",\r\n \"sources\": [\r\n {\"part\": \"PartA\"}\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"PartBAlone\",\r\n \"content\": [\r\n {\r\n \"type\": \"staff\",\r\n \"sources\": [\r\n {\"part\": \"PartB\"}\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"scores\": [\r\n {\r\n \"name\": \"Full score\",\r\n \"pages\": [\r\n {\"systems\": [\r\n {\"measure\": 1},\r\n {\"measure\": 5}\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Part A\",\r\n \"layout\": \"PartAAlone\",\r\n \"multimeasure-rests\": [\r\n {\"start\": 3, \"duration\": 2}\r\n ]\r\n },\r\n {\r\n \"name\": \"Part B\",\r\n \"layout\": \"PartBAlone\",\r\n \"multimeasure-rests\": [\r\n {\"start\": 1, \"duration\": 2},\r\n {\"start\": 5, \"duration\": 2}\r\n ]\r\n }\r\n ]\r\n}", + "blurb": "This example document contains three views of the same underlying music: a \"full score\" plus two parts as intended for individual musicians. In MNX, these are represented by three separate score objects.\r\n\r\nMultimeasure rests are tied to a particular score. They live within the \"multimeasureRests\" object, and each rest defines its starting measure number and how long the rest lasts.", + "document": "{\r\n\"mnx\": {\"version\": 1},\r\n \"global\": {\r\n \"measures\": [\r\n {\r\n \"barline\": {\"type\": \"regular\"},\r\n \"time\": {\"count\": 4, \"unit\": 4}\r\n },\r\n {},\r\n {},\r\n {},\r\n {},\r\n {},\r\n {}\r\n ]\r\n },\r\n \"parts\": [\r\n {\r\n \"id\": \"PartA\",\r\n \"measures\": [\r\n {\r\n \"clefs\": [\r\n {\"clef\": {\"sign\": \"G\", \"staffPosition\": -2}}\r\n ],\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"G\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"PartB\",\r\n \"measures\": [\r\n {\r\n \"clefs\": [\r\n {\"clef\": {\"sign\": \"G\", \"staffPosition\": -2}}\r\n ],\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"D\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"E\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"quarter\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"D\", \"octave\": 5}}\r\n ]\r\n },\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"half\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"rest\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"sequences\": [\r\n {\r\n \"content\": [\r\n {\r\n \"type\": \"event\",\r\n \"duration\": {\"base\": \"whole\"},\r\n \"notes\": [\r\n {\"pitch\": {\"step\": \"C\", \"octave\": 5}}\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"layouts\": [\r\n {\r\n \"id\": \"PartAAlone\",\r\n \"content\": [\r\n {\r\n \"type\": \"staff\",\r\n \"sources\": [\r\n {\"part\": \"PartA\"}\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"PartBAlone\",\r\n \"content\": [\r\n {\r\n \"type\": \"staff\",\r\n \"sources\": [\r\n {\"part\": \"PartB\"}\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"scores\": [\r\n {\r\n \"name\": \"Full score\",\r\n \"pages\": [\r\n {\"systems\": [\r\n {\"measure\": 1},\r\n {\"measure\": 5}\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Part A\",\r\n \"layout\": \"PartAAlone\",\r\n \"multimeasureRests\": [\r\n {\"start\": 3, \"duration\": 2}\r\n ]\r\n },\r\n {\r\n \"name\": \"Part B\",\r\n \"layout\": \"PartBAlone\",\r\n \"multimeasureRests\": [\r\n {\"start\": 1, \"duration\": 2},\r\n {\"start\": 5, \"duration\": 2}\r\n ]\r\n }\r\n ]\r\n}", "image_url": "/static/examples/multimeasure-rests.png", "is_featured": false } diff --git a/docs/mnx-reference/examples/multimeasure-rests/index.html b/docs/mnx-reference/examples/multimeasure-rests/index.html index fe5a88a8..03fdd612 100644 --- a/docs/mnx-reference/examples/multimeasure-rests/index.html +++ b/docs/mnx-reference/examples/multimeasure-rests/index.html @@ -58,7 +58,7 @@

Multimeasure rests

-

This example document contains three views of the same underlying music: a "full score" plus two parts as intended for individual musicians. In MNX, these are represented by three separate <score> elements.

Multimeasure rests are tied to a particular <score>. They live within the <multimeasure-rests> element, and each rest defines its starting measure number and how long the rest lasts.

+

This example document contains three views of the same underlying music: a "full score" plus two parts as intended for individual musicians. In MNX, these are represented by three separate score objects.

Multimeasure rests are tied to a particular score. They live within the "multimeasureRests" object, and each rest defines its starting measure number and how long the rest lasts.

@@ -596,7 +596,7 @@

Multimeasure rests

}, { "layout": "PartAAlone", - "multimeasure-rests": [ + "multimeasureRests": [ { "duration": 2, "start": 3 @@ -606,7 +606,7 @@

Multimeasure rests

}, { "layout": "PartBAlone", - "multimeasure-rests": [ + "multimeasureRests": [ { "duration": 2, "start": 1 diff --git a/docs/mnx-reference/objects/score/index.html b/docs/mnx-reference/objects/score/index.html index 42d94c71..298d3227 100644 --- a/docs/mnx-reference/objects/score/index.html +++ b/docs/mnx-reference/objects/score/index.html @@ -87,7 +87,7 @@

Keys:

- "multimeasure-rests" + "multimeasureRests" An array of diff --git a/docs/mnx-schema.json b/docs/mnx-schema.json index 0b603083..53a5d602 100644 --- a/docs/mnx-schema.json +++ b/docs/mnx-schema.json @@ -1061,7 +1061,7 @@ "layout": { "$ref": "#/$defs/id" }, - "multimeasure-rests": { + "multimeasureRests": { "items": { "additionalProperties": false, "properties": {