Sendosc( address, path [, format ] [, values ] ), Control:setvisible() / control:isvisible(), Control:setstate() / control:getstate() – Expert Sleepers Augustus Loop v2.4.1 User Manual

Page 53: Redrawlabels()

Advertising
background image

sendOSC( address, path [, format ] [, values ] )

Sends an OSC message. ‘values’ is an optional array of data items to be sent with the mes-
sage. If ‘values’ is used, then ‘format’ is an optional string that indicates how the items in
the values array should be interpreted. This is required because Lua treats all numbers as
being of the same type, whereas OSC differentiates between integers and floating point
values. The number of characters in ‘format’ should be the same as the number of values.
Each character may be one of ‘i’ (integer), ‘f’ (float) or ‘s’ (string).

E.g.

sendOSC( "osc.udp://localhost:7001", "/foo" )
sendOSC( "osc.udp://localhost:7001", "/foo", { 3, 5.2, "hello" } )
sendOSC( "osc.udp://localhost:7001", "/foo", "ifs", { 3, 5.2, "hello" } )

Note that the second example sends two floats and a string; the third sends an integer, a
float and a string.

group:setVisible() / group:isVisible()
control:setVisible() / control:isVisible()
control:setState() / control:getState()

These functions described above can also be called from luaButton functions.

redrawLabels()

This function should be called after you’ve changed the visibility of any groups. E.g.

recordOffsetGroup:setVisible( v )
redrawLabels()

Advertising