src/codeandchords/ModuleMenu.java
public void addThresholdSliders(int xVal, int yVal, int verticalSpacer)
	{
		String[]	names	= new String[] {
				"saturation",
				"saturationForteThresh",
				"brightness",
				"brightnessForteThresh"
		}; // names

		String[]	labels = new String[] {
				"Saturation",
				"Sat: Forte\nThreshold",
				"Brightness",
				"Bright: Forte\nThreshold"
		}; // labels
		
		float[][]	rangeAndStartingVals	= new float[][] {
				new float[] { -1, 1, 0	},	// percentSliders
				new float[] { 0, 1, 0.7f }, // forteThresholds
		};

		this.firstSatBrightThreshSliderId	= this.nextSliderId;
		System.out.println("firstSatBrightThreshSliderId = " + firstSatBrightThreshSliderId);

		for(int i = 0; i < names.length; i++)
		{
				this.addSliderGroup(xVal, yVal + (i * (verticalSpacer + this.sliderHeight)), labels[i], rangeAndStartingVals[i % 2][0], rangeAndStartingVals[i % 2][1], rangeAndStartingVals[i % 2][2], "sensitivity");
		} // for

	}
/**
	 * Adds the "Color: Forte Threshold", "Saturation", "Saturation: Forte Threshold", 
	 * "Brightness", and "Brightness: Forte Threshold" group of Sliders/Textfields
	 * 
	 * @param xVal 	x value for the leftmost edge of this group
	 * @param yVal	y value of forte threshold
	 * @param verticalSpacer	vertical space between sliders
	 */


@param xVal  x value for the leftmost edge of this group
@param yVal  y value of forte threshold
@param verticalSpacer        vertical space between sliders
@param xVal x value for the leftmost edge of this group @param yVal y value of forte threshold @param verticalSpacer vertical space between sliders
public void addThresholdSliders(int xVal, int yVal, int verticalSpacer)
	{
		String[]	names	= new String[] {
				"saturation",
				"saturationForteThresh",
				"brightness",
				"brightnessForteThresh"
		}; 
		String[]	labels = new String[] {
				"Saturation",
				"Sat: Forte\nThreshold",
				"Brightness",
				"Bright: Forte\nThreshold"
		}; 
		float[][]	rangeAndStartingVals	= new float[][] {
				new float[] { -1, 1, 0	},	
				new float[] { 0, 1, 0.7f }, 
		};
		this.firstSatBrightThreshSliderId	= this.nextSliderId;
		System.out.println("firstSatBrightThreshSliderId = " + firstSatBrightThreshSliderId);
		for(int i = 0; i < names.length; i++)
		{
				this.addSliderGroup(xVal, yVal + (i * (verticalSpacer + this.sliderHeight)), labels[i], rangeAndStartingVals[i % 2][0], rangeAndStartingVals[i % 2][1], rangeAndStartingVals[i % 2][2], "sensitivity");
		} 
	}
public void addThresholdSliders ( int xVal , int yVal , int verticalSpacer ) { String [ ] names = new String [ ] { "saturation" , "saturationForteThresh" , "brightness" , "brightnessForteThresh" } ; String [ ] labels = new String [ ] { "Saturation" , "Sat: Forte\nThreshold" , "Brightness" , "Bright: Forte\nThreshold" } ; float [ ] [ ] rangeAndStartingVals = new float [ ] [ ] { new float [ ] { - 1 , 1 , 0 } , new float [ ] { 0 , 1 , 0.7f } , } ; this . firstSatBrightThreshSliderId = this . nextSliderId ; System . out . println ( "firstSatBrightThreshSliderId = " + firstSatBrightThreshSliderId ) ; for ( int i = 0 ; i < names . length ; i ++ ) { this . addSliderGroup ( xVal , yVal + ( i * ( verticalSpacer + this . sliderHeight ) ) , labels [ i ] , rangeAndStartingVals [ i % 2 ] [ 0 ] , rangeAndStartingVals [ i % 2 ] [ 1 ] , rangeAndStartingVals [ i % 2 ] [ 2 ] , "sensitivity" ) ; } }
Adds the "Color: Forte Threshold", "Saturation", "Saturation: Forte Threshold",
 "Brightness", and "Brightness: Forte Threshold" group of Sliders/Textfields
Adds the " Color : Forte Threshold " " Saturation " " Saturation : Forte Threshold " " Brightness " and " Brightness : Forte Threshold " group of Sliders / Textfields
// names // labels // percentSliders // forteThresholds // for