List of all members | Public Types
Unit Class Reference

Predefined unit types. More...

Public Types

enum  Type {
  Generic,
  Percent,
  PercentNormalized,
  Seconds,
  MilliSeconds,
  Hertz,
  Decibels,
  LinearGain,
  Pan,
  Megabyte,
  SemiTones,
  Cents,
  MidiKey
}
 

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}

Member Enumeration Documentation

enum 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

MilliSeconds 

display ms symbol

Hertz 

display hz symbol

Decibels 

display dB symbol

LinearGain 

display dB symbol but with normalized gain

Pan 

display -1;1 pan value type

Megabyte 

display MB symbol

SemiTones 

display semitones symbol

Cents 

display cents symbol

MidiKey 

display int value into MIDI value (ex C3)