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

@@ -143,6 +143,33 @@ public class SettingsManager
return mSettings.getSetting( name );
}
public IntegerSetting getIntegerSetting( String name, int defaultValue )
{
IntegerSetting setting = mSettings.getIntegerSetting( name );
if( setting == null )
{
setting = new IntegerSetting( name, defaultValue );
mSettings.addSetting( setting );
save();
}
return setting;
}
public void setIntegerSetting( String name, int value )
{
IntegerSetting setting = getIntegerSetting( name, value );
setting.setValue( value );
save();
broadcastSettingChange( setting );
}
/**
* Returns the current setting, or if the setting doesn't exist
* returns a newly created setting with the specified parameters