![]() |
uvi-script
Musical event scripting with Lua
|
AudioMeter widget. More...
Public Member Functions | |
| AudioMeter (string name, Element element, bool isVertical, int busId, bool useOutput) | |
| creates an AudioMeter widget on the user interface. | |
| void | setStripImage (string imagePath, int numImages) |
Public Attributes | |
| string | backgroundColour |
| background colour. | |
| string | foregroundColour |
| foregroun colour. | |
| string | textColour |
| text colour. | |
| string | overColour |
| overflow (> 0dB) colour. | |
| string | ⠀0dBColour |
| use ["0dBColour"] notation as the script does not like | |
| string | ⠀3dBColour |
| use ["3dBColour"] notation as the script does not like | |
| string | ⠀6dBColour |
| use ["6dBColour"] notation as the script does not like | |
| string | ⠀10dBColour |
| use ["10dBColour"] notation as the script does not | |
| bool | displayScale |
| should we display the dB scale | |
| bool | displayAsMono |
| should we display only one meter (sum) for multichannel bus | |
Public Attributes inherited from Widget | |
| string | name |
| widget name | |
| string | displayName |
| widget display name | |
| string | tooltip |
| widget tooltip, default is name | |
| int | x |
| x position in pixels | |
| int | y |
| y position in pixels | |
| int | width |
| widget width in pixels | |
| int | height |
| widget height in pixels | |
| table | size |
| widget size {width, height} | |
| table | position |
| widget position {x,y} | |
| table | bounds |
| widget bounding rect {x,y,width,height} | |
| number | alpha |
| transparency value between 0.0 and 1.0 | |
| bool | enabled |
| boolean flag to enable / disable the widget | |
| bool | visible |
| boolean flag to toggle widget visibility | |
| bool | interceptsMouseClicks |
| boolean flag to toggle mouse handling on widget | |
| bool | showLabel |
| show widgets label if any | |
| bool | persistent |
| flag to tell if the widget values should be serialized when saving. | |
| function | changed |
| callback function used by child widgets to be notified of changes | |
AudioMeter widget.
Creates an AudioMeter widget on the user interface.
| AudioMeter::AudioMeter | ( | string | name, |
| Element | element, | ||
| bool | isVertical, | ||
| int | busId, | ||
| bool | useOutput ) |
creates an AudioMeter widget on the user interface.
–
| name | the name to give to the widget – |
| element | the element bus to listen to (ex Program, Program.layers[1]) – |
| isVertical | vertical or horizontal audio meter – |
| busId | 0 by default – |
| useOutput | use either input or output of the bus |
| void AudioMeter::setStripImage | ( | string | imagePath, |
| int | numImages ) |
| imagePath | path to audio meter strip image. Supports Retina @2x variants. |
| numImages | number of images in strip |
| string AudioMeter::⠀0dBColour |
use ["0dBColour"] notation as the script does not like
properties that start with a number. [-3, -10] dB colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::⠀10dBColour |
use ["10dBColour"] notation as the script does not
like properties that start with a number. [-inf, -10] dB colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::⠀3dBColour |
use ["3dBColour"] notation as the script does not like
properties that start with a number. [-6, -3] dB colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::⠀6dBColour |
use ["6dBColour"] notation as the script does not like
properties that start with a number . [-10, -6] dB colour. It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::backgroundColour |
background colour.
It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::foregroundColour |
foregroun colour.
It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::overColour |
overflow (> 0dB) colour.
It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format
| string AudioMeter::textColour |
text colour.
It can be either a named colour like "blue" or "red" or an hexadecimal string in RGB ("#FF00CC") or ARGB ("#3C00FECD") format