src/codeandchords/ModuleMenu.java
public void addColorStyleButtons(int xVal, int colorStyleY, String tabName)
	{
		int	colorStyleWidth	= ((this.sidebarWidth - this.leftAlign - this.rightEdgeSpacer) / 4) - this.spacer;

		System.out.println("ColorStyle: colorStyleWidth = " + colorStyleWidth);

		int rainbowX     	= xVal + this.leftAlign;
		int dichromaticX	= xVal + this.leftAlign + colorStyleWidth + this.spacer;
		int trichromaticX	= xVal + this.leftAlign + (colorStyleWidth + this.spacer) * 2;
		int customX			= xVal + this.leftAlign + (colorStyleWidth + this.spacer) * 3;

		this.controlP5.addTextlabel("colorStyle")
		.setPosition(xVal + this.labelX, colorStyleY + 4)
		.moveTo(tabName)
		.setValue("Color Style");

		this.controlP5.addToggle("rainbow")
		.setPosition(rainbowX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Rainbow")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_RAINBOW);
		this.controlP5.getController("rainbow").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);

		this.controlP5.addToggle("dichrom")
		.setPosition(dichromaticX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Dichrom.")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_DICHROM);
		this.controlP5.getController("dichrom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);

		this.controlP5.addToggle("trichrom")
		.setPosition(trichromaticX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Trichrom.")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_TRICHROM);
		this.controlP5.getController("trichrom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);

		this.controlP5.addToggle("custom")
		.setPosition(customX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Custom")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_CUSTOM);
		this.controlP5.getController("custom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);

		//	this.setColorStyle(ModuleMenu.CS_RAINBOW);
		this.controlP5.getController("rainbow").update();
	}
/**
	 * Method called during instantiation to initialize the color style Toggles
	 * (Rainbow, Dichromatic, Trichromatic, and Custom).
	 * 
	 * @param xVal 	x value for the leftmost edge of this group
	 * @param colorStyleY	y value of the colorStyle Toggles
	 * @param tabName	String indicating to which Tab this group of Controllers should be added
	 * 					(for no Tab, use "default")
	 */
Method called during instantiation to initialize the color style Toggles
(Rainbow, Dichromatic, Trichromatic, and Custom).

@param xVal  x value for the leftmost edge of this group
@param colorStyleY   y value of the colorStyle Toggles
@param tabName       String indicating to which Tab this group of Controllers should be added
(for no Tab, use "default")
Method called during instantiation to initialize the color style Toggles ( Rainbow Dichromatic Trichromatic and Custom ) . @param xVal x value for the leftmost edge of this group @param colorStyleY y value of the colorStyle Toggles @param tabName String indicating to which Tab this group of Controllers should be added ( for no Tab use " default " )
public void addColorStyleButtons(int xVal, int colorStyleY, String tabName)
	{
		int	colorStyleWidth	= ((this.sidebarWidth - this.leftAlign - this.rightEdgeSpacer) / 4) - this.spacer;
		System.out.println("ColorStyle: colorStyleWidth = " + colorStyleWidth);
		int rainbowX     	= xVal + this.leftAlign;
		int dichromaticX	= xVal + this.leftAlign + colorStyleWidth + this.spacer;
		int trichromaticX	= xVal + this.leftAlign + (colorStyleWidth + this.spacer) * 2;
		int customX			= xVal + this.leftAlign + (colorStyleWidth + this.spacer) * 3;
		this.controlP5.addTextlabel("colorStyle")
		.setPosition(xVal + this.labelX, colorStyleY + 4)
		.moveTo(tabName)
		.setValue("Color Style");
		this.controlP5.addToggle("rainbow")
		.setPosition(rainbowX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Rainbow")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_RAINBOW);
		this.controlP5.getController("rainbow").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);
		this.controlP5.addToggle("dichrom")
		.setPosition(dichromaticX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Dichrom.")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_DICHROM);
		this.controlP5.getController("dichrom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);
		this.controlP5.addToggle("trichrom")
		.setPosition(trichromaticX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Trichrom.")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_TRICHROM);
		this.controlP5.getController("trichrom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);
		this.controlP5.addToggle("custom")
		.setPosition(customX, colorStyleY)
		.setWidth(colorStyleWidth)
		.setCaptionLabel("Custom")
		.moveTo(tabName)
		.setInternalValue(ModuleMenu.CS_CUSTOM);
		this.controlP5.getController("custom").getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER);
		this.controlP5.getController("rainbow").update();
	}
public void addColorStyleButtons ( int xVal , int colorStyleY , String tabName ) { int colorStyleWidth = ( ( this . sidebarWidth - this . leftAlign - this . rightEdgeSpacer ) / 4 ) - this . spacer ; System . out . println ( "ColorStyle: colorStyleWidth = " + colorStyleWidth ) ; int rainbowX = xVal + this . leftAlign ; int dichromaticX = xVal + this . leftAlign + colorStyleWidth + this . spacer ; int trichromaticX = xVal + this . leftAlign + ( colorStyleWidth + this . spacer ) * 2 ; int customX = xVal + this . leftAlign + ( colorStyleWidth + this . spacer ) * 3 ; this . controlP5 . addTextlabel ( "colorStyle" ) . setPosition ( xVal + this . labelX , colorStyleY + 4 ) . moveTo ( tabName ) . setValue ( "Color Style" ) ; this . controlP5 . addToggle ( "rainbow" ) . setPosition ( rainbowX , colorStyleY ) . setWidth ( colorStyleWidth ) . setCaptionLabel ( "Rainbow" ) . moveTo ( tabName ) . setInternalValue ( ModuleMenu . CS_RAINBOW ) ; this . controlP5 . getController ( "rainbow" ) . getCaptionLabel ( ) . align ( ControlP5 . CENTER , ControlP5 . CENTER ) ; this . controlP5 . addToggle ( "dichrom" ) . setPosition ( dichromaticX , colorStyleY ) . setWidth ( colorStyleWidth ) . setCaptionLabel ( "Dichrom." ) . moveTo ( tabName ) . setInternalValue ( ModuleMenu . CS_DICHROM ) ; this . controlP5 . getController ( "dichrom" ) . getCaptionLabel ( ) . align ( ControlP5 . CENTER , ControlP5 . CENTER ) ; this . controlP5 . addToggle ( "trichrom" ) . setPosition ( trichromaticX , colorStyleY ) . setWidth ( colorStyleWidth ) . setCaptionLabel ( "Trichrom." ) . moveTo ( tabName ) . setInternalValue ( ModuleMenu . CS_TRICHROM ) ; this . controlP5 . getController ( "trichrom" ) . getCaptionLabel ( ) . align ( ControlP5 . CENTER , ControlP5 . CENTER ) ; this . controlP5 . addToggle ( "custom" ) . setPosition ( customX , colorStyleY ) . setWidth ( colorStyleWidth ) . setCaptionLabel ( "Custom" ) . moveTo ( tabName ) . setInternalValue ( ModuleMenu . CS_CUSTOM ) ; this . controlP5 . getController ( "custom" ) . getCaptionLabel ( ) . align ( ControlP5 . CENTER , ControlP5 . CENTER ) ; this . controlP5 . getController ( "rainbow" ) . update ( ) ; }
Method called during instantiation to initialize the color style Toggles
 (Rainbow, Dichromatic, Trichromatic, and Custom).
Method called during instantiation to initialize the color style Toggles ( Rainbow Dichromatic Trichromatic and Custom ) .
//	this.setColorStyle(ModuleMenu.CS_RAINBOW);