Skip to content

Fix piano.html NUM_HARMONICS error#664

Merged
bwhitman merged 1 commit intomainfrom
claude/objective-goldstine
Mar 31, 2026
Merged

Fix piano.html NUM_HARMONICS error#664
bwhitman merged 1 commit intomainfrom
claude/objective-goldstine

Conversation

@bwhitman
Copy link
Copy Markdown
Collaborator

Summary

  • Fix NameError: name 'NUM_HARMONICS' isn't defined in piano.html tutorial
  • The micropython manifest changed from freeze() to package("amy"), so piano_params is now only importable as amy.piano_params, not as a top-level module
  • Updated from piano_params import notes_paramsfrom amy.piano_params import notes_params in docs/piano.html and amy/piano.py
  • Rebuilt micropython.wasm with the updated frozen modules

Test plan

  • Load piano.html and verify no NUM_HARMONICS error
  • Run the preloaded code blocks and verify piano sounds play

🤖 Generated with Claude Code

The micropython manifest switched from individual freeze() calls to
package("amy"), so piano_params is now only available as amy.piano_params,
not as a top-level module. Updated imports and rebuilt micropython.wasm.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bwhitman bwhitman merged commit 7ee068f into main Mar 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant