Repository navigation
Merge main (0.5.3) into dev - #38
Merged
Merged
Conversation
Release 0.5.1.1 to main
Rytm firmware 0.5.2 (OS 1.74)
…ut a host On a USB host that never speaks (a computer in OVERBRIDGE mode, a DAW) the mods sent 15-17 messages a second for as long as the cable was in, and 0025's per-block compare cost +1.8 M instr/s in the audio interrupt. 0026 keeps rui_quiet: 1 while the port is down, and from 10 s after the port came up while no valid host message has arrived on this link. While quiet, 0026 send / isr_send / qp_isr, 0025 sfx_block (no compare, every track owed), 0021 ext_ui_lock / ext_try_send, 0029 and 0030 try_send send nothing. The first host message after the quiet began queues what a re-hello queues (hello, kit, arp codes, sequencer state), so reports resume complete and current. The freeze report (4E) tests the port only, since a stuck UI task never updates the flag. Tests: sfx_emu.py quiet, quietwake, quietback (fail on 0.5.2, pass now: 0 sysex in 15..45 s, +0.69 M/s over stock instead of +2.48). Harnesses whose host stood silent beyond 10 s get a Sidecar keepalive (tools/emu/sidecar_host.py).
…icks and slot prints quiet too While quiet, 0026 sends one hello every 30 s (2 x 11 B a minute), so a Sidecar that missed the link-up window, a 0.5.2 Pi included, answers it and wakes the link. The host-only UI ticks (dp, pj, kd, qp, pmo) stop while quiet, so pj_drain leaves nothing stale for the wake. 0021's slot-prints scan treats quiet as no host (once a second, not 5 times). The port-down state of rui_quiet is 2, so the slot prints still retry at once right after a port-up. The quiet counters move to the global rui_qn for the tests. Tests: sfx_emu.py quietlate (beacons at 40 and 70 s, the answer wakes everything); the wake tests require all 13 tracks' SENDFX within 40 ms of the first one (fails without 0025's pend); quiet counts the slot-prints scans. us_emu asserts that no host=True run went quiet; the harness keepalive runs on an 8 s clock grid, so a link that came up in an earlier run of a snapshot chain hears it too.
…ked to 0 on a running link, then a brown-out: no strict fault, usbq_link_null taken, recovery, the hello again); gone: the race-count checks apply only where the race shows (the release layout never does)
…starts the list when the tail is 0, as after stock's port reset (0x40005c3c clears head and tail), instead of writing 52(0); the null branch clears the request's +52, sets head then tail and rejoins 0x40005aba. A stock race that layout exposes; not the audio interrupt. frz usbq passes
…us mixgate Each fails on 0.5.2 because the hook's body runs every audio block (6000 times in 4 s): pmo_pre / pmo_post, rui_render_in, pin_frame, ext_smute_apply. The timing checks in them (an OFFSET applied within a block of its record, the QUICK PERF pot and FUNC reported in the block their store is seen in) pass on 0.5.2 and guard that the gates add no delay.
… call hook_gate: 16 bytes on a 16-byte boundary (one cache line), byte 0 = ext_smute, bytes 1..3 for 0026's stubs. ext_mix_det calls ext_smute_apply only when a voice is marked this block (us mixgate).
While pm has no entry, no queued record, no fader ramp and no hello, port drop or kit reload to take, the stub runs the stock LFO call alone (one test of hook_gate + 1). The MIDI and UI tasks set the byte after their state; pmo_post clears it first and looks again. pm's block clock is the OS's audio block counter. 07 STATUS wakes the hook for one block, so its "the hook ran" flag still answers with nothing modulated (pm gate, pm all).
With no pinned track, no voice pinned last block and none closing, the stub re-emits the displaced pair alone (one test of hook_gate + 3); pin_frame clears the byte first, reads the mask after, and keeps it set while it has work. The 2E handler and the hello's forget set it after the mask. The timer is read after the early return (sq pingate, pin, pinvel, hello).
… exit The audio-entry handler (the QUICK PERF report, the stock SysEx flag's gaps, the freeze probe) runs only with hook_gate + 2 set or at a look every 256th block. A new detour at the panel receiver's exit for a finished message (0x400824bc, 1.74 0x40082528) sets the byte after the pot's position or a key's state is stored, so the pot and FUNC are reported in the same audio block as before; the handler lingers 100 ms after a panel message. qp_tick wakes it for the mask, the hello's owed report and the mute; txsx_wait while it waits for a gap in a stock dump. The freeze probe counts looks: its first 4E comes 2.05 to 2.22 s after the last UI tick (was 2.0 s). The handler's block clock is the OS's counter (rui qpgate).
rui_render_in, pmo_lfo_det and pin_det's gate tests and stock paths are 58 bytes in four code lines (apart they took seven); the paths with work are out of line behind them. Same instructions a block, 250 to 290 cycles less in the cycle model.
… the panel receiver's exit)
…0 ms after it (and after a stock dump wait) A panel message was the gate byte's value 2: a task's wake or the handler's own clear could overwrite it, and the per-block looks after that message were lost (never a report). The panel receiver's exit now writes hook_gate + 4 before the gate byte; the handler takes it after clearing the gate. The linger and the stock SysEx watch go from 150 to 450 blocks: a UI tick on a loaded unit is 66 to 84 ms apart. Test: rui qplinger (fails with the 100 ms linger); qpgate's moves 350 ms apart.
… OFF sample, the filter state zero for 4 blocks); idleaudit build param for tests
…d smpshared count with it switched off
…al words identical); design: what the fix round found
…ed (three markers at the trig array's writers, 0029's FX 38..41 writer, 0026's hello), all 13 every 16th block; the round robin is gone, a resend comes with the port and on the host's request
… report, reload, kitswitch, nokit for reports that come once a change
…in its own mask, so a new mark starts it again (review M1); track values above 12 mark nothing; HOT 4; the sfx_st offsets asserted
…c named as the next block's start mask (review)
…udit / diag, 0014 test)
…d 0 checked in the kit tests and at the end of the sfx and sfu suites; sfxmiss.py; smpaudit fails without an audit build, the back-from-PLAITS case; sq stock: 0x20 follows the hellos
…an before the snapshot was loaded: both runs stopped under a block in); it checks the length and the skipped count now
…), not at a fixed instruction count: a build that changes the boot's timing no longer moves the tick against the tests' key times
…ge is found, sent or not (re-review)
…ded to a track), each with its control; suites.py finds or builds the audit build for us smpaudit
…tes together (while quiet 0025's dirty gate is off as with the port down; the wake asks for all 13 tracks once); VERSION 0.5.3
…mpare status lines at whole M with the clock; a fractional clock broke rui frame)
…r_E_func: FUNC two ticks after the page key; sq mode: the three detents in one or two messages)
…es not always see the emulator's 5 ms re-attach); quietwake checks change-only reports after the wake
…t help); a note on what is known
…urns the knob again after the wake (a change is still reported; control without the marker); the comment and the two design notes say what the merge does
…held the turn reaches param_apply_delta once or not at all by its timing against the UI tick, on 0.5.2 as well)
…y gate's; a long line wrapped
…y on the fixed base: aligned, other tests' own timings failed
Sidecar Rytm mods 0.5.3
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.
Brings the 0.5.3 release merge into dev so main and dev share history. Merges cleanly. Use a merge commit, not a squash.