| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A sketch that analyses buffers of its own (micscope's tape of takes) had
to copy the scope's shaders to run them. scope.kernels.{waveform,
spectrogram, spectrum} and scope.pipelines.{wave, spectrogram, spectrum}
are now public, documented with what each reads and writes, beside the
parameter and view blocks already in scope.layouts; Scope.gpu.tape is
documented as the history on the GPU for a kernel of the sketch's.
Views.camera, when given, makes the rects world rects: the views are made
at their size there and drawn at camera.toScreen(rect), so moving or
zooming the camera recomputes nothing (micscope's world of panels).
scope.midi(freq, a4), scope.hz(note, a4) and scope.note_names, as
micscope's tuner and spheres' chords each spell them; place() names its
argument freq so hz can be the function.
Test: notes and frequencies convert both ways (A4 at 440 and 442, E2,
middle C, a round trip at 432) and name their pitch class. The README's
scope paragraph says all of it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|