-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,022 additions
and
472 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 4.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> | ||
<score-partwise version="4.0"> | ||
<identification> | ||
<encoding> | ||
<software>MuseScore 4.1.1</software> | ||
<encoding-date>2024-06-09</encoding-date> | ||
<supports element="accidental" type="yes"/> | ||
<supports element="beam" type="yes"/> | ||
<supports element="print" attribute="new-page" type="yes" value="yes"/> | ||
<supports element="print" attribute="new-system" type="yes" value="yes"/> | ||
<supports element="stem" type="yes"/> | ||
</encoding> | ||
</identification> | ||
<defaults> | ||
<scaling> | ||
<millimeters>6.99911</millimeters> | ||
<tenths>40</tenths> | ||
</scaling> | ||
<page-layout> | ||
<page-height>1596.77</page-height> | ||
<page-width>1233.87</page-width> | ||
<page-margins type="even"> | ||
<left-margin>85.7252</left-margin> | ||
<right-margin>85.7252</right-margin> | ||
<top-margin>85.7252</top-margin> | ||
<bottom-margin>85.7252</bottom-margin> | ||
</page-margins> | ||
<page-margins type="odd"> | ||
<left-margin>85.7252</left-margin> | ||
<right-margin>85.7252</right-margin> | ||
<top-margin>85.7252</top-margin> | ||
<bottom-margin>85.7252</bottom-margin> | ||
</page-margins> | ||
</page-layout> | ||
<word-font font-family="Edwin" font-size="10"/> | ||
<lyric-font font-family="Edwin" font-size="10"/> | ||
</defaults> | ||
<part-list> | ||
<score-part id="P1"> | ||
<part-name>Music</part-name> | ||
<score-instrument id="P1-I1"> | ||
<instrument-name></instrument-name> | ||
<instrument-sound>keyboard.piano.grand</instrument-sound> | ||
</score-instrument> | ||
<midi-device id="P1-I1" port="1"></midi-device> | ||
<midi-instrument id="P1-I1"> | ||
<midi-channel>1</midi-channel> | ||
<midi-program>1</midi-program> | ||
<volume>78.7402</volume> | ||
<pan>0</pan> | ||
</midi-instrument> | ||
</score-part> | ||
</part-list> | ||
<part id="P1"> | ||
<measure number="1" width="464.59"> | ||
<print> | ||
<system-layout> | ||
<system-margins> | ||
<left-margin>50.00</left-margin> | ||
<right-margin>-0.00</right-margin> | ||
</system-margins> | ||
<top-system-distance>170.00</top-system-distance> | ||
</system-layout> | ||
</print> | ||
<attributes> | ||
<divisions>1</divisions> | ||
<key> | ||
<fifths>-2</fifths> | ||
<mode>major</mode> | ||
</key> | ||
<time> | ||
<beats>4</beats> | ||
<beat-type>4</beat-type> | ||
</time> | ||
<clef> | ||
<sign>G</sign> | ||
<line>2</line> | ||
</clef> | ||
</attributes> | ||
<note default-x="102.95" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
<note default-x="192.91" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
<note default-x="282.87" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
<note default-x="372.83" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
</measure> | ||
<measure number="2" width="329.66"> | ||
<note default-x="13.00" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>half</type> | ||
<stem>down</stem> | ||
</note> | ||
<note default-x="147.94" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
<note default-x="237.90" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>down</stem> | ||
</note> | ||
</measure> | ||
<measure number="3" width="218.17"> | ||
<note default-x="13.00" default-y="-20.00"> | ||
<pitch> | ||
<step>B</step> | ||
<alter>-1</alter> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>whole</type> | ||
</note> | ||
</measure> | ||
</part> | ||
</score-partwise> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-119 Bytes
(99%)
...default-score.spec.ts-snapshots/renders-3-measures-1-chromium-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.75 KB
(110%)
...s/default-score.spec.ts-snapshots/renders-3-measures-1-webkit-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-57 Bytes
(99%)
...ault-score.spec.ts-snapshots/renders-default-score-1-chromium-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+913 Bytes
(110%)
...efault-score.spec.ts-snapshots/renders-default-score-1-webkit-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-203 Bytes
(99%)
...core.spec.ts-snapshots/renders-score-from-musicxml-1-chromium-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.39 KB
(110%)
...-score.spec.ts-snapshots/renders-score-from-musicxml-1-webkit-canvas-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { expect } from "@playwright/test" | ||
import fs from "fs" | ||
import path from "path" | ||
import { test } from "../parametrized-test" | ||
|
||
// todo: move to global setup | ||
test.beforeEach(async ({ page, renderer }) => { | ||
await page.goto("/") | ||
await page.evaluate((renderer) => { | ||
window.scoreStorm.setRenderer(renderer === "svg" ? window.svgRenderer : window.canvasRenderer) | ||
}, renderer) | ||
}) | ||
|
||
// todo: move to global setup | ||
test.afterEach(async ({ page }) => { | ||
await page.evaluate(() => { | ||
window.scoreStorm.render() | ||
}) | ||
|
||
await expect(page.locator("#ss-container")).toHaveScreenshot() | ||
}) | ||
|
||
test("renders accidentals", async ({ page }) => { | ||
const inputXmlString = fs.readFileSync(path.join(__dirname, "basic-accidentals.musicxml"), "utf8") | ||
await page.evaluate((xml) => { | ||
window.scoreStorm.setScore(window.getScoreFormMusicXml(xml)) | ||
}, inputXmlString) | ||
}) |
Binary file added
BIN
+13.6 KB
...eatures/accidentals.spec.ts-snapshots/renders-accidentals-1-features-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.