> ## Documentation Index
> Fetch the complete documentation index at: https://torqpy.itsdote.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Anti-patterns

> Common mistakes when using torq.py’s timing model and domain sugar.

Avoid these:

* Framing torq.py as audio-only (it is multi-domain timing first)
* Leading with a peer language instead of torq.py’s capabilities
* Treating `Shared` as a SimPy `Store`/`Resource` (it is a thin value/event bus, not capacity)
* `asyncio.run` / event-loop sleeps as a substitute for shreds
* Driving logical time from wall clock or audio callback into Python
* Assuming live PortAudio works on headless VMs — check `has_output_device()`
* Connecting into source UGens (oscillators / STK instruments have no audio inputs; STK effects do)
* Peer-language `=>` connect — in torq.py use `>>` / `.to()` / `.send(...)`
* `await ~d` without parentheses — must be `await (~d)`
* Using `*` for fan-out, or `<<` on non-sink UGens
* Using `|` as general typed handoff (MIDI/DMX only: channel/universe lanes; handoff stays `.to`)
* Using `%` with bare `int`/`Dur`, or `%` for lab sample windows — use `Window(..., rate=)` / clock bind / `.probe().on(clock)`
* Mixing `@` / `*` / `%` / `>>` / `<<` / `|` without parentheses
* Writing `note | ch(1) >> cues` without parentheses — must be `(note | ch(1)) >> cues`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.