diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd5e2abbd45..c6317595eca 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog
+## [4.0.1] - 2023-09-05
+* Fix MEI version in output
+
## [4.0.0] - 2023-09-05
* Update schemas to MEI 5.0 and corresponding adjustments
* Support for `space` within `beam`
diff --git a/Verovio.podspec b/Verovio.podspec
index 6d3ee2ebb58..f687559bbbc 100644
--- a/Verovio.podspec
+++ b/Verovio.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Verovio'
- s.version = '4.00.0'
+ s.version = '4.0.1'
s.license = { :type => 'LGPL' }
s.homepage = 'https://www.verovio.org/index.xhtml'
s.authors = { 'Contributors List' => 'https://github.com/rism-digital/verovio/graphs/contributors' }
diff --git a/bindings/java/pom.xml b/bindings/java/pom.xml
index 5de5086c7ff..a03e1a0236a 100644
--- a/bindings/java/pom.xml
+++ b/bindings/java/pom.xml
@@ -4,7 +4,7 @@
org.rism.verovio
VerovioToolkit
- 4.0.0
+ 4.0.1
jar
VerovioToolkit
diff --git a/codemeta.json b/codemeta.json
index 34b1e48a4c8..11c9f77c5b8 100644
--- a/codemeta.json
+++ b/codemeta.json
@@ -4,7 +4,7 @@
"identifier": "Verovio",
"name": "Verovio",
"description": "Verovio is a fast, portable and lightweight open-source library for engraving Music Encoding Initiative (MEI) music scores into SVG.",
- "softwareVersion": "4.0.0",
+ "softwareVersion": "4.0.1",
"datePublished": "2023-09-05",
"license": "https://www.gnu.org/licenses/lgpl-3.0",
"programmingLanguage": [{
diff --git a/emscripten/npm/package.json b/emscripten/npm/package.json
index 3f23612de10..f70a6ae2e26 100644
--- a/emscripten/npm/package.json
+++ b/emscripten/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "verovio",
- "version": "4.0.0",
+ "version": "4.0.1",
"description": "This is the stable version of the verovio package",
"main": "dist/verovio-toolkit-wasm.js",
"exports": {
diff --git a/include/vrv/vrvdef.h b/include/vrv/vrvdef.h
index 8a2cc70458e..a307ac8fa33 100644
--- a/include/vrv/vrvdef.h
+++ b/include/vrv/vrvdef.h
@@ -40,7 +40,7 @@ namespace vrv {
#define VERSION_MAJOR 4
#define VERSION_MINOR 0
-#define VERSION_REVISION 0
+#define VERSION_REVISION 1
// Adds "-dev" in the version number - should be set to false for releases
#define VERSION_DEV false
diff --git a/src/iomei.cpp b/src/iomei.cpp
index 770d29f4ee0..9f3e2b6c52f 100644
--- a/src/iomei.cpp
+++ b/src/iomei.cpp
@@ -246,7 +246,7 @@ bool MEIOutput::Export()
m_mei = meiDoc.append_child("mei");
m_mei.append_attribute("xmlns") = "http://www.music-encoding.org/ns/mei";
AttConverter converter;
- meiVersion_MEIVERSION meiVersion = meiVersion_MEIVERSION(meiVersion_MEIVERSION_MAX - 1);
+ meiVersion_MEIVERSION meiVersion = meiVersion_MEIVERSION_5_0;
if (this->GetBasic()) meiVersion = meiVersion_MEIVERSION_5_0plusbasic;
m_mei.append_attribute("meiversion") = (converter.MeiVersionMeiversionToStr(meiVersion)).c_str();