CVSyncText:
Filter:
Classes (extension) | GUI | Conductor

CVSyncText : CVSync : Object
ExtensionExtension

A class that makes various text-related GUI-classes CV-compatible

Description

CVSyncText adds the classes TextField, TextView, StaticText to CV: *viewDictionary so they can be used in combination with CVs. However, this only makes sense if their strings compile to a numeric array. Compilation here means that on any call for the CV's current value the element's string variable gets interpreted. Hence, any expression or function call that compiles to a numeric array can be used.

Class Methods

CVSyncText.valRound

CVSyncText.valRound = value

The array in the CV's value may contain Integers and/or Floats which may have many decimals. For these may be rounded to a reasonable number - by default valRound is set to 2 decimals (0.01)

Returns:

rounding decimals, given as Float

Inherited class methods

Instance Methods

.update(changer, what ... moreArgs)

update the view when the model has changed

Arguments:

changer

the model

what

the message - here \synch.

... moreArgs

Returns:

this (a CVSyncText)

.value

Set the CV: -value the element's interpreted string (must be a numeric Array)

Returns:

this (a CVSyncText)

Inherited instance methods

Examples