MCPcopy
hub / github.com/andremichelle/openDAW / setValue

Function setValue

packages/lib/box/src/primitive.ts:117–123  ·  view source on GitHub ↗
(value: V)

Source from the content-addressed store, hash-verified

115
116 getValue(): V {return this.#value}
117 setValue(value: V): void {
118 const oldValue = this.#value
119 const newValue = this.clamp(value)
120 if (this.equals(newValue)) {return}
121 this.#value = newValue
122 this.graph.onPrimitiveValueUpdate(this, oldValue, newValue)
123 }
124 writeValue(output: ByteArrayOutput, value: V): void {
125 assert(!this.deprecated, "PrimitiveField.write: deprecated field")
126 this.serialization().encode(output, value)

Callers

nothing calls this directly

Calls 3

clampMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected