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

Topics

 Global Variables
 
 

Namespaces

namespace  System
 Global system variables.
 

Classes

class  Element
 Common Elements base class. More...
 
class  EventProcessor
 an Event processor. More...
 
class  ControlSignalSource
 a Modulation source More...
 
class  SignalConnection
 a Connection definition for a modulation More...
 
class  AuxEffect
 an Auxiliary Bus Container for multiple InsertEffect More...
 
class  InsertEffect
 an Insert FX Generic structure that defines an insert FX More...
 
class  BusRouter
 a BusRouter Structure that holds the aux send level as well as the pre/post flag More...
 
class  SampledReverb
 SampledReverb. More...
 
class  Synth
 The Master Element in the synthesis tree. More...
 
class  Part
 A Part. More...
 
class  Program
 A Patch that represents a monotimbral instrument. More...
 
class  Layer
 A layer of sounds. More...
 
class  Keygroup
 A range of keys and velocities. More...
 
class  Oscillator
 The Synthesis primitive. More...
 
class  SampleBasedOscillator
 A sample-based Oscillator. More...
 
class  SamplePlayer
 A sample player Oscillator. More...
 

Functions

string getLocation (string location)
 
function findLayer (name)
 return the layer id given the layer display name.
 

Detailed Description

Synthesis engine structure and hierarchy access.

The Engine group provides access to the UVI synthesis engine's hierarchical structure, from the top-level Synth down through Parts, Programs, Layers, Keygroups, to individual Oscillators. You can navigate this hierarchy, query properties, and modify parameters to control synthesis in real-time.

Engine Hierarchy:

Key Classes:

Common Operations:

Note
Use the global variable this to access the current ScriptProcessor and navigate to parent elements like this.parent.parent to reach the Program level.
See also
Elements & parameters, Async

Function Documentation

◆ findLayer()

function findLayer ( name )

return the layer id given the layer display name.

Parameters
namedisplayName of layer to find
Returns
layerId if the layer was found, nil otherwise usage:
function onNote(e)
local layer = findLayer("sustain")
e.layer = layer
local voiceId = postEvent(e)
end
function findLayer(name)
return the layer id given the layer display name.
Definition layer.lua:20
void onNote(table e)
event callback that will receive all incoming note-on events if defined.
function postEvent(e, delta)
send a script event back to the script engine event queue.
Definition api.lua:842

◆ getLocation()

string getLocation ( string location)
Returns
returns special locations like Home, Desktop, Documents and Music directories
print(getLocation("Home"))
print(getLocation("Documents"))
print(getLocation("Desktop"))
print(getLocation("Music"))
print(getLocation("ProgramPath"))
print(getLocation("Temp"))
string getLocation(string location)