/tap-python-sdk:tap-knobfrom tap-python-sdk
Builds a virtual knob controlled by pinch-hold and wrist twist gestures using TapXR/TapBand hardware. Maps finger pinches to separate value controls (volume, brightness, zoom, scroll, color) with configurable sensitivity.
Ships in tap-python-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Needs the TapXR developer firmware or TapBand: air-gesture holds and IMU roll. TapBand uses the same BLE API and is coming soon. This is the same interaction as the Knob in the TAP_EV sandbox (https://tapwithus.github.io/TAP_EV/).
AB_HOLD..AE_HOLD (codes 110-113). That grabs a knob. Each pinch is a separate knob, so one hand controls 4 values.step_deg of roll away from it is one step (+ or -).release_after consecutive NONE (100) packets, the knob is released. Waiting for several packets stops one noisy packet from dropping the grab.stateDiagram-v2
idle --> grabbed: pinch hold 110-113
grabbed --> grabbed: roll delta >= step_deg gives +/- steps
grabbed --> idle: 4 x NONE (100)
Copy scripts/knob.py. It has:
KnobTracker: pure logic, no Bluetooth. Easy to test and reuse.
on_gesture(code) returns "start", "release", or None.on_roll(roll) returns signed int steps (0 when idle).active is the knob index 0-3 (AB, AC, AD, AE) or None.main(): connects, checks for set_feature, enables the features, and prints 4 values (0-100).Required device setup (after await sdk.start()):
await sdk.set_feature(DeviceFeatures.MODEL_DETECTION, True)
await sdk.set_vision_sensor_model(ModelTypes.AIR_GESTURE)
await sdk.set_vision_sensor_op_mode(VisionSensorOpModes.STREAM)
await sdk.set_feature(DeviceFeatures.IMU_MOTION_DATA, True)
Wiring:
def on_air_gesture(identifier, data):
event = knob.on_gesture(int(data[0]))
def on_motion(identifier, motion):
_, _, _, (roll, _, _) = motion
steps = knob.on_roll(roll)
if steps:
value[knob.active] += steps
| Setting | Default | Effect |
|---|---|---|
step_deg | 1.0 (template uses 2) | Degrees of roll per step. Larger = slower, more precise. 1-2 for fine values, 5-10 for menu items. |
release_after | 4 | NONE packets before release. Raise it if the knob drops while still pinching. |
-steps.send_vibration_sequence([40])) and optionally a tick every N steps. Do not buzz on every step.max(0, min(100, v))).wrap_degrees handles crossing it.pynput Key.media_volume_up).step_deg = 8.See also tap-dpad (pinch-hold that chooses between rotate and drag) and tap-vision-models (gesture codes).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gesture-control, virtual-knob, tapxr, tapband, pinch-twist, wearable-input
npx claudepluginhub tapwithus/tap-python-sdk --plugin tap-python-sdk8 skills in this plugin
/tap-build-an-appBuild a complete app or interactive experience controlled by a Tap - games, browser pages, presentations, media control, keyboard shortcuts, or creative tools. Use when the user asks to "build", "make", or "create" something with their Tap, especially if they are not a developer./tap-dpadBuild a D-Pad style controller with a Tap - swipes for directions, short pinches to select, pinch-hold that locks into rotate (twist) or drag (move) mode, fist-hold to hide. Use for D-Pad, menu navigation, select and move, drag and drop, rotate objects, or game controls with gestures./tap-getting-startedFirst skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.Other plugins' skills for the same job