All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
ScriptingObjects::ScriptingModulator Class Reference
Inheritance diagram for ScriptingObjects::ScriptingModulator:
AssignableObject DebugableObject

Public Member Functions

bool exists ()
 
void setAttribute (int index, float value)
 
float getAttribute (int index)
 
int getNumAttributes () const
 
void setBypassed (bool shouldBeBypassed)
 
void setIntensity (float newIntensity)
 
float getCurrentLevel ()
 
String exportState ()
 
void restoreState (String base64State)
 
String exportScriptControls ()
 
void restoreScriptControls (String base64Controls)
 
var addModulator (var chainIndex, var typeName, var modName)
 
var addGlobalModulator (var chainIndex, var globalMod, String modName)
 
var asTableProcessor ()
 

Detailed Description

A scripting objects that wraps an existing Modulator.

Member Function Documentation

var addGlobalModulator ( var  chainIndex,
var  globalMod,
String  modName 
)

Adds a and connects a receiver modulator for the given global modulator.

var addModulator ( var  chainIndex,
var  typeName,
var  modName 
)

Adds a modulator to the given chain and returns a reference.

var asTableProcessor ( )

Returns a reference as table processor to modify the table or undefined if no table modulator.

bool exists ( )
inline

Checks if the Object exists and prints a error message on the console if not.

String exportScriptControls ( )

Export the control values (without the script).

String exportState ( )

Exports the state as base64 string.

float getAttribute ( int  index)

Returns the attribute with the given index.

float getCurrentLevel ( )

Returns the current peak value of the modulator.

int getNumAttributes ( ) const

Returns the number of attributes.

void restoreScriptControls ( String  base64Controls)

Restores the control values for scripts (without recompiling).

void restoreState ( String  base64State)

Restores the state from a base64 string.

void setAttribute ( int  index,
float  value 
)

Sets the attribute of the Modulator. You can look up the specific parameter indexes in the manual.

void setBypassed ( bool  shouldBeBypassed)

Bypasses the Modulator.

void setIntensity ( float  newIntensity)

Changes the Intensity of the Modulator. Ranges: Gain Mode 0 ... 1, PitchMode -12 ... 12.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.