JUCE
|
Enumerations | |
enum | ControlType { internalConfig = 0 , midiCC , sysex } |
Control type for use with initControl. More... | |
enum | ControlMode { toggle = 0 , togglePulse , gate , trigger , cycle , incDec , triState } |
Control mode for use with initControl. More... | |
Functions | |
int | getHeapByte (int byteIndex) |
Reads and returns the value of a single byte from the heap. | |
int | getHeapInt (int byteIndex) |
Reads 4 bytes from the heap and returns the value as an integer. | |
int | getHeapBits (int startBitIndex, int numBits) |
Reads a sequence of bits from the heap and returns the value as an integer. | |
void | setHeapByte (int byteIndex, int newValue) |
Writes a single byte to the heap. | |
void | setHeapInt (int byteIndex, int newValue) |
Writes 4 bytes to the heap. | |
int | min (int a, int b) |
Returns the smaller of two integer values. | |
float | min (float a, float b) |
Returns the smaller of two floating point values. | |
int | max (int a, int b) |
Returns the larger of two integer values. | |
float | max (float a, float b) |
Returns the larger of two floating point values. | |
int | clamp (int lowerLimit, int upperLimit, int valueToConstrain) |
Constrains an integer value to keep it within a given range. | |
float | clamp (float lowerLimit, float upperLimit, float valueToConstrain) |
Constrains a floating point value to keep it within a given range. | |
int | abs (int arg) |
Returns the absolute value of an integer value. | |
float | abs (float arg) |
Returns the absolute value of a floating point value. | |
float | map (float value, float sourceMin, float sourceMax, float destMin, float destMax) |
Remaps a value from a source range to a target range. | |
float | map (float value, float sourceMin, float sourceMax) |
Remaps a value from a source range to the range 0 - 1.0. | |
int | mod (int dividend, int divisor) |
Performs a modulo operation (can cope with the dividend being negative). | |
float | getRandomFloat () |
Returns a random floating-point number. | |
int | getRandomInt (int maxValue) |
Returns a random integer, limited to a given range. | |
int | getMillisecondCounter () |
Returns the number of milliseconds since a fixed event (usually system startup). | |
int | getTimeInCurrentFunctionCall () |
Returns the length of time spent in the current function call in milliseconds. | |
void | log (int data) |
Logs an integer value to the console. | |
void | logHex (int data) |
Logs a hexadecimal value to the console. | |
void | sendMIDI (int byte0) |
Sends a 1-byte short midi message. | |
void | sendMIDI (int byte0, int byte1) |
Sends a 2-byte short midi message. | |
void | sendMIDI (int byte0, int byte1, int byte2) |
Sends a 3-byte short midi message. | |
void | sendNoteOn (int channel, int noteNumber, int velocity) |
Sends a key-down message. | |
void | sendNoteOff (int channel, int noteNumber, int velocity) |
Sends a key-up message. | |
void | sendAftertouch (int channel, int noteNumber, int level) |
Sends an aftertouch message. | |
void | sendCC (int channel, int controller, int value) |
Sends a controller message. | |
void | sendPitchBend (int channel, int position) |
Sends a pitch bend message. | |
void | sendChannelPressure (int channel, int pressure) |
Sends a channel-pressure change event. | |
void | setChannelRange (bool useMPE, int lowChannel, int highChannel) |
Sets the MIDI channel range. | |
int | assignChannel (int noteNumber) |
Assigns a MIDI channel to a note number. | |
void | deassignChannel (int noteNumber, int channel) |
Deassigns a channel from a note number. | |
int | getControlChannel () |
Returns the channel that is being used for control messages. | |
void | useMPEDuplicateFilter (bool active) |
Sets whether duplicate notes should be filtered out when MPE is enabled. | |
void | repaint () |
Use this method to draw the display. | |
void | handleButtonDown (int index) |
Called when a button is pushed. | |
void | handleButtonUp (int index) |
Called when a button is released. | |
void | onControlPress (int buttonIndex) |
Call this when a control block button is pressed to trigger the buttons default behaviour. | |
void | onControlRelease (int buttonIndex) |
Call this when a control block button is released to trigger the buttons default behaviour. | |
void | touchStart (int index, float x, float y, float z, float vz) |
Called when a touch event starts. | |
void | touchMove (int index, float x, float y, float z, float vz) |
Called when a touch event moves. | |
void | touchEnd (int index, float x, float y, float z, float vz) |
Called when a touch event ends. | |
void | initialise () |
Called when a program is loaded onto the block and is about to start. | |
void | handleMIDI (int byte0, int byte1, int byte2) |
Called when a block receives a MIDI message. | |
void | handleMessage (int param1, int param2, int param3) |
Called when a block receives a message. | |
int | makeARGB (int alpha, int red, int green, int blue) |
Combines a set of 8-bit ARGB values into a 32-bit colour and returns the result. | |
int | blendARGB (int baseColour, int overlaidColour) |
Blends the overlaid ARGB colour onto the base one and returns the new colour. | |
void | displayBatteryLevel () |
Displays an animation indicating the current battery level of this block. | |
void | clearDisplay () |
Clears the display and sets all the LEDs to black. | |
void | clearDisplay (int rgb) |
Clears the display and sets all the LEDs to a specified colour. | |
void | fillPixel (int rgb, int x, int y) |
Sets a pixel to a specified colour with full alpha. | |
void | blendPixel (int argb, int x, int y) |
Blends the current pixel colour with a specified colour. | |
void | fillRect (int rgb, int x, int y, int width, int height) |
Fills a rectangle on the display with a specified colour. | |
void | blendRect (int argb, int x, int y, int width, int height) |
Blends a rectangle on the display with a specified colour. | |
void | blendGradientRect (int colourNW, int colourNE, int colourSE, int colourSW, int x, int y, int width, int height) |
Fills a rectangle on the display with four corner colours blended together. | |
void | blendCircle (int argb, float xCentre, float yCentre, float radius, bool fill) |
Blends a circle on the display with a specified colour. | |
void | drawNumber (int value, int colour, int x, int y) |
Draws a number on the display. | |
int | getFirmwareVersion () |
Returns the current firmware version of this block. | |
float | getBatteryLevel () |
Returns the battery level of this block, between 0 and 1.0. | |
bool | isBatteryCharging () |
Returns true if this block's battery is charging. | |
void | setStatusOverlayActive (bool active) |
Sets whether status overlays should be displayed on this block. | |
void | setPowerSavingEnabled (bool enabled) |
Sets whether power saving mode should be enabled on this block. | |
int | getBlockTypeForID (int blockID) |
Returns the type of the block with a given ID. | |
void | sendMessageToBlock (int blockID, int param1, int param2, int param3) |
Sends a message to the block with the specified ID. | |
void | sendMessageToHost (int param1, int param2, int param3) |
Sends a message to the host. | |
void | addPressurePoint (int argb, float touchX, float touchY, float touchZ) |
Draws a pressure point with a specified colour and pressure. | |
void | drawPressureMap () |
Draws the pressure map on the display. | |
void | fadePressureMap () |
Fades the pressure map on the display. | |
void | linkBlockIDtoController (int blockID) |
Links a another block to this control block. | |
void | repaintControl () |
Repaints the control block display. | |
void | initControl (int buttonIndex, int modeToUse, int outputType, int val, int min, int max, int index, int onColourToUse, int offColourToUse) |
Initialises one of the control block buttons. | |
void | handleTouchAsSeaboard (int touchIndex) |
Forces a touch event to be handled as seaboard playing. | |
int | getNumBlocksInTopology () |
Returns the number of blocks in the current topology. | |
int | getBlockIDForIndex (int index) |
Returns the ID of a block at a given index in the topology. | |
bool | isMasterBlock () |
Returns true if this block is directly connected to the host, as opposed to only being connected to a different block via a connection port. | |
bool | isConnectedToHost () |
Returns true if this block is connected to the host computer, this can be directly or through connections to other blocks. | |
int | getBlockIDOnPort (int port) |
Returns the ID of a block connected to a specified port on this block. | |
int | getPortToMaster () |
Returns the port number that is connected to the master block. | |
int | getHorizontalDistFromMaster () |
Returns the horizontal distance between this block and the master block in block units. | |
int | getVerticalDistFromMaster () |
Returns the vertical distance between this block and the master block in block units. | |
int | getAngleFromMaster () |
Returns the angle of this block relative to the master block in degrees. | |
void | setAutoRotate (bool enabled) |
Sets whether this block should auto-rotate when its angle relative to the master block changes. | |
int | getClusterIndex () |
Returns the index of this block in the current cluster. | |
int | getClusterWidth () |
Returns how many blocks wide the current cluster is. | |
int | getClusterHeight () |
Returns how many blocks high the current cluster is. | |
int | getClusterXpos () |
Returns the x index of this block in the current cluster. | |
int | getClusterYpos () |
Returns the y index of this block in the current cluster. | |
int | getNumBlocksInCurrentCluster () |
Returns the number of blocks in the current cluster. | |
int | getBlockIdForBlockInCluster (int index) |
Returns the block ID for a block in the current cluster. | |
bool | isMasterInCurrentCluster () |
Returns true if the master block is in the current cluster. | |
int | getLocalConfig (int item) |
Returns current value of one of the local config items. | |
void | setLocalConfig (int item, int value) |
Sets the current value of one of the local config items. | |
void | requestRemoteConfig (int longAddress, int item) |
Sets the local config of a block to the config item of a remote block. | |
void | setRemoteConfig (int longAddress, int item, int value) |
Sets the config of a remote block. | |
void | setLocalConfigItemRange (int item, int min, int max) |
Sets the range of one of the local config items. | |
void | setLocalConfigActiveState (int item, bool isActive, bool saveToFlash) |
Sets whether a local config item should be active. | |