Repository navigation
Conversation
- amy_midi.c: UART_NUM_2 exists only on chips with 3 UARTs; guard it with
SOC_UART_NUM > 2. Without this, the library doesn't compile for the C3
('UART_NUM_2' undeclared).
- amy.h: pin the fill-buffer task to core 1 only where there is a core 1.
On single-core chips xTaskCreatePinnedToCore(..., 1) fails, and AMY
crashed at boot on the C3.
Tested: examples/BillieJeanDrums compiles for esp32c3 (failed before) and
esp32s3 (arduino-esp32 3.3.12); the same two changes have run on ten
ESP32-C3 boards for several days.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Voice allocation starts even voices at AMY_OSCS/2 so they land in the half of the oscs that the second core renders (esp_render_on_cores). With multicore off there is one render task and the split does nothing, but voices still went to the top half. On an ESP32-C3 a 2-voice piano (41 oscs a voice) took oscs 64-104, on top of oscs the sketch addressed directly (84 and up): both played through the same oscs (audible glitches), and once the sketch freed its oscs render_partials read a freed partial (Load access fault, crash loop). With multicore off, every voice now searches from osc 0, so voices pack from the bottom and the top oscs stay free. Multicore builds and Tulip are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
config.platform.multicoreoff, place every voice from osc 0. Voice allocation starts even voices at AMY_OSCS/2, the half the second core renders, but with one render task that split does nothing. On the C3 a 2-voice piano took oscs 64-104, overlapping oscs the sketch drives directly (84 and up). Both played through the same oscs (audible glitches), and once the sketch freed its oscs,render_partialsread a freed partial (Load access fault, crash loop). Multicore builds and Tulip are unchanged.Tested: examples/BillieJeanDrums compiles for esp32c3 (failed before) and esp32s3 (arduino-esp32 3.3.12). The first two changes have run on ten ESP32-C3 boards for several days. With the third, the piano sits at oscs 0-81 next to sketch-driven oscs at 84+, plays without glitches, and no longer crashes; all ten boards run it.
🤖 Generated with Claude Code