1 stable release

1.0.0 Aug 13, 2022

#631 in Audio

Download history 65/week @ 2024-03-10 23/week @ 2024-03-17 21/week @ 2024-03-24 24/week @ 2024-03-31 25/week @ 2024-04-07 14/week @ 2024-04-14 17/week @ 2024-04-21 1/week @ 2024-04-28 5/week @ 2024-05-12 78/week @ 2024-05-19 17/week @ 2024-05-26 8/week @ 2024-06-02 16/week @ 2024-06-09 22/week @ 2024-06-16 37/week @ 2024-06-23

85 downloads per month

MIT license

11KB
141 lines

pitch_shift

This crate has one library and one program inside.

As a library

The library is a rust port of the code at https://github.com/cpuimage/pitchshift/.

It implementes the "Phase Vocoder" technique which shifts the pitch without stretching the recording and without bringing in too many artifacts.

It exposes one type, PitchShifter, which allows you to shift the pitch of audio buffers. It's up to you to bring the audio, maybe from a file or from your computer's microphone.

See https://docs.rs/pitch_shift for library usage instructions.

As a program

The program at examples/shift-wav.rs allows you to shift the pitch of WAV files from your command line.

It can be installed this way:

cargo install pitch_shift --example shift-wav

Run it without any argument to learn how to use it.

Dependencies

~3MB
~58K SLoC