Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
- Added file `/resources/minimal.mei` which is used by constructor `meico.mei.Mei.Mei()` to instantiate an empty Mei object. The object now contains an MEI with no meaningful content, but when writing it to a file it is valid now. Using this constructor will now require exception handling!
  • Loading branch information
axelberndt committed Nov 4, 2024
1 parent 773d9cf commit de75f82
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
### Version History


#### v0.11.0
- Added file `/resources/minimal.mei` which is used by constructor `meico.mei.Mei.Mei()` to instantiate an empty Mei object. The object now contains an MEI with no meaningful content, but when writing it to a file it is valid now. Using this constructor will now require exception handling!


#### v0.10.0
- Conversion of MEI to MusicXML implemented. Thanks to [Matthias Nowakowski](https://github.com/mnowakow).
- `meiHead` nearly completely.
Expand Down
2 changes: 1 addition & 1 deletion src/meico/Meico.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Axel Berndt
*/
public class Meico {
public static final String version = "0.10.0";
public static final String version = "0.11.0";

public static void main(String[] args) {
System.out.println("meico v" + Meico.version);
Expand Down
4 changes: 2 additions & 2 deletions src/meico/mei/Mei.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class Mei extends meico.xml.XmlBase {
/**
* a default constructor that creates an empty Mei instance
*/
public Mei() {
super();
public Mei() throws ParsingException, IOException {
super(Mei.class.getResourceAsStream("/resources/minimal.mei"));
}

/**
Expand Down
14 changes: 14 additions & 0 deletions src/resources/minimal.mei
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/5.0/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.0">
<meiHead>
<fileDesc>
<titleStmt>
<title/>
</titleStmt>
<pubStmt/>
</fileDesc>
</meiHead>
<music/>
</mei>

0 comments on commit de75f82

Please sign in to comment.