0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2024-12-31 23:25:00 +01:00
parent 6ff833d324
commit 613146901e
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{
"port": 13452,
"time": 1735663051769,
"time": 1735683786793,
"version": "0.0.3"
}

View File

@@ -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

View File

@@ -1,2 +1,2 @@
// #define PREEMPHASIS
// #define LPF
#define LPF

View File

@@ -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 +