> 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="https://1870956965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEWZvA6Ecdn48SRkbJ1C8%2Fuploads%2FGEQ1z2kcgWLMedUSk6mG%2Fimage.png?alt=media&amp;token=15e6cf70-5033-44d2-b0f5-49e96509b315" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.holoplot.com/holoplot-api/examples/adjusting-the-systems-gain.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
