forked from musescore/MuseScore
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dolet commonly exports subtitle text as staff text attached to a beat near the beginning of the score. This commit adds regex-based inferencing for this case, adding the text to a new subtitle in the beginning VBox of the score. Duplicate of musescore#8413, part 1
- Loading branch information
1 parent
ce901f7
commit 1c782e6
Showing
7 changed files
with
449 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
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,192 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> | ||
<score-partwise version="3.1"> | ||
<work> | ||
<work-title>Inferred Subtitle</work-title> | ||
</work> | ||
<identification> | ||
<creator type="composer">Henry Ives</creator> | ||
<encoding> | ||
<software>MuseScore 0.7.0</software> | ||
<encoding-date>2007-09-10</encoding-date> | ||
<supports element="accidental" type="yes"/> | ||
<supports element="beam" type="yes"/> | ||
<supports element="print" attribute="new-page" type="no"/> | ||
<supports element="print" attribute="new-system" type="no"/> | ||
<supports element="stem" type="yes"/> | ||
</encoding> | ||
</identification> | ||
<defaults> | ||
<scaling> | ||
<millimeters>7</millimeters> | ||
<tenths>40</tenths> | ||
</scaling> | ||
<page-layout> | ||
<page-height>1697.14</page-height> | ||
<page-width>1200</page-width> | ||
<page-margins type="even"> | ||
<left-margin>85.7143</left-margin> | ||
<right-margin>85.7143</right-margin> | ||
<top-margin>85.7143</top-margin> | ||
<bottom-margin>85.7143</bottom-margin> | ||
</page-margins> | ||
<page-margins type="odd"> | ||
<left-margin>85.7143</left-margin> | ||
<right-margin>85.7143</right-margin> | ||
<top-margin>85.7143</top-margin> | ||
<bottom-margin>85.7143</bottom-margin> | ||
</page-margins> | ||
</page-layout> | ||
<word-font font-family="Edwin" font-size="10"/> | ||
<lyric-font font-family="Edwin" font-size="10"/> | ||
</defaults> | ||
<credit page="1"> | ||
<credit-type>title</credit-type> | ||
<credit-words default-x="600" default-y="1611.43" justify="center" valign="top" font-size="22">Inferred Subtitle</credit-words> | ||
</credit> | ||
<part-list> | ||
<part-group type="start" number="1"> | ||
<group-symbol>brace</group-symbol> | ||
</part-group> | ||
<score-part id="P1"> | ||
<part-name>Piano</part-name> | ||
<part-abbreviation>Pno.</part-abbreviation> | ||
<score-instrument id="P1-I1"> | ||
<instrument-name>Piano</instrument-name> | ||
</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="293.97"> | ||
<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>2</divisions> | ||
<key> | ||
<fifths>0</fifths> | ||
</key> | ||
<time> | ||
<beats>4</beats> | ||
<beat-type>4</beat-type> | ||
</time> | ||
<clef> | ||
<sign>G</sign> | ||
<line>2</line> | ||
</clef> | ||
</attributes> | ||
<direction placement="above"> | ||
<direction-type> | ||
<words relative-y="10.00">Words and Music by Henry Ives</words> | ||
</direction-type> | ||
</direction> | ||
<note default-x="80.72" default-y="-15.00"> | ||
<pitch> | ||
<step>C</step> | ||
<octave>5</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>eighth</type> | ||
<stem>down</stem> | ||
<beam number="1">begin</beam> | ||
<lyric number="1" default-x="6.50" default-y="-44.91" relative-y="-30.00"> | ||
<syllabic>begin</syllabic> | ||
<text>ha</text> | ||
</lyric> | ||
</note> | ||
<note default-x="117.18" default-y="-15.00"> | ||
<pitch> | ||
<step>C</step> | ||
<octave>5</octave> | ||
</pitch> | ||
<duration>1</duration> | ||
<voice>1</voice> | ||
<type>eighth</type> | ||
<stem>down</stem> | ||
<beam number="1">end</beam> | ||
<lyric number="1" default-x="6.50" default-y="-44.91" relative-y="-30.00"> | ||
<syllabic>end</syllabic> | ||
<text>ha</text> | ||
</lyric> | ||
</note> | ||
<note> | ||
<rest/> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
</note> | ||
<note> | ||
<rest/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>half</type> | ||
</note> | ||
</measure> | ||
<measure number="2" width="202.30"> | ||
<note default-x="26.30" default-y="-45.00"> | ||
<pitch> | ||
<step>D</step> | ||
<octave>4</octave> | ||
</pitch> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
<stem>up</stem> | ||
<lyric number="1" default-x="8.72" default-y="-44.91" relative-y="-30.00"> | ||
<syllabic>single</syllabic> | ||
<text>nice.</text> | ||
</lyric> | ||
</note> | ||
<note> | ||
<rest/> | ||
<duration>2</duration> | ||
<voice>1</voice> | ||
<type>quarter</type> | ||
</note> | ||
<note> | ||
<rest/> | ||
<duration>4</duration> | ||
<voice>1</voice> | ||
<type>half</type> | ||
</note> | ||
</measure> | ||
<measure number="3" width="160.22"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>8</duration> | ||
<voice>1</voice> | ||
</note> | ||
</measure> | ||
<measure number="4" width="160.22"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>8</duration> | ||
<voice>1</voice> | ||
</note> | ||
</measure> | ||
<measure number="5" width="161.86"> | ||
<note> | ||
<rest measure="yes"/> | ||
<duration>8</duration> | ||
<voice>1</voice> | ||
</note> | ||
<barline location="right"> | ||
<bar-style>light-heavy</bar-style> | ||
</barline> | ||
</measure> | ||
</part> | ||
</score-partwise> |
Oops, something went wrong.