Skip to content

Commit

Permalink
Changed system object to use camelCase for layoutChanges key.
Browse files Browse the repository at this point in the history
Refs #334.
  • Loading branch information
adrianholovaty committed Apr 22, 2024
1 parent e93ec91 commit d87ed35
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions docgenerator/data.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/mnx-reference/examples/multiple-layouts/index.html
Expand Up @@ -58,7 +58,7 @@ <h1>Multiple layouts</h1>



<p>In this image, you see three different representations of the same underlying SATB music — one with four separate staves, one with two staves (using multiple voices) and one with two staves (using notes combined into chords).<br><br>This can be encoded entirely within a single MNX document. The underlying music (the notes, barlines, etc.) is encoded only once, within the &lt;global&gt; and &lt;part&gt; elements. But there are three separate &lt;score&gt; elements — one for each visual representation of the music.<br><br>A &lt;score&gt; references a particular &lt;layout&gt;. The &lt;layout&gt; element is where the style information is contained: which parts, in which order.</p>
<p>In this image, you see three different representations of the same underlying SATB music — one with four separate staves, one with two staves (using multiple voices) and one with two staves (using notes combined into chords).<br><br>This can be encoded entirely within a single MNX document. The underlying music (the notes, barlines, etc.) is encoded only once, within the &quot;global&quot; and &quot;part&quot; objects. But there are three separate score objects — one for each visual representation of the music.<br><br>A score references a particular layout. The layout object is where the style information is contained: which parts, in which order.</p>



Expand Down Expand Up @@ -806,7 +806,7 @@ <h1>Multiple layouts</h1>
<a class="tag" href="../../objects/page/">"systems"</a>: [
{
<a class="tag" href="../../objects/system/">"layout"</a>: <a class="tag" href="../../objects/id/">"Choral2StaffChorded"</a>,
<a class="tag" href="../../objects/system/">"layout-changes"</a>: [
<a class="tag" href="../../objects/system/">"layoutChanges"</a>: [
{
<a class="tag" href="../../objects/layout-change/">"layout"</a>: <a class="tag" href="../../objects/id/">"Choral2StaffMenSplit"</a>,
<a class="tag" href="../../objects/layout-change/">"location"</a>: <a class="tag" href="../../objects/measure-location/">"2"</a>
Expand Down
7 changes: 1 addition & 6 deletions docs/mnx-reference/examples/organ-layout/index.html
Expand Up @@ -373,12 +373,7 @@ <h1>Organ layout</h1>
<a class="tag" href="../../objects/page/">"systems"</a>: [
{
<a class="tag" href="../../objects/system/">"layout"</a>: <a class="tag" href="../../objects/id/">"organ3Staff"</a>,
<a class="tag" href="../../objects/system/">"layout-changes"</a>: [
{
<a class="tag" href="../../objects/layout-change/">"layout"</a>: <a class="tag" href="../../objects/id/">"organ3StaffSplitOber"</a>,
<a class="tag" href="../../objects/layout-change/">"location"</a>: <a class="tag" href="../../objects/measure-location/">"1:3/8"</a>
}
],
<a class="tag" href="../../objects/system/">"layout-changes"</a>: <span class="tag">[{"layout": "organ3StaffSplitOber", "location": "1:3/8"}]</span>,
<a class="tag" href="../../objects/system/">"measure"</a>: <a class="tag" href="../../objects/measure-number/">1</a>
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/mnx-reference/objects/system/index.html
Expand Up @@ -83,7 +83,7 @@ <h2>Keys:</h2>
</tr>

<tr>
<td><nobr><b>"layout-changes"</b></nobr></td>
<td><nobr><b>"layoutChanges"</b></nobr></td>
<td>

An array of
Expand Down
2 changes: 1 addition & 1 deletion docs/mnx-schema.json
Expand Up @@ -1100,7 +1100,7 @@
"layout": {
"$ref": "#/$defs/id"
},
"layout-changes": {
"layoutChanges": {
"items": {
"additionalProperties": false,
"properties": {
Expand Down

0 comments on commit d87ed35

Please sign in to comment.