BACK



	//11 - Slider Creation

	/*
	    Create JavaScriptMIDI controls

	    The JavaScriptMIDI Script Editor lets you use a simple shorthand to add
	    standard controllers such as sliders and menus for automated or real time
	    control of your plug-ins. The only mandatory property to define a new 
	    parameter is a name, which will default to a basic slider. In addition, you 
	    can add the following properties to change the type and behavior of controls.

	    Optional properties:

	    type: 
	        //type one of the following strings as the value:
	        "lin" //creates a linear fader
	        "log" //creates a logarithmic fader
	        "menu" //creates a menu
	        "valueStrings" //the menu type requires an additional property that is
	                         //an array of strings to show in the menu

	    defaultValue: //type an integer or floating point number to set a default
	                  //value. If not value is typed the default is 0.0

	    minValue: //type an integer or floating point number to set a minimum value.
	              //if no value is typed, the default is 0.0

	    maxValue: //type an integer or floating point number to set a maximum value.
	              //if no value is typed, the default is 1.0
	*/

	//Define MIDI plug-in controls

	//This results in a slider named "Parameter x" with a default range of 0 to 1.
	//It is set to the mid-point of 0.5
	var PluginParameters = [{name:"Parameter x", defaultValue:0.5}];