> For the complete documentation index, see [llms.txt](https://sparkar-community.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sparkar-community.gitbook.io/docs/patchesmodule.md).

# PatchesModule

`getBooleanValue`

`getBooleanValue(name: String): BoolSignal`

Returns a `BoolSignal` that is exported with `name` from the Patch Editor.

`getColorValue`

`getColorValue(name: String): RgbaSignal`

Returns a `RgbaSignal` that is exported with `name` from the Patch Editor.

`getPoint2DValue`

`getPoint2DValue(name: String): PixelPointSignal`

Returns a `PixelPointSignal` that is exported with `name` from the Patch Editor.

`getPointValue`

`getPointValue(name: String): PointSignal`

Returns a `PointSignal` that is exported with `name` from the Patch Editor.

`getPulseValue`

`getPulseValue(name: String): EventSource`

Returns a pulse `EventSource` that wrapps a pulse that is exported with `name` from the Patch Editor.

`getScalarValue`

`getScalarValue(name: String): ScalarSignal`

Returns a `ScalarSignal` that is exported with `name` from the Patch Editor.

`getStringValue`

`getStringValue(name: String): StringSignal`

Returns a `StringSignal` that is exported with `name` from the Patch Editor.

`getVectorValue`

`getVectorValue(name: String): VectorSignal`

Returns a `VectorSignal` that is exported with `name` from the Patch Editor.

`setBooleanValue`

`setBooleanValue(name: String, signal: BoolSignal): void`

Sends a `BoolSignal` that is imported with `name` into the Patch Editor.

`setColorValue`

`setColorValue(name: String, signal: ColorSignal): void`

Sends a `ColorSignal` that is imported with `name` into the Patch Editor.

`setPoint2DValue`

`setPoint2DValue(name: String, signal: PixelPointSignal): void`

Sends a `PixelPointSignal` that is imported with `name` into the Patch Editor.

`setPointValue`

`setPointValue(name: String, signal: PointSignal): void`

Sends a `PointSignal` that is imported with `name` into the Patch Editor.

`setPulseValue`

`setPulseValue(name: String, signal: EventSource): void`

Sends an `EventSource` that is imported with `name` into the Patch Editor.

Note: The `Reactive.once()` method can be used to return an `EventSource` that emits an empty event as soon as possible.

`setScalarValue`

`setScalarValue(name: String, signal: ScalarSignal): void`

Sends a `ScalarSignal` that is imported with `name` into the Patch Editor.

`setStringValue`

`setStringValue(name: String, signal: StringSignal): void`

Sends a `StringSignal` that is imported with `name` into the Patch Editor.

`setVectorValue`

`setVectorValue(name: String, signal: VectorSignal): void`

Sends a `VectorSignal` that is imported with `name` into the Patch Editor.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sparkar-community.gitbook.io/docs/patchesmodule.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
