Skip to content

Commit

Permalink
Release v0.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Aug 30, 2023
1 parent a43845a commit 92e96bc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,31 @@ The API documentation, along with guides, example code, illustrations and exampl

# Changelog

## [0.32.0] - 2023-08-15
## [0.33.0] - 2023-08-30

### Added
### Changed

* Add new `RepeatPart` transform
* Bump min numpy version from 1.16 to 1.18
* Bump min scipy version from 1.3 to 1.4
* Bump min python version from 3.7 to 3.8, because 3.7 is beyond end-of-life already
* Change some `AssertionError` exceptions to `ValueError`

### Changed
#### :warning: The `Shift` transform has been changed:

* Removed `fade` parameter. `fade_duration=0.0` now denotes disabled fading.
* Rename `min_fraction` to `min_shift` and `max_fraction` to `max_shift`
* Add `shift_unit` parameter
* Smoother fade curve

These are **breaking changes**. The following example shows how you can adapt your code when upgrading from <=v0.32.0 to >=v0.33.0:

* Bump min version of numpy dependency from 1.13 to 1.16
* If a transform is in "frozen parameters" mode, but has no parameters yet, the transform will randomize/set parameters when it gets called for the first time
* Increase the threshold for raising `WrongMultichannelAudioShape`. This allows some rare use cases where the number of channels slightly exceeds the number of samples.
| <= 0.32.0 | >= 0.33.0 |
| --------- |-----------------------------------------------------------------------------------|
| `Shift(min_fraction=-0.5, max_fraction=0.5, fade=True, fade_duration=0.01)` | `Shift(min_shift=-0.5, max_shift=0.5, shift_unit="fraction", fade_duration=0.01)` |

### Fixed

* Fix some type hints that were `np.array` instead of `np.ndarray`
* Correct some wrong type hints

For the full changelog, including older versions, see [https://iver56.github.io/audiomentations/changelog/](https://iver56.github.io/audiomentations/changelog/)

Expand Down
2 changes: 1 addition & 1 deletion audiomentations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
from .spec_augmentations.spec_channel_shuffle import SpecChannelShuffle
from .spec_augmentations.spec_frequency_mask import SpecFrequencyMask

__version__ = "0.32.0"
__version__ = "0.33.0"
5 changes: 3 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [0.33.0] - 2023-08-30

### Changed

Expand Down Expand Up @@ -489,7 +489,8 @@ Thanks to karpnv

* Initial release. Includes only one transform: `AddGaussianNoise`

[Unreleased]: https://github.com/iver56/audiomentations/compare/v0.32.0...HEAD
[Unreleased]: https://github.com/iver56/audiomentations/compare/v0.33.0...HEAD
[0.33.0]: https://github.com/iver56/audiomentations/compare/v0.32.0...v0.33.0
[0.32.0]: https://github.com/iver56/audiomentations/compare/v0.31.0...v0.32.0
[0.31.0]: https://github.com/iver56/audiomentations/compare/v0.30.0...v0.31.0
[0.30.0]: https://github.com/iver56/audiomentations/compare/v0.29.0...v0.30.0
Expand Down

0 comments on commit 92e96bc

Please sign in to comment.