User Tools

Site Tools


manual:variables

This is an old revision of the document!



Warning: Declaration of syntax_plugin_blockquote_quote::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/doc/lib/plugins/blockquote/syntax/quote.php on line 119

Warning: Declaration of syntax_plugin_blockquote_quote::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/clients/a70cbb4a74edf8105da5fd7e142fb9de/web/doc/lib/plugins/blockquote/syntax/quote.php on line 119

Variables

They are used when advanced OSC routing capabilities are needed. Variables are events that store a value in a temporary place, and later use that value in a OSC Routing event.

They are useful when a OSC message needs to be constructed from different non-homogeneous values.

Usage

The first step is to assign the Variables event to a message argument. There are 16 different variables that can be assigned, and they are numbered from 0 to 15.

Here the Variable 0 will store the last value sent by the OSC messages /1/fader/1 and the Variable 1 will store the last value sent by the message /1/fader/2.

These variables are then used in an OSC Routing event. Here is an example of such event in the OSC Editor, where the Variables 0 and 1 are composed in a message named /faders.

This event can then be assigned for example to the /1/push1 OSC message. Therefore, every time the /1/push1 is received, OSCulator will send the /faders message with two arguments being the last values received from the /1/fader1 and /1/fader2 messages.

manual/variables.1286808113.txt.gz · Last modified: 2010/10/11 16:41 by camille