> For the complete documentation index, see [llms.txt](https://docs.holoplot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.holoplot.com/holoplot-api/examples/adjusting-the-systems-gain.md).

# Adjusting the system's gain

With this example, we will show you how to adjust HOLOPLOT’s system gain. This operation has two options: setting a specific target value or increasing/decreasing by an offset value. Those methods are `PUT /system-gain/db`, `PUT /system-gain/decrease`, and `PUT /system-gain/increase`.

## Decreasing the volume <a href="#decreasing-the-volume" id="decreasing-the-volume"></a>

Let’s decrease the volume by `6 dB`. The respective cURL and AppleScript commands are:

{% code title="cURL example" overflow="wrap" %}

```bash
curl -X 'PUT' \
  'http://localhost:6789/system-gain/decrease' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '6'
```

{% endcode %}

{% code title="AppleScript example" overflow="wrap" %}

```applescript
do shell script "curl -X 'PUT' 'http://localhost:6789/system-gain/increase' -H 'accept: application/json' -H 'Content-Type: application/json' -d '6'"
```

{% endcode %}

<figure><img src="/files/ZbbNhPMBnH5fNqYl9s9L" alt=""><figcaption></figcaption></figure>

## Conclusion <a href="#conclusion" id="conclusion"></a>

You can find all the available methods and test them out with the interactive documentation. You can download a QLab session with the two examples here:

{% embed url="<https://drive.google.com/file/d/1pH_iWPXzsKGCayXYpO3xPgY7NzhcUO0V/view?usp=sharing>" %}


---

# 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://docs.holoplot.com/holoplot-api/examples/adjusting-the-systems-gain.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.
