Skip to content

Commit

Permalink
Fix Issue #461 Unable to import musicxml exported from MuseScore 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jjazzboss committed Aug 24, 2024
1 parent 0e352e9 commit 711ab6e
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 50 deletions.
10 changes: 5 additions & 5 deletions core/Importers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
<artifactId>utilities</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jjazzlab.core</groupId>
<artifactId>guava</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
Expand All @@ -67,11 +72,6 @@
<artifactId>xom</artifactId>
<version>1.3.8</version>
</dependency>
<dependency>
<groupId>org.jjazzlab.core</groupId>
<artifactId>guava</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.text.ParseException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.ParserConfigurationException;
import nu.xom.ParsingException;
import org.jjazz.harmony.api.Note;
import org.jjazz.harmony.api.TimeSignature;
Expand All @@ -44,6 +45,7 @@
import org.jjazz.song.api.Song;
import org.jjazz.song.api.SongFactory;
import org.openide.util.Exceptions;
import org.xml.sax.SAXException;

/**
* MusicXML leadsheet file reader.
Expand Down Expand Up @@ -85,7 +87,7 @@ public Song readSong() throws IOException
try
{
parser.parse(file);
} catch (ParsingException ex)
} catch (ParsingException | ParserConfigurationException | SAXException ex)
{
throw new IOException(ex);
}
Expand Down
Loading

0 comments on commit 711ab6e

Please sign in to comment.