mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Channel Spectral Display
- Adds Channel Spectrum tab to display FFT of the audio output of the currently selected channel - Upgrades to JTransforms 3.0 FFT library - Adds three new context menus to main and channel spectral displays: -- Baseline - affects the vertical rendering baseline of the FFT -- Amplification - affects the vertical height of each FFT bin -- Averaging - affects how many FFTs are averaged to produce the display
This commit is contained in:
55
src/spectrum/SpectralDisplayAdjuster.java
Normal file
55
src/spectrum/SpectralDisplayAdjuster.java
Normal file
@@ -0,0 +1,55 @@
|
||||
package spectrum;
|
||||
|
||||
public interface SpectralDisplayAdjuster
|
||||
{
|
||||
/**
|
||||
* Gets the amplification multiplier that is applied against the FFT bin
|
||||
* results when displaying the value in the spectral display.
|
||||
*
|
||||
* @return amplification value ( 1 - 100 )
|
||||
*/
|
||||
public int getAmplification();
|
||||
|
||||
/**
|
||||
* Sets the amplification multiplier that is applied against the FFT bin
|
||||
* results when displaying the value in the spectral display.
|
||||
*
|
||||
* @param amplification value ( 1 - 100 )
|
||||
*/
|
||||
public void setAmplification( int amplification );
|
||||
|
||||
/**
|
||||
* Gets the averaging value indicating the number of FFT results that are
|
||||
* averaged to produce each FFT results output.
|
||||
*
|
||||
* @return averaging value ( 2 - 50 )
|
||||
*/
|
||||
public int getAveraging();
|
||||
|
||||
/**
|
||||
* Sets the averaging value indicating the number of FFT results to average
|
||||
* when producing an FFT output result.
|
||||
* @param averaging value ( 2 - 50 )
|
||||
*/
|
||||
public void setAveraging( int averaging );
|
||||
|
||||
/**
|
||||
* Gets the baseline used when plotting the FFT bin results in the FFT
|
||||
* spectral display. This value determines the vertical position within the
|
||||
* spectral display upon which the amplified values are added and then
|
||||
* plotted.
|
||||
*
|
||||
* @return averaging value ( 1 - 50 )
|
||||
*/
|
||||
public int getBaseline();
|
||||
|
||||
/**
|
||||
* Sets the baseline used when plotting the FFT bin results in the FFT
|
||||
* spectral display. This value determines the vertical position within the
|
||||
* spectral display upon which the amplified values are added and then
|
||||
* plotted.
|
||||
*
|
||||
* @param baseline value ( 1 - 50 )
|
||||
*/
|
||||
public void setBaseline( int baseline );
|
||||
}
|
||||
Reference in New Issue
Block a user