LemurClient:
Filter:
SCLemurLib/Classes (extension) | Lemur

LemurClient
ExtensionExtension

The LemurClient provides serveral methods you can use the build user interfaces on the Lemur iOS app without the need of the Lemur Editor.

Description

The LemurClient provides serveral methods you can use the build user interfaces on the Lemur iOS app without the need of the Lemur Editor.

Note: The ID's should be provided as alfanumeric. Like: slider1 ,slider2, range2 etc..

Class Methods

.new

Make a new LemurClient.

Returns:

A new instance.

.postXMLRequestsToConsole

A boolean to enable and disable tracing to the console of the XML editor messages that are sent to Lemur.

Instance Methods

.connect

Creates or gets a LemurConnection for a remoteIP.

Arguments:

remoteIP

The IP address of the device that runs Lemur.

.disconnect

.reset

Resets and removes all pages and widgets Lemur.

.setOscTarget

Sets the OSC target where Lemur can send OSC message to.

Arguments:

targetId

OSC target slot (int) (see properties in the app).

targetIP

The IP of the device where SuperCollider is running on.

targetPort

For example the SCLang port.

.selectPage

Select a page by pagename.

Arguments:

pagename

.page

Add a page. The Lemur Editor calls this an interface, I am going to rename this in the future or provide an overload.

Arguments:

pagename

(optional)

x

(optional)

y

(optional)

width

(optional)

height

(optional)

.renamePage

Arguments:

newname
oldname

.removePage

Remove a page containing widgets.

Arguments:

pagename

(optional)

.fader

Create or update a fader.

Arguments:

pagename

(optional)

id
x

(optional)

y

(optional)

width

(optional)

height

(optional)

color

A Color instance (optional)

.removeFader

Arguments:

pagename

(optional)

id

.switches

Add or update a matrix of switches.

Arguments:

pagename

(optional)

id

(optional)

x

(optional)

y

(optional)

width

(optional)

height

(optional)

columnSize

(optional)

rowSize

(optional)

.removeSwitches

Remove a matrix of switches

Arguments:

pagename

(optional)

id

(optional)

.pads

Add or update a matrix of pads.

Arguments:

pagename

(optional)

id

(optional)

x

(optional)

y

(optional)

width

(optional)

height

(optional)

columnSize

(optional)

rowSize

(optional)

.removePads

(describe method here)

Arguments:

pagename

(optional)

id

(optional)

.range

Add or update a range slider

Arguments:

pagename

(optional)

id

(optional)

x

(optional)

y

(optional)

width

(optional)

height

(optional)

color

(optional)

.removeRange

Remove a range slider.

Arguments:

pagename

(optional)

id

(optional)

.text

Add or update a text widget.

Arguments:

pagename

(optional)

id

(optional)

content

(optional)

x

(optional)

y

(optional)

width

(optional)

height

(optional)

color

(optional)

.removeText

Removes a text widget.

Arguments:

pagename

(optional)

id

(optional)

Examples