diff --git a/cmd/Makefile b/cmd/Makefile index e4c5e84..54be081 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -28,9 +28,9 @@ examples: out/stretch TEST_WAV ?= "inputs/voice.wav" dev: out/stretch - out/stretch --time=0.8 --semitones=12 $(TEST_WAV) out/shift.wav - out/stretch --time=0.8 --semitones=12 --formant-comp $(TEST_WAV) out/shift-fc.wav - out/stretch --time=0.8 --semitones=12 --formant-comp --formant=3 $(TEST_WAV) out/shift-fc-f3.wav + out/stretch --time=0.8 --semitones=10 $(TEST_WAV) out/shift.wav + out/stretch --time=0.8 --semitones=10 --formant-comp $(TEST_WAV) out/shift-fc.wav + out/stretch --time=0.8 --semitones=10 --formant-comp --formant=3 $(TEST_WAV) out/shift-fc-f3.wav clean: rm -rf out @@ -40,4 +40,4 @@ clean: cmake: # CMAKE_BUILD_TYPE is needed for single-config generators (e.g. Makefiles) cmake -B out/build -DCMAKE_BUILD_TYPE=Release - cmake --build out/build --config Release \ No newline at end of file + cmake --build out/build --config Release diff --git a/signalsmith-stretch.h b/signalsmith-stretch.h index 52af7f2..6d68040 100644 --- a/signalsmith-stretch.h +++ b/signalsmith-stretch.h @@ -874,7 +874,7 @@ private: for (int b = 0; b < bands; ++b) { formantMetric[b] = std::sqrt(std::sqrt(formantMetric[b])); } - Sample slew = 1/(freqEstimate*0.5 + 1); + Sample slew = 1/(freqEstimate*0.75 + 1); Sample e = 0; for (int repeat = 0; repeat < 1; ++repeat) { for (int b = bands - 1; b >= 0; --b) {