public ConstQPane()
{
super( 2, 1, 4, 2 );
final ParamSpace spcFreq = ParamSpace.spcFreqHertz.reshape( 1, 96000, 27.5 );
final ParamSpace spcTime = ParamSpace.spcTimeMillis.reshape( 1, 2000, 5 );
ggMinFreq = new PrefParamField();
ggMinFreq.addSpace( spcFreq );
ggMinFreq.setPreferences( prefs, ConstQ.KEY_MINFREQ );
ggMinFreq.addListener( new ParamField.Listener() {
public void paramSpaceChanged( ParamField.Event e ) { /* ignore */ }
public void paramValueChanged( ParamField.Event e )
{
if( ggMaxFreq.getValue().val < e.getValue().val ) {
ggMaxFreq.setValue( e.getValue() );
}
}
});
ggMaxFreq = new PrefParamField();
ggMaxFreq.addSpace( ParamSpace.spcFreqHertz );
ggMaxFreq.setPreferences( prefs, ConstQ.KEY_MAXFREQ );
ggMaxFreq.addListener( new ParamField.Listener() {
public void paramSpaceChanged( ParamField.Event e ) { /* ignore */ }
public void paramValueChanged( ParamField.Event e )
{
if( ggMinFreq.getValue().val > e.getValue().val ) {
ggMinFreq.setValue( e.getValue() );
}
}
});
ggBandsPerOct = new PrefParamField();
// ggBandsPerOct.setSpace( NumberSpace.createIntSpace( 1, 96 ));
ggBandsPerOct.addSpace( new ParamSpace( 1, 96, 1, 0, 0, 24 ));
ggBandsPerOct.setPreferences( prefs, ConstQ.KEY_BANDSPEROCT );
ggMaxTimeRes = new PrefParamField();
ggMaxTimeRes.addSpace( spcTime );
ggMaxTimeRes.setPreferences( prefs, ConstQ.KEY_MAXTIMERES );
ggMaxFFTSize = new PrefComboBox();