> ## 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.

# API overview

> Public surface of torq.py — imports, modules, and where each idea lives.

Import once for timing and most domains:

```python theme={null}
from torq import (
    Clock, SimClock, Shred, ShredGroup, Join, GroupJoin, lerp,
    Shared, SharedValue, SharedEvent, SharedWait,
    Time, Dur, Wait,
    second, ms, samp, minute,
    spork, shreds, now, wait, until, every, at,
    Pat, p, shred, ShredFn, ShredCall,
    Flow, Node, Bound, TickGrid, Quantized, tick,
    is_bind_target, as_bind_target, is_tick_grid, as_tick_grid,
    current_clock,
    Protocol, Session, TrialResult, Stimulus, Window, Timeline, TimelineEvent,
    StimulusDriver, DAQDevice, SampleRecord,
    StubDriver, StubDAQ, dumps_timeline, loads_timeline, dumps_session_csv,
    Sensor, Metric, LabEngine, sensor, metric,
)
```

Domain-specific imports:

```python theme={null}
from torq.cues import (
    CueSchedule, CueEvent, CueBackend,
    StubBackend, MidoBackend, CompositeBackend, has_mido,
    midi, dmx, ch, u, note, MidiCue, DmxCue,
)
from torq.audio import AudioEngine, write_wav, has_output_device
```

## Map

| Area | Page |
| - | - |
| `Time` / `Dur` / units | [Types](https://torqpy.itsdote.tech/reference/types.md) |
| `Clock` scheduler | [Clock](https://torqpy.itsdote.tech/reference/clock.md) |
| `Shred` / `ShredGroup` / join / cancel | [Shreds](https://torqpy.itsdote.tech/reference/shreds.md) |
| `Shared` bus | [Shared](https://torqpy.itsdote.tech/reference/shared.md) |
| `spork` / `~d` / `Pat` / `@shred` | [Ergonomics](https://torqpy.itsdote.tech/reference/ergonomics.md) |
| `>>` / `@` / `%` patching | [Operators](https://torqpy.itsdote.tech/reference/operators.md) |
| `SimClock` | [Sim](https://torqpy.itsdote.tech/reference/sim.md) |
| `torq.audio` | [Audio](https://torqpy.itsdote.tech/reference/audio.md) |
| `torq.cues` | [MIDI / DMX](https://torqpy.itsdote.tech/reference/cues.md) |
| `torq.lab` | [Lab](https://torqpy.itsdote.tech/reference/lab.md) |

Built native extensions (optional): `torq._vm` (native clock), `torq._audio` (UGens / STK / PortAudio).


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