Updated spectral display to work with any sample rate and screen dimension combination. Added ability to change channel display on the spectral display to ALL, ENABLED, or NONE.

This commit is contained in:
dennis.sheirer
2014-10-20 23:07:07 +00:00
parent 61ecb5abf2
commit 8d60397547
4 changed files with 434 additions and 161 deletions

View File

@@ -277,7 +277,7 @@ public class SpectrumPanel extends JPanel
float insideHeight = size.height - mSpectrumInset;
float baseline = ( insideHeight * ( 50.0f / (float)mBaseline ) );
float baseline = ( insideHeight * ( 50.0f / (float)mBaseline ) ) - 20.0f;
/* Use the DC component as a reference to scale values to panel height */
float scale = mScaleBuffer.get( ( insideHeight * 0.75f ) /