in Ossia, a parameter is a very specific kind of node, which holds values and certain types of attributes.
the main constructor class method for parameters, certain attributes can be directly set at instantiation:
parent_node |
required - an |
name |
required - the node's identifier on the network |
type |
required - the type of the values the parameter may hold:
|
domain |
optional - a min/max range and/or a set of accepted values. Passing an array of two values, e.g.: Passing an array of three values (with the third as an array) will set both min/max range and accepted values, e.g. : A convenience class ( |
default_value |
optional - sets the value of the parameter at instantiation |
bounding_mode |
optional - sets the bounds' clipping mode when setting new values (defaults to
|
critical |
OSCQuery server protocol only - if |
repetition_filter |
if |
an OSSIA_Parameter
gets/sets the parameter's access mode.
aSymbol |
accepted values are:
A convenience class( |
a Symbol
with the access mode identifier
sets/gets the parameter's value
value |
a value, depending on the parameter's type |
a value
shortcut, sets the parameter's value
value |
a value |
shortcut, gets/sets the parameter's value
Parameter callbacks will inform you every time a parameter receives a message. On environments that support this, this will enable listening on the remote end. That is, if a remote device has no callbacks, network messages won't be sent upon modification.
aFunction |
to be evaluated whenever the parameter updates its value, it is passed the
|
OSCQuery protocol only - if true
, messages will be sent in tcp instead of classic osc-udp, this guarantees that the message will be received on the other end of the network.
When the repetition filter is enabled, if the same value is sent twice, the second time will be filtered.
sets the bounds' clipping mode when setting new values (defaults to 'free'
):
aSymbol |
accepted values are:
|
Domains allow to set a range of accepted values for a given parameter.
aList |
a min/max range or a set of accepted values. Passing an array of two values, e.g.: Passing an array of three values (with an A convenience class ( |
Nodes with the highest priority should execute first.
Units give a semantic meaning to the value of a parameter. See reference for a complete list of units.
aUnit |
e.g. |
convenience method when instantiating new Synth
(see OssiaReference for examples)
an Array
with the parameter's unique name and its current value
convenience method for audio-rate SynthDef
-binding (see OssiaReference for examples)
convenience method for control-rate SynthDef
-binding (see OssiaReference for examples)