Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

bug fix proposal (issue #26) #29

Merged
merged 1 commit into from
Apr 28, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ var MEI2VF = ( function(m2v, VF, $, undefined) {
var me = this, refLocationIndex;
// check if there's an unresolved TStamp2 reference to this location
// (measure, staff, layer):
if (!measure_n)
throw new m2v.RUNTIME_ERROR('MEI2VF.RERR.me.extract_events:', '<measure> must have @n specified');
if (isNaN(measure_n))
throw new m2v.RUNTIME_ERROR('MEI2VF.RERR.extract_events', '<measure> must have @n specified');
staff_n = staff_n || 1;
refLocationIndex = measure_n + ':' + staff_n + ':' + ($(layer).attr('n') || '1');
if (me.unresolvedTStamp2[refLocationIndex]) {
Expand Down
20 changes: 10 additions & 10 deletions tests/TC.Hyphens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</staffGrp>
</scoreDef>
<section>
<measure n="3" width="320" unit="px" right="dbl">
<measure n="0" width="320" unit="px" right="dbl">
<staff n="1">
<layer>
<note xml:id="n02" pname="c" oct="5" dur="4" dots="1" accid="n">
Expand Down Expand Up @@ -50,7 +50,7 @@
<staffDef n="1" clef.line="2" clef.shape="G" meter.count="6" meter.unit="4"/>
</staffGrp>
</scoreDef>
<measure n="4" unit="px">
<measure n="1" unit="px">
<staff n="1">
<layer>
<note xml:id="nb08" pname="c" oct="5" dur="1" accid="s">
Expand All @@ -71,7 +71,7 @@
</layer>
</staff>
</measure>
<measure n="5" unit="px">
<measure n="2" unit="px">
<staff n="1">
<layer>
<note xml:id="n14" pname="c" oct="5" dur="1" accid="s">
Expand All @@ -92,7 +92,7 @@
</layer>
</staff>
</measure>
<measure n="6">
<measure n="3">
<staff n="1">
<layer>
<note xml:id="n20" pname="b" oct="4" dur="4" dots="1">
Expand All @@ -119,7 +119,7 @@
</measure>
<sb/>

<measure n="7" width="340">
<measure n="4" width="340">
<staff n="1">
<layer>
<note xml:id="n28" pname="c" accid="s" oct="5" dur="4" dots="1">
Expand Down Expand Up @@ -148,7 +148,7 @@
<dir startid="n34" place="above" type="pitch">cis</dir>
<dir startid="n35" place="above" type="pitch">e</dir>
</measure>
<measure n="8" right="dbl">
<measure n="5" right="dbl">
<staff n="1">
<layer>
<note xml:id="n08" pname="c" oct="5" dur="1" accid="s">
Expand All @@ -175,7 +175,7 @@
<staffDef n="1" clef.line="2" clef.shape="G" meter.count="4" meter.unit="4" meter.sym="cut"/>
</staffGrp>
</scoreDef>
<measure n="9">
<measure n="6">
<staff n="1">
<layer>
<note xml:id="n30" pname="g" accid="s" oct="5" dur="8">
Expand All @@ -194,7 +194,7 @@
</staff>
</measure>

<measure n="10" width="120">
<measure n="7" width="120">
<staff n="1">
<layer>
<note xml:id="asd" dur="1" pname="f" accid="s" oct="5">
Expand All @@ -203,7 +203,7 @@
</layer>
</staff>
</measure>
<measure n="11" width="120">
<measure n="8" width="120">
<staff n="1">
<layer>
<note xml:id="asdf" dur="1" pname="e" accid="s" oct="5">
Expand All @@ -212,7 +212,7 @@
</staff>
</measure>

<measure n="12" right="invis" width="70">
<measure n="9" right="invis" width="70">
<staff n="1">
<anchoredText ho="2">etc.</anchoredText>
<layer>
Expand Down