mirror of
https://github.com/Make-Magazine/PirateRadio
synced 2025-10-05 16:02:52 +02:00
improved quality
That will cause the pilot tone deviation to increase from 3.9 kHz to 7 kHz (make it stronger.) It will also cause the modulation to decrease, i.e. make the sound quieter. Which is a good thing, because as delivered it over-modulates, it disturbs neighboring channels
This commit is contained in:
2
pifm.c
2
pifm.c
@@ -502,7 +502,7 @@ public:
|
||||
for (int i=0; i<consumable; i++) {
|
||||
state = (state+1) %8;
|
||||
// equation straight from wikipedia...
|
||||
buffer[i] = ((left[i]+right[i])/2 + (left[i]-right[i])/2*sinLut[state*2])*0.9 + 0.1*sinLut[state];
|
||||
buffer[i] = ((left[i]+right[i])/2 + (left[i]-right[i])/2*sinLut[state*2])*0.83 + 0.17*sinLut[state];
|
||||
}
|
||||
next->consume(buffer, consumable);
|
||||
|
||||
|
Reference in New Issue
Block a user