From 62e9f067782eb045553a5035858c5b43fa8b73ea Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Tue, 14 Jan 2020 15:04:49 +0100
Subject: [PATCH] Reduced maximum side tone volume to 0.25, this seems to be
 more compatible with CW done in the radios.

---
 transmitter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/transmitter.c b/transmitter.c
index 604ed8d..917f535 100644
--- a/transmitter.c
+++ b/transmitter.c
@@ -1017,7 +1017,7 @@ static void full_tx_buffer(TRANSMITTER *tx) {
 	    // tx->output_samples equals tx->buffer_size
 	    // Take TX envelope from the 48kHz shape buffer
 	    //
-            sidevol= 258.0 * cw_keyer_sidetone_volume;  // between 0.0 and 32766.0
+            sidevol= 64.0 * cw_keyer_sidetone_volume;  // between 0.0 and 8128.0
 	    isample=0;				    // will be constantly zero
             for(j=0;j<tx->output_samples;j++) {
 	      ramp=cw_shape_buffer48[j];	    	    // between 0.0 and 1.0
@@ -1133,7 +1133,7 @@ void add_mic_sample(TRANSMITTER *tx,float mic_sample) {
 	// store the ramp value in cw_shape_buffer, but also use it for shaping the "local"
 	// side tone
 	ramp=cwramp48[cw_shape];
-	cwsample=0.0078 * getNextSideToneSample() * cw_keyer_sidetone_volume * ramp;
+	cwsample=0.00197 * getNextSideToneSample() * cw_keyer_sidetone_volume * ramp;
 	cw_audio_write(cwsample);
         cw_shape_buffer48[tx->samples]=ramp;
 	//
-- 
2.45.2