We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Up to value 2492 works, although anything above 255 (the max value) sounds as loud:
>>> audio.SoundEffect(vol_start=2492, vol_end=2492) SoundEffect(500, 2500, 500, 2492, 2492, 3, 0, 18) >>> audio.SoundEffect().vol_start = 2492 >>> audio.SoundEffect().vol_end = 2492 >>>
2493 starts to throw exceptions indicating the max value is 9999.
>>> audio.SoundEffect(vol_start=2493) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: maximum value is 9999 >>> audio.SoundEffect(vol_end=2493) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: maximum value is 9999 >>> audio.SoundEffect().vol_start = 2493 Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: maximum value is 9999 >>> audio.SoundEffect().vol_end = 2493 Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: maximum value is 9999 >>>
The text was updated successfully, but these errors were encountered:
codal_port/microbit_soundeffect: Raise exception if volume is above 255.
de38138
Addresses issue #129. Signed-off-by: Damien George <damien@micropython.org>
Fixed by de38138
Sorry, something went wrong.
No branches or pull requests
Up to value 2492 works, although anything above 255 (the max value) sounds as loud:
2493 starts to throw exceptions indicating the max value is 9999.
The text was updated successfully, but these errors were encountered: