Make formants a bit more blunt

This commit is contained in:
Geraint 2024-12-19 09:29:24 +00:00 committed by Geraint
parent 70e4b9c4c9
commit 26a3a75deb
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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) {