0.2.0-alpha · a collaborative patcher of music where the patch and its code are one work, with its whole history · docs loading ClojureScript… No work open
Patch engine stopped Kairotic ↗ Messages travel without ▶ (▶: sound and time) · ⌘/Ctrl+click a box to edit it below: its arguments and its text (Enter applies) · ⇧+click or a frame drawn on the paper selects several: drag them together, Delete removes them, ⌘/Ctrl+A selects all · playable boxes (bang, msg, number, knobs…) are selected by their left grip; their body only plays · Code boxes: double-click their code row to open the editor (a window you can move; Ctrl/⌘+Enter applies) · their sliders can be dragged · Canvas: drag = stroke, ⇧ straight, ⌥ freehand, click = position
in sync with the patch
History
Click a point to travel to that moment · ⇧+click to choose it to forget
REPLClojureScript (Scittle) · ↑ ↓ history
(stroke :b1 [[t hz] …]) · (note :b1 t "c4" dur) · (degree :b1 t n dur) · (melody :b1 "c4/1 e4/.5") (move-stroke :b1 :t1 dt cents) · (stretch :b1 :t1 2) · (erase-stroke :b1 :t1) · (clear :b1) (grid-x :b1 0.25 "3+3+2") · (tuning :b1 "31-tet" 261.63) · (tunings) · (read-at :b1 2) (play) · (stop) · (send! :b5 2.5) (components) · (help "ramp") · (code :b6 "process = …;") · (source :b6) · (compilation :b6) · (trust-scripts true) code boxes: faust~ (Faust, AudioWorklet) · script [inlets] [outlets] (ClojureScript: (fn [m] {:out [[0 …]]})) · component (defines a class: {:class "x" :io [1 1] :receive (fn [m] …)}) (import! "kairotic/packages/controls.mjs") · (import! "npm:package@1.0.0/comp.mjs") · (publish :b5) · (library) · (use! "my-class") sub-patches: patch [name] (double-click to open, ⌥ double-click to rename) · inside: inlet outlet inlet~ outlet~ · (enter :b5) · (up) · (top) · (inside :b5 (box …) (connect …)) · (abstract :b5 "voice") · abstractions take $1 $2 canvas (any data): (axis :b6 :y -1 1) · (axis :b6 :x 20 20000 :log) · (grid-y :b6 0.25) · reader y reads along Y · (read-at :b6 :y 0.5) · freqt: frequency over time, with tunings · audio: dac~ 1 2 (one inlet per channel) · pan~ [pos] · space~ [x y] signal: phasor~ [hz] · reader~ [x|y|path] [voices] [gate] (position signal 0…1 on the left, buffer on the right; a voice keeps its last value where nothing passes; gate adds one outlet per voice, 1 where it sounds, 0 where not) · sig~ [value] · osc~ and gain~ take a signal on their frequency / factor · trajectories: reader path [stroke] (0…1 along a stroke → [x y]) Claude: the Claude tab, or (ask-component "a slow LFO with its waveform drawn") · with a component chosen in the Components tab, “change the selected component” · it uses your own Claude account packages: writing a class of an official package brings the package into the work, as one component box pinned to its version · @kairotic/synth: adsr~ [a d s r], synth~ · @kairotic/spatial: pan~ [pos], space~ [x y] · @kairotic/analysis: pitch~, onset~, chroma~, features~, spectrum~ · (packages) · (add-package! "@kairotic/synth") · a component uses the core through api/… (api/clamp, api/worklet-node…) annotations (Annotate, above the patch): (mark :notes {:kind :arrow :pts [[:b1 120 10] [:b4 -6 10]]}) · (mark :notes {:kind :text :at [:patch 300 40] :txt "…"}) (points anchored to a box, [:bN dx dy], or to the paper) · (move-mark :a1 20 0) · (unmark :a1) · (layer :notes {:z :under :show #{:present}}) · (project :b9 :viz [40 40 800 480]) · (annotate :arrow) · drawing: draw [w h] (shapes from messages: msg circle 40 40 10 accent hit sun) · theory: pcclock fourier tonnetz (@kairotic/theory) · data: fetch (a URL, kept in the work) edn (any value as a tree) (@kairotic/data) presentation: (present :b4 x y) · (present :b4) · (present-in-place :b3 :b4) · (resize :b3 640 300) · (side-panel false) · (release) · (forget-points [["id" 3]]) · (store-presets! :b18) · (unpresent :b4) · (presentation true) · a sub-patch with presented boxes is a panel of them · (send-to! :b7.b4 0.5) (box "text" x y) (connect :b1 0 :b2 0) (disconnect :b1 0 :b2 0) (move :b1 x y) (text! :b1 "text") (delete :b1) (rewind) · (rewind n) (forward) (tip) (goto "id" n) (here) (branches) (front true) (simultaneity 1500) (merge-from "id" n)