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:
dennis.sheirer
2014-09-06 14:58:05 +00:00
parent 5ddf538e2a
commit 4e0fd9b7b0
44 changed files with 1986 additions and 549 deletions

View File

@@ -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
{

View File

@@ -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 ) );
}
}