Commit d4c80b8
v0.8.11: code cleanup, HeaderBar always visible, lazy chop real-time slices
Priority 1 bugs:
- getTailLengthSeconds() returns 5.0 (max ADSR release); was 0 — VST contract violation
- GrainEngine BPM calc: keep double arithmetic, cast at end (was discarding precision)
- Voice muteGroup default changed from 0 to 1 to match slice creation default
- AdsrEnvelope: document 0.00015f (~-76 dB) and 1.01f (asymptotic curve) magic numbers
Design cleanup:
- UIHelpers.h (new): computeDragValue(), computeZoomFactor(), UILayout::waveformVerticalScale
- HeaderBar: extract paintRow1/paintRow2; use UIHelpers::computeDragValue()
- SliceControlBar: use UIHelpers::computeDragValue() (eliminate duplication)
- ScrollZoomBar: use UIHelpers::computeZoomFactor()
- WaveformView: encapsulate sliceDrawMode; CacheKey struct; extract paint helpers; use UIHelpers
- ActionPanel/PluginEditor: use WaveformView::setSliceDrawMode/isSliceDrawModeActive()
- PluginEditor: scaleDirty bool replaces -1.0f sentinel
- VoicePool: add const getVoice() overload; document audio constants
Features:
- HeaderBar now always shows parameter controls (Row1+Row2) even with no sample loaded;
waveform area already shows drop hint so HeaderBar was redundant
- Lazy chop: slices now appear in the UI immediately on each MIDI note press instead
of waiting until lazy chop is stopped (uiSnapshotDirty was gated behind midiSelectsSlice)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0f87ab4 commit d4c80b8
17 files changed
Lines changed: 476 additions & 463 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 153 | + | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
| |||
275 | 272 | | |
276 | 273 | | |
277 | 274 | | |
278 | | - | |
| 275 | + | |
279 | 276 | | |
280 | | - | |
| 277 | + | |
281 | 278 | | |
| 279 | + | |
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
| 908 | + | |
909 | 909 | | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
914 | 913 | | |
915 | 914 | | |
916 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 28 | + | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
155 | | - | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
0 commit comments