Giter VIP home page Giter VIP logo

Comments (6)

szpajder avatar szpajder commented on August 26, 2024

from rtlsdr-airband.

dreinhold avatar dreinhold commented on August 26, 2024

Yes forgot to say it's NFM that was looking to get the gain on.

from rtlsdr-airband.

szpajder avatar szpajder commented on August 26, 2024

The phase difference-to-amplitude translation is done in fm_quadri_demod or
polar_disc_fast function (depending on whether you choose to use -Q option
or not). It's around line 863 and below. As the maximum possible phase
change equals pi (180 degrees) and the maximum possible amplitude is 1.0,
the scaling process is simply done by multiplying the demodulation result
by 1/pi (the M_1_PI macro). If you put a higher value in place of M_1_PI
(for example 0.4 or 0.5), you will get higher output amplitude. Don't be
tempted to increase it too much though, as it will easily cause audio
clipping. That's why I prefer to use analog method to adjust the gain -
namely, the volume knob on the amp or speakers :)

I once thought about implementing auto gain for NFM, however NFM is already
quite CPU intensive on the RPi, so I abandoned that idea in favor of
working on a few other, more often requested features.

Tomasz Lemiech

from rtlsdr-airband.

dreinhold avatar dreinhold commented on August 26, 2024

Awesome, thanks for the info.
Understood I only have so much to play with until it starts clipping, I capture audio from a trunked radio system also, and want to add these couple VHF channels into the mix, but I want/need the audio to be about the same.

from rtlsdr-airband.

szpajder avatar szpajder commented on August 26, 2024

There is a new feature, called mixers, which has recently arrived into unstable. You may use it to configure a volume boost factor manually. See here for details: #40

from rtlsdr-airband.

dreinhold avatar dreinhold commented on August 26, 2024

Awesome thanks for that.

from rtlsdr-airband.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.