mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
The FM-1 is the host's USB audio output as well as its input (UAC1, stereo 16 bit 44.1 kHz on EP4 OUT, isochronous adaptive; re-enumerates with bcdDevice + 0x80, no console). What the host plays comes into the last live track: into the dry mix with its LEVEL and PAN (balance), its CHORUS / DELAY / REVERB sends from the sum, DUCK, MUTE and the mute layer, on top of the track's engine. TIMER5 takes each packet into a 2 KiB ring (pool); the audio ISR reads it at the I2S clock with a linear interpolation whose step follows the ring's fill (~3.6 ms behind, steady within 0.01 %); a host that stops fades out and is primed again; only the reader moves the read index. Tests: uac_test (duplex descriptors; fast and slow I2S clocks: no glitch, 1 kHz sine at 65 dB, steady step; a gap; a new stream drops the old ring), audio_test (LEVEL, PAN, MUTE, LEVEL 0, REVERB send), ui_test (IN+OUT row). tools/build.py: the RAM-code reach check measures the calls RAM code makes (farthest callee master_out, ~400 KB to spare) instead of the image's end. Manual EN / ES, README changelog, version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh