Repository navigation
fix(tempo): return the beat delay as a signed value - #450
Open
shauneccles wants to merge 1 commit into
Open
shauneccles wants to merge 1 commit into
shauneccles wants to merge 1 commit into
Conversation
The delay is stored and set as sint_t, but aubio_tempo_get_delay returned uint_t, so Python's tempo.get_delay() after set_delay(-100) gave 4294967196. Return sint_t (same size, so the ABI is unchanged), map sint_t to PyLong_FromLong in the binding generator, and parse sint_t arguments with "i" instead of the unsigned, unchecked "I". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The delay is stored and set as sint_t, but aubio_tempo_get_delay returned
uint_t, so Python's tempo.get_delay() after set_delay(-100) gave
4294967196. Return sint_t (same size, so the ABI is unchanged), map sint_t
to PyLong_FromLong in the binding generator, and parse sint_t arguments
with "i" instead of the unsigned, unchecked "I".
Closes #151.
Split out of #432. Checked together with the other small fixes on top of master plus #447:
meson test52/52 ok, andpytest python/testson the setup.py build 600 passed, 51 skipped.🤖 Generated with Claude Code