Repository navigation
Add simpletests for audioinstruments and audioeffects - #237
Merged
Merged
Conversation
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.
Adds a short, runnable starting point for each package, in
examples/:audioinstruments_simpletest.pybuilds a Rhodes electric piano by name, plays four notes, writestune.wavand lists the knobsset_macro()turns. Change one name to hear any other instrument.audioeffects_simpletest.pyplucks notes on synthio through a TapeDelay and then a hall Reverb, and writesechoes.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.