From 92fe1eea2274d2115e4d1e889b270019c599086b Mon Sep 17 00:00:00 2001 From: Christopher Herb Date: Mon, 10 Jul 2023 17:28:57 +0200 Subject: [PATCH] calculate all pitch modulations in semi-tones --- synth/tx_voice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth/tx_voice.h b/synth/tx_voice.h index b52f1fb..19c20cd 100644 --- a/synth/tx_voice.h +++ b/synth/tx_voice.h @@ -50,7 +50,7 @@ public: float process_sample() { float pitch_env_signal = pitch_env.process_sample(gate, trigger) * pitch_env_amt; - float pitched_freq = midi_to_frequency(midi_note + pitch_mod) + pitch_env_signal + additional_pitch_mod; + float pitched_freq = midi_to_frequency(midi_note + pitch_mod + additional_pitch_mod) + pitch_env_signal; float output = 0.f;