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

When using the glass tone (macintosh) the delays do not work correctly #13

Open
computamike opened this issue Nov 6, 2018 · 1 comment

Comments

@computamike
Copy link

The following Morse code beep using the glass tone doesn't work correctly as there is a problem if a beep tone takes longer than 500ms
beeper('----***')

It seems that the pause happens while the sample bell is playing - instead perhaps the pause should happen after the sample plays (?)

@computamike
Copy link
Author

computamike commented Nov 6, 2018

Writing the terminal bell character doesn't appear to give any information (about whether the sample is still playing etc) - however we might be able to find the sample that will be played, and inspect that to find out how long the sample is - and append that to the pause time.

I'm currently developing on Mac (not a mac user so this is all a bit strange to me) - but it seems that the alert is stored in /Users//Library/Preferences/.GlobalPreferences

for example :
"com.apple.sound.beep.sound" = "/System/Library/Sounds/Funk.aiff";

locating that sound using finder and we can get information about that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants