Created
December 3, 2016 01:01
-
-
Save edy555/6fe92df2d49ca6d31b9555a84bd24274 to your computer and use it in GitHub Desktop.
from luaradio.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local radio = require('radio') | |
radio.CompositeBlock():connect( | |
radio.RtlSdrSource(88.5e6 - 250e3, 1102500), -- RTL-SDR source, offset-tuned to 88.5 MHz - 250 kHz | |
radio.TunerBlock(-250e3, 200e3, 5), -- Translate -250 kHz, filter 200 kHz, decimate 5 | |
radio.FrequencyDiscriminatorBlock(1.25), -- Frequency demodulate with 1.25 modulation index | |
radio.LowpassFilterBlock(128, 15e3), -- Low-pass filter 15 kHz for L+R audio | |
radio.FMDeemphasisFilterBlock(75e-6), -- FM de-emphasis filter with 75 uS time constant | |
radio.DownsamplerBlock(5), -- Downsample by 5 | |
radio.PulseAudioSink(1) -- Play to system audio with PulseAudio | |
):run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment