diff --git a/.vscode/.server-controller-port.log b/.vscode/.server-controller-port.log index 206f302..c52b3f3 100644 --- a/.vscode/.server-controller-port.log +++ b/.vscode/.server-controller-port.log @@ -1,5 +1,5 @@ { "port": 13452, - "time": 1735663051769, + "time": 1735683786793, "version": "0.0.3" } \ No newline at end of file diff --git a/README.md b/README.md index 06808bc..b492b4f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Also i'd recommend to use the SSB version because it's more spectrum effiecent # SSB-STCode This is a version of the stereo code but instead of DSB-SC it transmits some kind of VSG (mostly USB with a bit of LSB), about 100-200 hz of usb is left, just as god intended (Hilbert isn't perfect so i got some usb but managed to turn it into more into LSB) -This also has a cpu usage of 20% +This also has a cpu usage of 20% with lpf, but goes to 13-15% without the lpf # SCAMod SCAMod is a simple FM modulator which can be used to modulate a secondary audio stream, has similiar cpu usage and latency as STCode diff --git a/src/features.h b/src/features.h index 4e3379a..6d0867f 100644 --- a/src/features.h +++ b/src/features.h @@ -1,2 +1,2 @@ // #define PREEMPHASIS -// #define LPF \ No newline at end of file +#define LPF \ No newline at end of file diff --git a/src/ssb_stereo_coder.c b/src/ssb_stereo_coder.c index b77be47..fa26e5d 100644 --- a/src/ssb_stereo_coder.c +++ b/src/ssb_stereo_coder.c @@ -188,7 +188,7 @@ int main() { float stereo = (current_left_input - current_right_input) / 2.0f; // Also Stereo to Mono but a bit diffrent float stereo_i, stereo_q; apply_hilbert(&hilbert, stereo, &stereo_i, &stereo_q); // I/Q, the Quadrature data is 90 degrees apart from the In-phase data - float lsb = (stereo_i*cos38-stereo_q*(sin38*0.7f)); // Compute LSB, as the Hilbert isn't perfect, i'll have to a bit silence down the Q carrier in order to make it better, also, it is just perfect as FM Stereo LSB shouldn't be fully LSB + float lsb = (stereo_i*cos38-stereo_q*(sin38*0.6f)); // Compute LSB, as the Hilbert isn't perfect, i'll have to a bit silence down the Q carrier in order to make it better, also, it is just perfect as FM Stereo LSB shouldn't be fully LSB mpx[i] = delay_line(&monoDelay, mono) * MONO_VOLUME + pilot * PILOT_VOLUME +