feat: apply reversible linear and equal-power fades to sample selections

This commit is contained in:
Johannes Findeisen 2026-11-06 01:06:24 +01:00
commit 15714fa764
7 changed files with 23 additions and 7 deletions

View file

@ -33,3 +33,7 @@ Invert polarity negates selected float samples; it is not time reversal. Over-ra
## Phase 74
Remove DC offset subtracts the mean of the selected range from only that range. This is a constant offset correction, not a high-pass filter. Selection boundaries may acquire discontinuities; use fades or zero-crossing tools where appropriate. Finite over-range results are retained; float overflow rejects the edit.
## Phase 75
Sample fades offers four offline curves: linear in/out and equal-power in/out (sinusoidal amplitude). The entire selection is the fade duration; both endpoints are included in the curve. Fewer than two frames reject. These curves change copied sample data and stack with existing playback clip fades after adoption; they do not form a linked clip crossfade.

View file

@ -1777,12 +1777,12 @@ Implemented: double-precision selected-range mean subtraction in a new sample sn
Apply linear or equal-power fade-in/out over selected source frames with exact endpoint behavior, local undo and explicit distinction from nondestructive clip fades.
### Tasks and acceptance criteria
- [ ] Implement bounded C99 analysis/processing and accessible FLTK controls.
- [ ] Preserve source files, atomic error handling, history and callback safety.
- [ ] Pass meaningful core and GUI checks; document exact behavior and limits.
- [x] Implement bounded C99 analysis/processing and accessible FLTK controls.
- [x] Preserve source files, atomic error handling, history and callback safety.
- [x] Pass meaningful core and GUI checks; document exact behavior and limits.
### Implementation status
Planned.
Implemented: selected-range linear/equal-power fade-in/out processing with explicit endpoints, one-frame rejection and unchanged surrounding frames. Core curve/interior/endpoint checks and GUI local undo pass.
---