Skip to content

Commit 013676e

Browse files
committedOct 27, 2024·
Merge branch 'release/0.4.2'
2 parents 84d8c31 + 0e0e13a commit 013676e

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.4.2] - 2024-10-27
4+
### Added
5+
- write method in MidiFile
6+
37
## [0.4.1] - 2024-09-29
48
### Fixed
59
- MAX_TICK setting in pretty midi

‎fortepyan/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from fortepyan.midi.structures import MidiFile, MidiPiece
55

66
__all__ = ["view", "MidiFile", "MidiPiece"]
7-
__version__ = "0.4.1"
7+
__version__ = "0.4.2"
88

99
# Pretty MIDI will throw an unwanted error for large files with high PPQ
1010
# This is a workaround

‎fortepyan/midi/structures.py

+3
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ def merge_files(cls, midi_files: list["MidiFile"], space: float = 0.0) -> "MidiF
582582

583583
return midi_file
584584

585+
def write(self, filename):
586+
self._midi.write(filename)
587+
585588

586589
def __repr__(self):
587590
return f"MidiFile({self.path})"

‎pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "fortepyan"
9-
version = "0.4.1"
9+
version = "0.4.2"
1010
description = "Process MIDI piano with (almost) no pain"
1111
readme = "README.md"
1212
authors = [{ name = "Piano For AI", email = "roszcz+fortepyan@gmail.com" }]
@@ -52,7 +52,7 @@ packages = [
5252
]
5353

5454
[tool.bumpver]
55-
current_version = "0.4.1"
55+
current_version = "0.4.2"
5656
version_pattern = "MAJOR.MINOR.PATCH"
5757
commit_message = "bump version {old_version} -> {new_version}"
5858
commit = false

0 commit comments

Comments
 (0)