uvi-script
Musical event scripting with Lua
Loading...
Searching...
No Matches

Predefined unit types. More...

Public Types

enum  Type {
  Generic ,
  Percent ,
  PercentNormalized ,
  Seconds ,
  MilliSeconds ,
  Hertz ,
  Decibels ,
  LinearGain ,
  UviFilter ,
  Pan ,
  Megabyte ,
  SemiTones ,
  Cents ,
  MidiKey
}
 Unit type. More...
 

Detailed Description

Predefined unit types.

Units are named after the type of data they represented

Example:

local knob = Knob{"PercentKnob", 0, 0, 1, unit = Unit.PercentNormalized}
Knob widget.
Definition ui.cpp:1424
Predefined unit types.
Definition ui.cpp:592
@ PercentNormalized
display % symbol but actual value is in the 0..1 range
Definition ui.cpp:607

Member Enumeration Documentation

◆ Type

enum Unit::Type

Unit type.

Enumerator
Generic 

no unit

Percent 

display % symbol

PercentNormalized 

display % symbol but actual value is in the 0..1 range

Seconds 

display s symbol.

Switches to ms below 1 s.

MilliSeconds 

display ms symbol.

Switches to s above 1000 ms.

Hertz 

display Hz symbol.

Switches to kHz above 1000 Hz.

Decibels 

display dB symbol

LinearGain 

display dB symbol but with normalized gain

UviFilter 

display filter frequency with UVI filter-specific formatting

Pan 

display -1;1 pan value type

Megabyte 

display MB symbol

SemiTones 

display semitones symbol

Cents 

display cents symbol.

Switches to semitones above 100 cents.

MidiKey 

display int value into MIDI value (ex C3)