src/codeandchords/MenuTemplate.java
protected void addSliderGroup(int xVal, int yVal, String labelText, int sliderX, int sliderWidth, float lowRange, float highRange, float startingVals, int textfieldWidth, String tab)
	{
		this.controlP5.addLabel("label" + this.nextSliderId)
		.setPosition(xVal + this.labelX, yVal + 4)
		.setWidth(labelWidth)
		.moveTo(tab)
		.setValue(labelText);

		this.controlP5.addSlider("slider" + this.nextSliderId)
		.setPosition(sliderX, yVal)
		.setSize(sliderWidth, this.sliderHeight)
		.setRange(lowRange, highRange)
		.setValue(startingVals)
		.setSliderMode(Slider.FLEXIBLE)
		.setLabelVisible(false)
		.moveTo(tab)
		.setId(this.nextSliderId);

		this.nextSliderId	= this.nextSliderId + 1;

		this.controlP5.addTextfield("textfield" + this.nextSTextfieldId)
		.setPosition(sliderX + sliderWidth + spacer, yVal)
		.setSize(this.textfieldWidth, this.sliderHeight)
		.setText(this.controlP5.getController("slider" + (this.nextSTextfieldId - 100)).getValue() + "")
		.setAutoClear(false)
		.moveTo(tab)
		.setId(this.nextSTextfieldId)
		.getCaptionLabel().setVisible(false);

		this.nextSTextfieldId	= this.nextSTextfieldId + 1;
	}
/**	 
	 * Adds a Label with given text at xVal + this.labelX, Slider with given width, lowest value, 
	 * highest value, and starting value, and Textfield with given width to the given group at the given y value.
	 * 
	 * @param xVal	x value for the leftmost edge of the group (i.e., label will be at xVal + this.labelX)
	 * @param yVal	y value for the whole group (Label will, of course, be 4 pixels higher in order to look centered)
	 * @param labelText	text for the Label
	 * @param sliderX	x for Slider
	 * @param sliderWidth	Slider width
	 * @param lowRange	Slider lowest value
	 * @param highRange	Slider highest value
	 * @param startingVals	Slider default/starting value
	 * @param textfieldWidth	Textfield width
	 * @param group	String indicating to which group these Sliders and Textfields should belong
	 */
Adds a Label with given text at xVal + this.labelX, Slider with given width, lowest value,
highest value, and starting value, and Textfield with given width to the given group at the given y value.


Adds a Label with given text at xVal + this . labelX Slider with given width lowest value highest value and starting value and Textfield with given width to the given group at the given y value .
protected void addSliderGroup(int xVal, int yVal, String labelText, int sliderX, int sliderWidth, float lowRange, float highRange, float startingVals, int textfieldWidth, String tab)
	{
		this.controlP5.addLabel("label" + this.nextSliderId)
		.setPosition(xVal + this.labelX, yVal + 4)
		.setWidth(labelWidth)
		.moveTo(tab)
		.setValue(labelText);
		this.controlP5.addSlider("slider" + this.nextSliderId)
		.setPosition(sliderX, yVal)
		.setSize(sliderWidth, this.sliderHeight)
		.setRange(lowRange, highRange)
		.setValue(startingVals)
		.setSliderMode(Slider.FLEXIBLE)
		.setLabelVisible(false)
		.moveTo(tab)
		.setId(this.nextSliderId);
		this.nextSliderId	= this.nextSliderId + 1;
		this.controlP5.addTextfield("textfield" + this.nextSTextfieldId)
		.setPosition(sliderX + sliderWidth + spacer, yVal)
		.setSize(this.textfieldWidth, this.sliderHeight)
		.setText(this.controlP5.getController("slider" + (this.nextSTextfieldId - 100)).getValue() + "")
		.setAutoClear(false)
		.moveTo(tab)
		.setId(this.nextSTextfieldId)
		.getCaptionLabel().setVisible(false);
		this.nextSTextfieldId	= this.nextSTextfieldId + 1;
	}
protected void addSliderGroup ( int xVal , int yVal , String labelText , int sliderX , int sliderWidth , float lowRange , float highRange , float startingVals , int textfieldWidth , String tab ) { this . controlP5 . addLabel ( "label" + this . nextSliderId ) . setPosition ( xVal + this . labelX , yVal + 4 ) . setWidth ( labelWidth ) . moveTo ( tab ) . setValue ( labelText ) ; this . controlP5 . addSlider ( "slider" + this . nextSliderId ) . setPosition ( sliderX , yVal ) . setSize ( sliderWidth , this . sliderHeight ) . setRange ( lowRange , highRange ) . setValue ( startingVals ) . setSliderMode ( Slider . FLEXIBLE ) . setLabelVisible ( false ) . moveTo ( tab ) . setId ( this . nextSliderId ) ; this . nextSliderId = this . nextSliderId + 1 ; this . controlP5 . addTextfield ( "textfield" + this . nextSTextfieldId ) . setPosition ( sliderX + sliderWidth + spacer , yVal ) . setSize ( this . textfieldWidth , this . sliderHeight ) . setText ( this . controlP5 . getController ( "slider" + ( this . nextSTextfieldId - 100 ) ) . getValue ( ) + "" ) . setAutoClear ( false ) . moveTo ( tab ) . setId ( this . nextSTextfieldId ) . getCaptionLabel ( ) . setVisible ( false ) ; this . nextSTextfieldId = this . nextSTextfieldId + 1 ; }
Adds a Label with given text at xVal + this.labelX, Slider with given width, lowest value,
 highest value, and starting value, and Textfield with given width to the given group at the given y value.
Adds a Label with given text at xVal + this . labelX Slider with given width lowest value highest value and starting value and Textfield with given width to the given group at the given y value .