Skip to content

Commit

Permalink
Changed note pitch to use an object instead of a microsyntax.
Browse files Browse the repository at this point in the history
All example documents have been updated.
  • Loading branch information
adrianholovaty committed Aug 17, 2023
1 parent 646c4bd commit c88eff4
Show file tree
Hide file tree
Showing 43 changed files with 2,914 additions and 597 deletions.
742 changes: 704 additions & 38 deletions docgenerator/data.json

Large diffs are not rendered by default.

980 changes: 786 additions & 194 deletions docs/comparisons/musicxml/index.html

Large diffs are not rendered by default.

44 changes: 36 additions & 8 deletions docs/mnx-reference/examples/accidentals/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ <h1>Accidentals</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"F4"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">4</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"F"</a>
}
}
]
},
Expand All @@ -114,7 +117,10 @@ <h1>Accidentals</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"G4"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">4</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"G"</a>
}
}
]
},
Expand All @@ -126,7 +132,11 @@ <h1>Accidentals</h1>
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"accidental"</a>: <a class="tag" href="../../objects/accidental/">"sharp"</a>,
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"G#4"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"alter"</a>: <a class="tag" href="../../objects/alter/">1</a>,
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">4</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"G"</a>
}
}
]
},
Expand All @@ -137,7 +147,10 @@ <h1>Accidentals</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"A4"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">4</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"A"</a>
}
}
]
}
Expand All @@ -157,7 +170,11 @@ <h1>Accidentals</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"Bb4"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"alter"</a>: <a class="tag" href="../../objects/alter/">-1</a>,
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">4</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"B"</a>
}
}
]
},
Expand All @@ -169,7 +186,11 @@ <h1>Accidentals</h1>
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"accidental"</a>: <a class="tag" href="../../objects/accidental/">"flat"</a>,
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"Db5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"alter"</a>: <a class="tag" href="../../objects/alter/">-1</a>,
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"D"</a>
}
}
]
},
Expand All @@ -180,7 +201,11 @@ <h1>Accidentals</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"Db5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"alter"</a>: <a class="tag" href="../../objects/alter/">-1</a>,
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"D"</a>
}
}
]
}
Expand All @@ -201,7 +226,10 @@ <h1>Accidentals</h1>
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"accidental"</a>: <a class="tag" href="../../objects/accidental/">"natural"</a>,
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"D5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"D"</a>
}
}
]
}
Expand Down
50 changes: 40 additions & 10 deletions docs/mnx-reference/examples/beam-hooks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"C5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"C"</a>
}
}
]
},
Expand All @@ -164,7 +167,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"D5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"D"</a>
}
}
]
},
Expand All @@ -176,7 +182,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"C5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"C"</a>
}
}
]
},
Expand All @@ -188,7 +197,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"E5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"E"</a>
}
}
]
},
Expand All @@ -200,7 +212,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"F5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"F"</a>
}
}
]
},
Expand All @@ -212,7 +227,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"E5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"E"</a>
}
}
]
},
Expand All @@ -224,7 +242,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"G5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"G"</a>
}
}
]
},
Expand All @@ -236,7 +257,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"A5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"A"</a>
}
}
]
},
Expand All @@ -248,7 +272,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"G5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"G"</a>
}
}
]
},
Expand All @@ -259,7 +286,10 @@ <h1>Beams (hooks)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"C6"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">6</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"C"</a>
}
}
]
}
Expand Down
20 changes: 16 additions & 4 deletions docs/mnx-reference/examples/beams-across-barlines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ <h1>Beams (across barlines)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"C5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"C"</a>
}
}
]
},
Expand All @@ -136,7 +139,10 @@ <h1>Beams (across barlines)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"D5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"D"</a>
}
}
]
}
Expand All @@ -157,7 +163,10 @@ <h1>Beams (across barlines)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"E5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"E"</a>
}
}
]
},
Expand All @@ -169,7 +178,10 @@ <h1>Beams (across barlines)</h1>
},
<a class="tag" href="../../objects/event/">"notes"</a>: [
{
<a class="tag" href="../../objects/note/">"pitch"</a>: <a class="tag" href="../../objects/pitch/">"F5"</a>
<a class="tag" href="../../objects/note/">"pitch"</a>: {
<a class="tag" href="../../objects/pitch/">"octave"</a>: <a class="tag" href="../../objects/octave/">5</a>,
<a class="tag" href="../../objects/pitch/">"step"</a>: <a class="tag" href="../../objects/step/">"F"</a>
}
}
]
},
Expand Down
Loading

0 comments on commit c88eff4

Please sign in to comment.