A number box and a slider control for editing a float value.
This is the default control for any modulateable control input (ControlSpec). It is most commonly seen in Patches where it shows up as the default control for many parameters. When you move the slider, it sends messages to the Patch's Synth.
if a KrNumberEditor is in a Patch, and that Patch is playing on a server, the message to the server happens when the KrNumberEditor gets the .changed message and sends .update to all its depedants. This includes any NumberEditorGui and also any UpdatingScalarPatchOut, which is what actually sends the message to the server.
KrNumberEditors support lag. This means that the control messages received by the Synth are smoothed by a Lag.kr You can set lag to nil for no Lag.
Alternatively see NoLagControlSpec, whose defaultControl sets the lag to nil.
the keys \binary, \loop (as looked up in the Spec dictionary) are registred as NoLagControlSpec, and thus don't use any lag at all.
I would prefer to just have a lag preference in ControlSpec (clients that do lag eg. sliders can tell from the spec if they should do lag or not).
You can register others, or use a NoLagControlSpec when writing the Instr.
val | |
aspec |
aspec |
synthDef | |
name |
control |
patchIn | |
needsValueSetNow |
stream |