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

[BUG] RTTTL pause does not work #589

Open
baxerus opened this issue Aug 12, 2024 · 7 comments
Open

[BUG] RTTTL pause does not work #589

baxerus opened this issue Aug 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@baxerus
Copy link

baxerus commented Aug 12, 2024

Bug report

Describe the bug

When you use a RTTTL sound with one (or multiple) pause (p) in it, there is no silence when the pause sign is played, but instead the last tone is played longer for the length of the pause

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • awtrix3 version: v0.96

To Reproduce

Steps to reproduce the behavior:

Send a notification via MQTT (I only tried it via MQTT) to the Awtrix with the the following in it:
"rtttl": "s:d=4,o=5,b=250:d,p,p,p,p,p,p,p,f" .

Compare the output played by the Awtrix with what https://adamonsoon.github.io/rtttl-play/ and https://corax89.github.io/esp8266Game/soundEditor.html plays for this wonderful example s:d=4,o=5,b=250:d,p,p,p,p,p,p,p,f.

Expected behavior

When there is a pause (p), no tone is played.

@baxerus baxerus added the bug Something isn't working label Aug 12, 2024
@Blueforcer
Copy link
Owner

Jup, no fix found yet. Sorry

@baxerus
Copy link
Author

baxerus commented Aug 12, 2024

Yet?

Between my bug report and your message are around 4 minutes 😃

@Blueforcer
Copy link
Owner

I know this problem for a while. Buts a external library and I don't understand where the problem is.

@baxerus
Copy link
Author

baxerus commented Aug 12, 2024

My C++ skills are bad.
I glanced through the code here on github a bit. But I didn't even find out, where the noTone() function is defined (until there everything at least looked okay 😉)

@baxerus
Copy link
Author

baxerus commented Aug 12, 2024

Also looked a bit through the code of the library.
This is the first occurrence of noTone() I could find...

In general the string noTone is only two times in the code.

My assumption is, it was never implemented and was simply forgotten 😃
If this is even possible without the code crashing (here my C++ knowledge about error handling or not handling is not enough)...

@eku
Copy link

eku commented Aug 13, 2024

What do you think about reporting the matter to the author of the library?

@baxerus
Copy link
Author

baxerus commented Nov 14, 2024

No activity in the last 2 years on the library... Seems like an orphaned project 😞.

I created an issue anyway:
fabianoriccardi/melody-player#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants