Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
roszcz committed Oct 27, 2024
2 parents 84d8c31 + 0e0e13a commit 013676e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.4.2] - 2024-10-27
### Added
- write method in MidiFile

## [0.4.1] - 2024-09-29
### Fixed
- MAX_TICK setting in pretty midi
Expand Down
2 changes: 1 addition & 1 deletion fortepyan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from fortepyan.midi.structures import MidiFile, MidiPiece

__all__ = ["view", "MidiFile", "MidiPiece"]
__version__ = "0.4.1"
__version__ = "0.4.2"

# Pretty MIDI will throw an unwanted error for large files with high PPQ
# This is a workaround
Expand Down
3 changes: 3 additions & 0 deletions fortepyan/midi/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ def merge_files(cls, midi_files: list["MidiFile"], space: float = 0.0) -> "MidiF

return midi_file

def write(self, filename):
self._midi.write(filename)


def __repr__(self):
return f"MidiFile({self.path})"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fortepyan"
version = "0.4.1"
version = "0.4.2"
description = "Process MIDI piano with (almost) no pain"
readme = "README.md"
authors = [{ name = "Piano For AI", email = "[email protected]" }]
Expand Down Expand Up @@ -52,7 +52,7 @@ packages = [
]

[tool.bumpver]
current_version = "0.4.1"
current_version = "0.4.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
commit = false
Expand Down

0 comments on commit 013676e

Please sign in to comment.