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

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

cURL example
curl -X 'PUT' \
  'http://localhost:6789/system-gain/decrease' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '6'
AppleScript example
do shell script "curl -X 'PUT' 'http://localhost:6789/system-gain/increase' -H 'accept: application/json' -H 'Content-Type: application/json' -d '6'"

Conclusion

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:

Last updated

Logo

© 2024 HOLOPLOT GmbH. All rights reserved.