From 2372d93c6f99241883892a28317f20b121f1ee2f Mon Sep 17 00:00:00 2001 From: Christopher Herb Date: Sat, 8 Jul 2023 13:15:48 +0200 Subject: [PATCH] pitch modulation input --- synth/tx_voice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synth/tx_voice.h b/synth/tx_voice.h index 8f7a6b1..17850d5 100644 --- a/synth/tx_voice.h +++ b/synth/tx_voice.h @@ -20,6 +20,7 @@ public: bool trigger = false; int midi_note = 0; float velocity = 1.f; + float pitch_mod = 0.f; int algorithm; float pitch_env_amt; @@ -44,7 +45,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_env_signal; + float pitched_freq = midi_to_frequency(midi_note) + pitch_env_signal + pitch_mod; float output = 0.f;