Repository navigation
Plan phases without FL: theme, robustness, editor faults, a moved sample, documents - #17
Merged
Merged
Conversation
Nineteen hex colours stood at their use sites in WaveformView.cpp and Widgets.cpp, against the rule that every colour of the editor is a token of shared/ui/Theme.h. Each becomes a token with the same value, named for what it paints: the loop's lines and tint, the file markers, the channel icon, the scroll bar's rows, the menu's highlight and shortcut text, the tooltip, the dialog's button and field. No pixel changes: the seven images of docs/screenshots, regenerated after the change, are identical to the committed ones. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
After the hex literals, what was left outside shared/ui/Theme.h: the menus' and dialogs' colour constants in Widgets.cpp, JUCE's named white, black and transparent black at 27 use sites, and the playback line's colour. All are tokens of the theme header now, with the same values; no source file of the editor names a colour by itself. No pixel changes: the seven images of docs/screenshots, regenerated after the change, are identical to the committed ones. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A value that is not a number passes the parameter's limits (every comparison with it is false) and reached the engine and the precompute as it was. The UI test sets every parameter to such a value and plays a note: the test program crashed there. The processor's one accessor of a parameter's value now returns the parameter's default for a value that is not finite; the envelope targets read through it too. The sound of valid values is unchanged (the render regression is 21 of 21). The test crashed before the fix and passes after it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rebuild thread is joined with no time limit, and the precompute never looked whether anyone waited: removing the plug-in in the middle of a long sample's rate conversion or reverb waited for the whole build. buildProcessedSample takes a stop flag. It looks at it between its stages and inside the two long ones (every 4096 frames of the rate conversion, every comb and allpass pass of the reverb) and returns nothing once it is set; the processor sets it before it joins the thread and publishes nothing then. The sample is the same when the flag is not set: the engine test compares a build with the flag against one without, sample for sample, and the render regression is 21 of 21. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A dialog is a child of the editor's top component and deleted itself only when it was dismissed. A component does not delete its children, so an editor closed with a dialog open left the dialog in memory. The dialog now deletes itself when it loses its parent. The UI test shows a dialog, closes the editor and counts the dialogs that exist: one was left before the fix, none after. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The envelope display and the sample view open parameter gestures on mouse-down and close them on mouse-up. An editor closed in between left them open: a host waits for their end, and the standalone app's history never closed a step again. Both views now close what their drag opened when they are destroyed. The UI test presses an envelope point, closes the editor and counts the gestures: two were left open before the fix, none after. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A project and a preset save the sample's absolute path only, so a sample library that moved, or a project opened on another machine, lost every sample. When no file is at the saved path, the processor now looks for a file of the same name in Documents/Chan Sampler/Samples and in the folder a sample was last loaded from (in any instance), and loads it from there. Found nowhere, the sample is missing with its saved path, as before. Nothing is embedded in the state. The UI test saves a project, moves its sample, loads another sample from the new folder and restores the project: the sample had 0 frames before the change and loads from the new folder with it. A second case keeps the saved path when the file is nowhere. A new feature: the version it ships in is the owner's to set. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Letting PITCH go away from 0 switches Resample to Auto. The switch ran from the slider's drag-end callback, which JUCE calls after the attachment has closed the gesture, so the drag and the switch were two steps. ParamKnob gets a hook that runs when a drag is let go while its gesture is still open, and the editor makes the switch there. The UI test drags the knob: two steps before, one after. The wheel and the knob's menu still make the switch after their own edit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
README.md: three headings differed from the fixed order of the
standard ("How it was made", "How close is it to FL?", "Build from
source" are "How it was built", "How close", "Building from source";
no link pointed at the old anchors), and the release badge used
a78bfa where the suite's accent in docs/branding/colours.json is
6d4fd6.
MEASUREMENTS.md: one paragraph names the host behaviours that are
ours, tested and not measured in FL: the bypass, the arpeggiator
switched back on, a value that is not a number, a sample that moved.
Its numbers are the tests'.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Twelve table cells held between 400 and 2,800 characters. Each keeps its opening and points to a numbered note under its table, where the whole cell stands word for word. A script moved them and proved it: with the pipes, the pointers and the notes' numbers taken out, the page holds the words it held before plus one more copy of each opening. The longest line is 525 characters, from 2,871. The stretch modes' distance table loses its "Earlier model" column: the page holds current values, and what each earlier model measured is with the declined changes. No measured value of today changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The rest of the review's plan that needs no FL Studio, as ten stacked commits. It contains pull request 16
(
8eb6986), which this one replaces. No commit changes the sound of valid settings: the render regression is 21 of21 at the tip.
8eb6986,cb0557d): every colour of the editor is a token ofshared/ui/Theme.h; no editor sourcenames a colour by itself.
1c37bee): read as the parameter's default. The test program crashed on thenext note before.
651a424): the precompute takes a stop flag, so removing the plug-in does not wait for a longsample's rate conversion or reverb.
dc71823): a dialog open when the editor closes is released with it.2d83e9f): an editor closed in the middle of a drag closes the drag's gestures.f00599f), new: a sample not at its saved path is looked for by its name inDocuments/Chan Sampler/Samplesand in the folder a sample was last loaded from.b7c694c): a PITCH drag and the switch from Resample to Auto it causes are one undo step.bc1960a,45d252e): the README's headings and badge colour as the standard has them;MEASUREMENTS.md names the host behaviours that are ours, its twelve longest table cells are notes under their
tables, word for word, and its distance table holds current values.
How it was checked
scripts\check.ps1 -KeepFlafter each commit: repo, lint, build, zero warnings, ctest 9 of 9 and the renderregression all ok.
Tests that failed before their change: not-a-number values (a crash), the dialog (1 left, now 0), the mid-drag
close (2 gestures left open, now 0), the moved sample (0 frames, now loaded), the PITCH step (2 steps, now 1).
The rebuild's stop flag: a build with the flag equals one without, sample for sample.
The theme: the seven images of
docs/screenshots, regenerated, are identical to the committed ones.MEASUREMENTS.md: a script moved the cells and proved that the page holds the words it held before.
Not run: pluginval, FocusCheck, the VST3-against-renderer check, and anything in FL Studio.
ctestpasses and the render regression is green (CI runs both)A user-facing change has a line in
CHANGELOG.mdunder## UnreleasedA sound change has its measurement in the plug-in's MEASUREMENTS.md and its numbers in NULLTESTS.md (no sound change here)
🤖 Generated with Claude Code