diff options
Diffstat (limited to 'examples/micscope/README.md')
| -rw-r--r-- | examples/micscope/README.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/micscope/README.md b/examples/micscope/README.md index 759c27c..bd55ee0 100644 --- a/examples/micscope/README.md +++ b/examples/micscope/README.md @@ -26,6 +26,11 @@ piccolo's top, against any A4 (`[` and `]`, 440 Hz by default). Panels are rendered at world resolution and the camera only scales them, so moving or zooming it recomputes nothing. +The waveform, spectrogram and spectrum shaders are sketchbook's `scope` +module's (`src/scope/shaders/`): the live view is a `scope.Scope`, and the +take panels run `scope.kernels` and `scope.pipelines` over the tape. The +tuner's are micscope's own. + | Shader | Does | | --- | --- | | `spectrum.comp` | Blackman-Harris window around the playhead, zero-padded 2×, radix-2 Stockham FFT (8192 points, one workgroup), dBFS per bin, then one value per log-spaced pixel column: a Catmull-Rom spline through the bins where columns are narrower than a bin, the loudest bin where they span several. Smoothed in time (fast attack, slow release) with falling peaks. | @@ -39,7 +44,7 @@ offset), uploaded once. A take's waveform and spectrogram are recomputed only when its view changes, and its panel redrawn only when something on it moved; only the selected take's spectrum runs every frame. -The live view uploads the microphone's last 1.4 s each frame and analyses +The live view (the scope module's) uploads the microphone's last 1.4 s each frame and analyses only the columns that became complete, into ring buffers the fragment shaders read from the oldest column. A column waits until everything its spectrogram windows reach has been heard (6160 samples past its centre), |
