mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
add readme
This commit is contained in:
6
README.md
Normal file
6
README.md
Normal 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!
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
#define INPUT_DEVICE "real_real_tx_audio_input.monitor"
|
#define INPUT_DEVICE "real_real_tx_audio_input.monitor"
|
||||||
#define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback"
|
#define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback"
|
||||||
#define BUFFER_SIZE 512
|
#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 MONO_VOLUME 0.5f // L+R Signal
|
||||||
#define PILOT_VOLUME 0.025f // 19 KHz Pilot
|
#define PILOT_VOLUME 0.025f // 19 KHz Pilot
|
||||||
|
|||||||
Reference in New Issue
Block a user