diff --git a/README.md b/README.md index 270de73..dc0877d 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ STCode is a simple stereo encoder for FM, it uses pasimple and math to: - Calculate mono signal from s16le ((L+R)/2) - Generate the stereo pilot in phase to the stereo subcarrier - Generate the stereo diffrence signal using DSB-SC -All that in about 3.5% cpu usage on a RPI-5! \ No newline at end of file +All that in about 3.5% cpu usage on a RPI-5 (lpf makes it 10, but stereo tool has 3 threads which do 100% cpu usage anyway, one 200)! \ No newline at end of file diff --git a/stereo_coder.c b/stereo_coder.c index 2de3699..dd05ea8 100644 --- a/stereo_coder.c +++ b/stereo_coder.c @@ -18,8 +18,8 @@ #define CLIPPER_THRESHOLD 0.425 // Adjust this as needed #define MONO_VOLUME 0.45f // L+R Signal -#define PILOT_VOLUME 0.025f // 19 KHz Pilot -#define STEREO_VOLUME 0.45f // L-R signal +#define PILOT_VOLUME 0.0225f // 19 KHz Pilot +#define STEREO_VOLUME 0.35f // L-R signal #ifdef PREEMPHASIS #define PREEMPHASIS_TAU 0.00005 // 50 microseconds, use 0.000075 if in america