Hi Xavier,
yes i did some experiments on that git branch,
there are some compatibility break, around the midi nrpn configuration, to allow the remote edit of the new parameters, the stepseq NRPN is moved .
There is also in my code a pull from gresade, who added wrapping and phase mod for oscillators (
https://github.com/gresade/preenfm3)
of course all my work is reusable as you wish, here is a summary :
Summary of improvements since PR #16:
1. FM Engine & Oscillators
- True HQ x2 mode (2x oversampling) replacing the legacy HQ mode (from gresade), with lower aliasing across waveforms (saw, square, s_q4, windowed sync, and phase warping).
- Configurable Attack/Release curve shapes on Free Envelopes 1 & 2.
- Anti-aliasing & waveforms: Added mipmap tables for saw, square, s_q4 (replacing s^2), sinZero/sinPos, windowed sync, and improved phase warping.
2. Per-Voice Filters & Effects
- Reduced aliasing on modulated filters and distortion/wrap effects.
- Reworked Oryx filter, Ap4D (true Dual Nested Allpass Phaser), Ping-Pong filter, and improved TB-303 emulation with accent circuit.
- Smoother delay interpolation in Timbre FX.
3. Dynamics & Saturation
- 6 per-timbre dynamics profiles (Off, Glue, Punch, Tube, Limit, Drive, Fuzz) combining tailored compression with matched analog-style saturation and a transparent safety limiter (Limit).
- ADAA1 on Glue & Fuzz: Exact branchless antiderivative formulation using direct hardware vsqrt.f32.
4. Voice Allocation & CPU Management
- Added Bass-Protect voice priority (alongside Last, High, Low, Cyclic) and improved held-note restoration.
- Smart CPU overload protection: cuts inaudible release tails early, purges the oldest released voice first on spikes, and falls back to Full mode on new notes when CPU is near the limit.
5. Arpeggiator & Step Sequencer
- 19 arpeggiator directions (added Down&Up, Up&Down Inclusive, Converge, Diverge, Thumb, Pinky, and Random Walk).
- Euclidean variations for factory presets (seed 0..15), step actions (Tie, Oct+, Ratchet x2, Chord strum, Slap), and new matrix destinations.
- Parametric Euclidean Swing (Swng, Hits, Len, Rot, Ghost Velocity) with a live 8-step groove display.
- Step Sequencer loop length (1..16) and per-step actions (Glide, Mute, Pass, LFO triggers, subdivisions, Alt2/Alt3).
- New matrix destinations: Arp+, ArpVl, ArpGt, ArpDv, Arp Ratchet, note+.
6. MIDI, Storage & Performance
- MIDI / NRPN: Refactored CC & NRPN mapping, fixed patch dump and MSB >= 2 routing, exposed Warp (CC 33..35, 111..113), Timbre/MFX (NRPN MSB 4, LSB 0..3), Arp Seed (4/4), Usr1..4 lengths (4/5..

, and Usr1..4 step states/modes (MSB 7..10).
- Patch format PFM3_PATCH_VERSION 1.7f: Compacted FlashSynthParams to 1000 bytes (fitting under ALIGNED_PATCH_SIZE - 5 = 1019) to fix Decim and LFO sync persistence in patch banks and mixers, with backward migration for < 1.7f patches.
It's still a work in progress, so don't hesitate to test it (fw attached) and to suggest improvements !
For example the Parametric Euclidean Swing is still at an experimental stage.
Edit :
now that my hidden agenda is revealed, i had to update
https://preen-web-ui.vercel.app as well
