HISE Docs

Table


The Table object can be created with TableProcessor.getTable() , and provides access and functions for the tables complex data object.

Class methods

addTablePoint

Adds a new table point (x and y are normalized coordinates). Edit on GitHub

Table.addTablePoint(float x, float y)



getCurrentlyDisplayedIndex

Returns the current ruler position (from 0 to 1). Edit on GitHub

Table.getCurrentlyDisplayedIndex()



getTablePointsAsArray

Returns an array containing all table points ([[x0, y0, curve0], ...]). Edit on GitHub

Table.getTablePointsAsArray()



getTableValueNormalised

Returns the value of the table at the given input (0.0 ... 1.0). Edit on GitHub

Table.getTableValueNormalised(double normalisedInput)



linkTo

Makes this table refer to the given table. Edit on GitHub

Table.linkTo(var otherTable)



reset

Resets the table with the given index to a 0..1 line. Edit on GitHub

Table.reset()



setContentCallback

Sets a callback that is being executed when a point is added / removed / changed. Edit on GitHub

Table.setContentCallback(var contentFunction)



setDisplayCallback

Sets a callback that is being executed when the ruler position changes. Edit on GitHub

Table.setDisplayCallback(var displayFunction)



setTablePoint

Sets the point with the given index to the values. Edit on GitHub

Table.setTablePoint(int pointIndex, float x, float y, float curve)



setTablePointsFromArray

Sets the table points from a multidimensional array ([x0, y0, curve0], ...]). Edit on GitHub

Table.setTablePointsFromArray(var pointList)