mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
changes
This commit is contained in:
2
.vscode/.server-controller-port.log
vendored
2
.vscode/.server-controller-port.log
vendored
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"port": 13452,
|
"port": 13452,
|
||||||
"time": 1735663051769,
|
"time": 1735683786793,
|
||||||
"version": "0.0.3"
|
"version": "0.0.3"
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@ Also i'd recommend to use the SSB version because it's more spectrum effiecent
|
|||||||
# SSB-STCode
|
# 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 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
|
||||||
SCAMod is a simple FM modulator which can be used to modulate a secondary audio stream, has similiar cpu usage and latency as STCode
|
SCAMod is a simple FM modulator which can be used to modulate a secondary audio stream, has similiar cpu usage and latency as STCode
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// #define PREEMPHASIS
|
// #define PREEMPHASIS
|
||||||
// #define LPF
|
#define LPF
|
||||||
@@ -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 = (current_left_input - current_right_input) / 2.0f; // Also Stereo to Mono but a bit diffrent
|
||||||
float stereo_i, stereo_q;
|
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
|
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 +
|
mpx[i] = delay_line(&monoDelay, mono) * MONO_VOLUME +
|
||||||
pilot * PILOT_VOLUME +
|
pilot * PILOT_VOLUME +
|
||||||
|
|||||||
Reference in New Issue
Block a user