Metadata-Version: 2.4
Name: totalmix-osc
Version: 0.0.1
Summary: Verified control of RME TotalMix FX routing, gains, and loopback over OSC
Author-email: "Buran Consulting, LLC" <info@bradburan.com>
Maintainer-email: "Buran Consulting, LLC" <info@bradburan.com>
License: Copyright 2026 totalmix-osc development team
        
        Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: python-osc
Provides-Extra: docs
Requires-Dist: mkdocs; extra == "docs"
Requires-Dist: mkdocs-material; extra == "docs"
Requires-Dist: mkdocstrings[python]; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"

# totalmix-osc

Verified control of RME TotalMix FX routing, gains, and loopback over OSC.

```python
from totalmix_osc import TotalMixFX

with TotalMixFX() as tmfx:
    tmfx.set_mono_straight_playback()   # Playback N -> Output N, nothing else
    tmfx.set_gain(1, -6.0)
    tmfx.set_loopback(9, True)
```

Every change is confirmed by TotalMix's own OSC feedback before returning,
and a `TotalMixError` is raised if it isn't. Requires OSC Control and
"Submix linked to OSC Control" to be enabled in TotalMix FX under
Settings > OSC.

A `totalmix-osc` command does the same from the command line, for
checking changes by eye in the TotalMix window:

```bash
totalmix-osc gain "Phones L" -6
totalmix-osc xp 2 playback 1 off
totalmix-osc shell          # interactive, one connection
```

See the documentation for the full guide, including the quirks of
TotalMix's legacy OSC protocol that this package works around.

## Development

```bash
pip install -e .[test,docs]
pytest                 # offline tests against a simulated TotalMix
pytest --hardware      # also run against TotalMix FX and a connected device
mkdocs serve
```

The hardware tests change the mixer's routing, gains, and loopback, then
restore the original state.
