home/ atoms/ hydra-src-wrapper-required

Hydra buffer objects (`s0`, `o0`) are not chainable sources — they must be wrapped in `src(...)`

In Hydra, s0 (webcam/video) and o0..o3 (output buffers) are buffer objects, not chainable source nodes. To start a processing chain from one you must wrap it: src(s0), src(o0). s0.initCam() initialises the webcam but does not make s0 chainable — src(s0) is still required to read from it in a chain. Using the bare buffer as a chain head is an error.

Examples

s0.initCam() // initialise webcam src(s0).out(o0) // correct: wrap in src() s0.out(o0) // error: s0 is not a source chain

Assessment

Write the two-line Hydra snippet that initialises a webcam and routes it through a .kaleid(6) transform to o0.

“Sources need `src(...)`, not the bare buffer To use a webcam/output as a texture you must wrap it: `src(s0)`, `src(o0)` — `s0` / `o0` alone are the buffer objects, not chainable sources.”
context/ · L1-instruments/hydra/gotchas.md · chunk 1