mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 09:37:36 -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:
@@ -22,8 +22,10 @@ import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import log.Log;
|
||||
|
||||
import org.jtransforms.fft.DoubleFFT_1D;
|
||||
|
||||
import dsp.filter.Window.WindowType;
|
||||
import edu.emory.mathcs.jtransforms.fft.DoubleFFT_1D;
|
||||
|
||||
public class FilterFactory
|
||||
{
|
||||
|
||||
@@ -157,7 +157,7 @@ public class Window
|
||||
*/
|
||||
public static float[] apply( double[] coefficients, float[] samples )
|
||||
{
|
||||
for( int x = 0; x < samples.length; x++ )
|
||||
for( int x = 0; x < coefficients.length; x++ )
|
||||
{
|
||||
samples[ x ] = (float)( samples[ x ] * coefficients[ x ] );
|
||||
}
|
||||
@@ -177,7 +177,7 @@ public class Window
|
||||
*/
|
||||
public static double[] apply( double[] coefficients, double[] samples )
|
||||
{
|
||||
for( int x = 0; x < samples.length; x++ )
|
||||
for( int x = 0; x < coefficients.length; x++ )
|
||||
{
|
||||
samples[ x ] = samples[ x ] * coefficients[ x ];
|
||||
}
|
||||
@@ -231,9 +231,4 @@ public class Window
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( arrayToString( getBlackmanWindow( 31 ), false ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user