Skip to content

Commit

Permalink
Version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gregogiudici committed Sep 21, 2024
1 parent 07f0d9d commit 23f46cf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
uses: actions/upload-artifact/merge@v4
with:
name: dist
path: dist/*
pattern: dist-*

upload_all:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A simple Python Wrapper of the Signalsmith Stretch C++ library for pitch and tim
```
pip install python-stretch
```
Alternatevly, you can easly build it from source:
Alternatevly, you can easly build it from source (You need a c++ compiler and cmake).
```
# Clone from github
git clone --recurse-submodules https://github.com/gregogiudici/python-stretch.git
Expand All @@ -51,16 +51,16 @@ if (audio.ndim == 1):
audio = audio[np.newaxis, :]
# Create a Stretch object
s = ps.Signalsmith.Stretch()
stretch = ps.Signalsmith.Stretch()
# Configure using a preset
s.preset(audio.shape[0], sr) # numChannels, sampleRate
stretch.preset(audio.shape[0], sr) # numChannels, sampleRate
# Shift up by one octave
s.setTransposeSemitones(12)
# Speed up by 25%
s.timeFactor = 0.75
stretch.setTransposeSemitones(12)
# Stretch time
stretch.timeFactor = 0.75
# Process
audio_processed = s.process(audio)
audio_processed = stretch.process(audio)
# Save and listen
import soundfile as sf
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "python-stretch"
version = "0.1.0"
version = "0.1.1"
description = "A Python Wrapprer of the Signalsmith Stretch C++ library for pitch and time stretching"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion src/python_stretch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is required to make Python treat the directories as containing packages
__doc__ = "A Python Wrapprer of the Signalsmith Stretch C++ library for pitch and time stretching"
__version__ = "0.1.0"
__version__ = "0.1.1"

from . import Signalsmith

0 comments on commit 23f46cf

Please sign in to comment.