# Zynthian OSC CUIA over Open Stage Control - template

**URL:** <https://discourse.zynthian.org/t/zynthian-osc-cuia-over-open-stage-control-template/7217>\
**Category:** Software\
**Created:** [September 2, 2022, 9:02pm UTC](https://discourse.zynthian.org/t/zynthian-osc-cuia-over-open-stage-control-template/7217 "2022-09-02T21:02:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ToFF](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/toff/32/5532_2.png) [@ToFF](https://discourse.zynthian.org/u/ToFF)\
**Post date:** [October 23, 2022, 1:56pm UTC](https://discourse.zynthian.org/t/zynthian-osc-cuia-over-open-stage-control-template/7217/5 "2022-10-23T13:56:55Z")

</div>

Hallo to all zynthianist,

I prepared OSC template for zynthian mixer. Here is results:  
[mixer\_zynthian.zip](https://discourse.zynthian.org/uploads/short-url/lYRRdgpkVOBqmAHO3m1KMHbZJe1.zip) (3.6 KB)

- download and unpack to selected place
- in file mixer.js change adress on your zynthian - edit `var zyn_host = '192.XXX.YYY.ZZZ'`
- run Open stage control server
- i using this start command:

```auto
node ~/ProductionMusic/open-stage-control-1.17.0-node 
-s 192.XXX.YYY.ZZZ:1370
-l /home/patch/ProductionMusic/Zynthian_Mixer/mixer_zynthian.json
-c /home/patch/ProductionMusic/Zynthian_Mixer/mixer.js`
--osc-port 1370
-d 

```

where -s is zynthian address, -l path to file with tempate for mixer `mixer_zynthian.json`, which automatically will be open in browserr, -c path to custom module `mixer.js`, which starting listening of zynthian, and most important is --osc-port 1370 setting osc server to listening of zynthian.

or lunch application

 ![picture-10](https://discourse.zynthian.org/uploads/default/original/2X/6/6e24672e6419858e4cd08b184ae140f4ac520870.jpeg)

 ![picture-11](https://discourse.zynthian.org/uploads/default/original/2X/b/ba9b2e3eb8ece1e1dd4952abddb65de3dbf5c6b0.jpeg)

There is sumarized OSC Commands for this template:

- Numbering of chains are X (0…15) or 256 for main chain
- /mixer/faderX float - Chain X fader level [0.0…1.0]
- /mixer/balanceX float - Chain X balance value [-1.0…1.0]
- /mixer/muteX integer - Chain X mute [0|1]
- /mixer/soloX integer - Chain X solo [0|1]
- /mixer/monoX integer - Chain X mono/stereo [0|1]
- /mixer/dpmXa float - Chain X peak programme level A-leg (left) - Notification-only - display values in range [-60, 0]
- /mixer/dpmXb float - Chain X peak programme level B-leg (right) - Notification-only - display values in range [-60, 0]
- /mixer/dpmA float - Main peak programme level A-leg (left) - Notification-only - display values in range [-60, 0]
- /mixer/dpmB, float- Main peak programme level B-leg (right) - Notification-only - display values in range [-60, 0]
- /mixer/heartbeat - Null message used to keep client registration active \*Send every 60s to receive notifications

---

_[View the full topic](https://discourse.zynthian.org/t/zynthian-osc-cuia-over-open-stage-control-template/7217)._
