add readme

This commit is contained in:
2024-12-30 13:10:00 +01:00
parent b93cc94143
commit f98999fe76
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
# STCode
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!
+1 -1
View File
@@ -8,7 +8,7 @@
#define INPUT_DEVICE "real_real_tx_audio_input.monitor"
#define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback"
#define BUFFER_SIZE 512
#define CLIPPER_THRESHOLD 0.7
#define CLIPPER_THRESHOLD 0.5 // Adjust this as needed
#define MONO_VOLUME 0.5f // L+R Signal
#define PILOT_VOLUME 0.025f // 19 KHz Pilot