8000 fix(tempo): return the beat delay as a signed value by shauneccles · Pull Request #450 · aubio/aubio · GitHub
[go: up one dir, main page]

Skip to content

fix(tempo): return the beat delay as a signed value - #450

Open
shauneccles wants to merge 1 commit into
aubio:masterfrom
LedFx:fix/tempo-signed-delay
Open

shauneccles wants to merge 1 commit into
aubio:masterfrom
LedFx:fix/tempo-signed-delay

Conversation

@shauneccles
Copy link
Copy Markdown

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 test 52/52 ok, and pytest python/tests on the setup.py build 600 passed, 51 skipped.

🤖 Generated with Claude Code

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>
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.

aubio_tempo_get_delay should return sint_t

2 participants

0