https://github.com/numq/stretch
Library for time stretching audio without changing pitch
https://github.com/numq/stretch
audio jni kotlin stretch stretching time
Last synced: over 1 year ago
JSON representation
Library for time stretching audio without changing pitch
- Host: GitHub
- URL: https://github.com/numq/stretch
- Owner: numq
- License: apache-2.0
- Created: 2025-01-02T22:08:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-18T21:40:12.000Z (over 1 year ago)
- Last Synced: 2025-02-18T22:32:26.235Z (over 1 year ago)
- Topics: audio, jni, kotlin, stretch, stretching, time
- Language: Kotlin
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stretch
Audio stretching library for JVM based on the C++
library [signalsmith-stretch](https://github.com/Signalsmith-Audio/signalsmith-stretch).
## Features
- Stretches PCM audio data
- Supports any sampling rate and number of channels
## Usage
> See the [example](example) module for implementation details
1. Download latest [release](https://github.com/numq/stretch/releases)
2. Add library dependency
```kotlin
dependencies {
implementation(file("/path/to/jar"))
}
```
3. Load binaries
```kotlin
Stretch.Signalsmith.load(libstretch = "/path/to/stretch-signalsmith")
```
4. Instantiate a library
```kotlin
Stretch.Signalsmith.create(sampleRate = sampleRate, channels = channels, playbackSpeedFactor = defaultPlaybackSpeedFactor)
```
## Requirements
- JVM version 9 or higher.
## License
This project is licensed under the [Apache License 2.0](LICENSE).
## Acknowledgments
- [signalsmith-stretch](https://github.com/Signalsmith-Audio/signalsmith-stretch)