Skip to content

Commit

Permalink
improved quality
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ric96 committed Apr 8, 2014
1 parent 92af42f commit 484e189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pifm.c
Expand Up @@ -502,7 +502,7 @@ class StereoModulator: public SampleSink {
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);

Expand Down

0 comments on commit 484e189

Please sign in to comment.