Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthio: Allow amplitude to be signed (+ other stuff) #8642

Merged
merged 8 commits into from
Nov 21, 2023

Conversation

jepler
Copy link
Member

@jepler jepler commented Nov 21, 2023

This closes #8564 (ping @CedarGroveStudios)

While working on this issue, I noticed that the "circuitpython" tests were not being run by "make test" and therefore not during CI. (this probably happened during one of the recent micropython merges; I marked the changes as CIRCUITPY-CHANGE) There were several problems with the tests themselves. I fixed them, updated some expected outputs, and restored running the tests when expected.

The final unrelated change to tools/git-checkout-latest-tag.sh ensures that if a tag isn't fetched, the script exits with an error. It's intended that all frozen modules have to be at a tag, but this script would run without errors even if no tags were available.

Previously, negative amplitudes were clamped to zero.
Now, they are allowed to range from -ALMOST_ONE to +ALMOST_ONE.
This is useful in certain circumstances, such as using synthio
to create CV-like outputs that can be positive or negative, by
using the amplitude property of the note.
some of the numbers have the last two digits changed, it's just noise.
@jepler jepler requested a review from dhalbert November 21, 2023 14:59
@tannewt tannewt requested review from tannewt and removed request for dhalbert November 21, 2023 21:13
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement and getting the cp tests going again!

@tannewt tannewt merged commit 79155af into adafruit:main Nov 21, 2023
471 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.

Expand synthio.Note.amplitude range to allow CV-like outputs
2 participants