Explorar o código

REA round 83 doc: implementation and open points; UI windows inventory updated

Ka1-S hai 1 mes
pai
achega
4bb56afa79
Modificáronse 2 ficheiros con 43 adicións e 13 borrados
  1. 31 1
      docs/analise/REA_rodada83.md
  2. 12 12
      docs/analise/UI_windows_inventory.md

+ 31 - 1
docs/analise/REA_rodada83.md

@@ -128,6 +128,36 @@ PPQ 96; the writers were not traced]**.
   {u32 tick, u16 parameter, u16 target, i32 value} (12 demo projects use it). The value scale is the parameter's own
   (e.g. 0..12800 for volumes) and the mixer target word is not decoded: **import not done** (not confirmed).
 
+## 10. What LYNX implements (our own code)
+
+- `src/core/PianoRollTools.{h,cpp}` (no JUCE, tested in `tests/tests.cpp` `prtools_*`): `parseScore` (FL `.fsc`: 24-byte
+  note records, and the 20-byte records of files written before FL 5 — 236 of the installation's score files — with
+  the < 5.3.0 colour shift, so FL's old chopping patterns keep their colour-4/12 meaning), `gridScore`; `quantize`,
+  `chop`, `flam`, `lfo`/`lfoCurve`, `claw`, `articulate` with FL's formulas above (ticks scaled from FL's PPQ to
+  LYNX's 960; levels as LYNX floats instead of FL bytes, so level rounding differs by < 1/128); chord progression
+  (`parseProgression` for FL's Roman-numeral preset syntax incl. ♭/♯, ∆, °, sus, add, 7/9/11/13, slash bass;
+  `toNumerals`, `generateProgression` — our own weighted table of diatonic moves, `writeProgression` with voice
+  leading, bass note and FL's rhythm cells); `riffMachine` (the 8-step chain of §7 over LYNX's tools; built-in
+  progression/chord shapes of our own when the installation's step patterns are missing).
+- `src/core/EventEdit.{h,cpp}` and `Song.h` `PatternEvents`: pattern event lanes (target + held values), draw/line/
+  erase/scale/randomise/LFO operations; `.lynx` saves them per pattern (`"events"`); channel/insert renumbering
+  follows them (`Song::forEachTarget`); undo label "Edit events".
+- Playback (`RackRenderer`): each lane takes an automation slot after the song's automations and binds like an
+  automation clip of its target (pattern events win over a clip of the same target). Pattern mode: the current
+  pattern's lanes at the looped position; song mode: inside a clip of the pattern its events, after it the value
+  it ended with, before the first clip the target's own value (position-only, like automation clips). Plugin
+  parameters driven by pattern events are also sent in pattern mode.
+- UI: `src/ui/NoteToolDialogs.*` (Quantize, Chop, Flam, LFO, Claw machine, Articulate, Riff machine, Chord
+  progression: live preview, Accept = one undo step; templates listed from the installation's
+  `Data/Patches/Scores/{Quantization,Chopping,Chopping/Riff machine step N}` and the chord tool's `presets.cpt` /
+  `rhythm_presets.cpt`); Piano Roll Tools menu. `src/ui/EventEditor.*`: Event editor window (target, Draw/Line/
+  Select, snap, Scale/Offset, Randomise, LFO, Clear), opened from the Piano Roll Tools menu ("Edit events...") and
+  every knob menu that offers "Create automation clip" ("Edit events in the pattern").
+
 ## Where I stopped / next steps
 
-- (in progress) core algorithms + dialogs, then the Event editor.
+- Not done: FL `.flp` pattern events (0xDF) import — value scales per parameter not decoded; FL's arpeggiator /
+  randomizer / limiter algorithms in the riff machine (LYNX's own tools are used); FL's chord progression model
+  (Markov data in `.pyc`) — LYNX's generator is its own; the quantizer "groove" templates' extra FL features
+  (template preview graph); articulator "Only with selection" (LYNX looks for the next note among the processed
+  notes only).

+ 12 - 12
docs/analise/UI_windows_inventory.md

@@ -78,7 +78,7 @@ window); **missing** = nothing yet; **n/a** = not applicable to LYNX.
 | TPLClipPropForm "Clip properties" | missing | (playlist is another agent's area) |
 | TPLMergeArrangementForm "Merge arrangement" | missing | arrangements exist |
 | TPRNotePropForm "Note properties" | exists | Note inspector in the Piano Roll |
-| TEventEditForm "Piano roll - " (event editor) | missing | automation editor covers automation clips only |
+| TEventEditForm "Piano roll - " (event editor) | **exists (round 83)** | Event editor: pattern events of a target (draw, line, select, scale, randomise, LFO); knob menus "Edit events in the pattern" |
 | TEnvMapForm "Mapping" (velocity/controller curves) | missing | |
 | TParamCtrlForm (link to controller) | exists | "Link to MIDI controller" |
 | TMIDIInputForm "Remote control settings", TMIDIInputForm_Generic "Global link settings" | partial | MIDI learn exists, no settings dialog |
@@ -97,20 +97,20 @@ window); **missing** = nothing yet; **n/a** = not applicable to LYNX.
 
 | FL form (Caption) | LYNX | Notes |
 |---|---|---|
-| TPRQuantizeForm "Piano roll - quantizer" | partial | quantise starts / starts and lengths (menu), no dialog with strength/swing |
-| TPRSliceForm "Piano roll - chopper" | partial | "Chop to grid" |
+| TPRQuantizeForm "Piano roll - quantizer" | **exists (round 83)** | Quantize: FL templates (.fsc) or the grid + swing, start/duration strength, duration modes, sensitivity, level strengths |
+| TPRSliceForm "Piano roll - chopper" | **exists (round 83)** | Chop: FL chopping patterns (.fsc) or the grid, time multiplier, song-grid alignment, level strengths |
 | TPRArpForm "Piano roll - arpeggiator" | exists | Arpeggiate tool |
 | TPRStrumForm "Piano roll - strumizer" | exists | Strum tool |
 | TPRFlipForm "Piano roll - score flipper" | exists | Flip tool |
 | TPRRandomForm "Piano roll - randomizer" | exists | Randomise tool |
 | TPRLevelScaleForm "Piano roll - level scaling" | exists | Scale levels tool |
 | TPRKeyLimitForm "Piano roll - limiter / transposer" | exists | Limit tool |
-| TPRLegatoForm "Piano roll - articulator" | partial | "Make legato" |
-| TPRFlamForm "Piano roll - flamer" | missing | |
-| TPRLFOForm "Piano roll - LFO" | missing | |
-| TPRTripletForm "Piano roll - claw machine" | missing | |
-| TPRScoreCreatorForm "Piano roll - riff machine" | missing | |
-| TPRChordToolForm "Piano roll - generate chord progression" | missing | |
+| TPRLegatoForm "Piano roll - articulator" | **exists (round 83)** | Articulate: legato/portato/staccato presets, length, variation, gap, chop chords |
+| TPRFlamForm "Piano roll - flamer" | **exists (round 83)** | Flam: FL presets, time (steps or ms), velocity, before |
+| TPRLFOForm "Piano roll - LFO" | **exists (round 83)** | LFO on a note level (and in the Event editor) |
+| TPRTripletForm "Piano roll - claw machine" | **exists (round 83)** | Claw machine: period, remove every, time distortion, stretch |
+| TPRScoreCreatorForm "Piano roll - riff machine" | **exists (round 83)** | Riff machine: FL's 8-step chain over LYNX's tools, throw dice |
+| TPRChordToolForm "Piano roll - generate chord progression" | **exists (round 83)** | Chord progression: presets (FL's presets.cpt), Roman numerals, generator, rhythm, voicing (own generator) |
 | TPRFillForm "Advanced fill" | partial | fill every N steps, Euclidean fill |
 
 ### Edison / audio editor tools (TME* forms)
@@ -125,10 +125,10 @@ normalise, region and stretch). These belong to an "Audio editor" feature, not t
 1. **Settings › General** (moves the scattered Options items into one page) and **Settings › Audio** as a page
    (today a separate dialog); Project page: pan law, data folder.
 2. **Plugin manager**: scanned plugins (name, vendor, format, path, status), scan folders, rescan, failed plugins.
-3. **Event editor** for a channel's or insert's parameter events (FL's TEventEditForm), next to automation clips.
+3. ~~Event editor~~ (round 83).
 4. **MIDI settings** page: inputs on/off, which channel each input plays, output/sync.
-5. Piano roll tools still missing: quantizer dialog (strength, swing, start/end), chopper dialog, flamer, LFO,
-   articulator dialog, claw machine, riff machine, chord progression.
+5. ~~Piano roll tools~~ (round 83: quantizer, chopper, flamer, LFO, articulator, claw machine, riff machine, chord
+   progression).
 6. **Shortcut manager** (a GUI over keys.json).
 7. **Touch keyboard** window.
 8. **Clip properties**, **Merge arrangement** (after the Playlist work of the other agents lands).