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

The Synthesis primitive. More...

Inheritance diagram for Oscillator:
Element SampleBasedOscillator SamplePlayer

Public Types

enum  Parameters {
  Pitch ,
  NoteTracking ,
  BaseNote ,
  Gain ,
  CoarseTune ,
  FineTune
}
 Oscillator Parameters. More...
 

Public Member Functions

table getSliceInfo (int sliceId)
 get slice information for the given sliceId.
 
- Public Member Functions inherited from Element
void setParameter (string parameter, Value value)
 Sets an Element parameter.
 
Value getParameter (string parameter)
 Gets an Element parameter.
 
bool hasParameter (string parameter)
 
table getParameterConnections (string parameter)
 Get all SignalConnection for this parameter.
 

Public Attributes

Keygroup keygroup
 parent keygroup for this oscillator
 
bool purged
 purged status for this oscillator (when true sample is not loaded in memory)
 
int numSlices
 number of slices (only valid for Slice oscillator)
 
table looplabInfo
 looplab information.
 
table sampleInfo
 sample information.
 
- Public Attributes inherited from Element
string name
 internal element name
 
string displayName
 name to display on the User Interface, name is used if displayName is not specified.
 
string type
 internal element type
 
Elementparent
 element parent
 
table children
 element children using the element name as key
 
string output
 output routing for the element
 
int numParams
 number of parameters
 
table parameterDefinitions
 table of parameter definitions.
 

Detailed Description

The Synthesis primitive.

Member Enumeration Documentation

◆ Parameters

Oscillator Parameters.

Enumerator
Pitch 

oscillator pitch

NoteTracking 

keyboard note tracking on/off

BaseNote 

base MIDI note for pitch mapping

Gain 

oscillator output gain

CoarseTune 

coarse tuning in semitones

FineTune 

fine tuning in cents

Member Function Documentation

◆ getSliceInfo()

table Oscillator::getSliceInfo ( int sliceId)

get slice information for the given sliceId.

Returns
returns the following table:
property type unit
start number ms
duration number ms
beatPos number beats
beatDuration number beats

Member Data Documentation

◆ looplabInfo

table Oscillator::looplabInfo

looplab information.

Only valid for Slice oscillator, returns the following table:

property type
numerator number
denominator number
bars number
beats number
synced boolean
numSlices number

◆ sampleInfo

table Oscillator::sampleInfo

sample information.

Only valid for sample based oscillators, returns the following table:

property type unit optional
name string no
channels number no
duration number ms no
samplerate number Hz no
bits number no
tempo number bpm no
start number ms no
end number ms no
looped boolean no
loopStart number ms yes
loopEnd number ms yes