Skip to content

Add simpletests for audioinstruments and audioeffects - #237

Merged
bdbarnett merged 2 commits into
mainfrom
examples/simpletests
Oct 28, 2026
Merged

bdbarnett merged 2 commits into
mainfrom
examples/simpletests

Conversation

@bdbarnett

@bdbarnett bdbarnett commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Adds a short, runnable starting point for each package, in examples/:

  • audioinstruments_simpletest.py builds a Rhodes electric piano by name, plays four notes, writes tune.wav and lists the knobs set_macro() turns. Change one name to hear any other instrument.
  • audioeffects_simpletest.py plucks notes on synthio through a TapeDelay and then a hall Reverb, and writes echoes.wav.

Both write a WAV file, so they need no speaker or board. Both READMEs and the end of "Your first program" link to them.

Each one was run on the unix port of MicroPython and on CPython 3.12. The two interpreters wrote bit-identical files. The tune's four notes measure at C4, E4, G4 and C5. The echo file shows repeats about 300 ms apart, fading into the hall.

@bdbarnett
bdbarnett merged commit 6c31188 into main Oct 28, 2026
7 checks passed
@bdbarnett
bdbarnett deleted the examples/simpletests branch October 28, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant