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

Audio countdown feedback #1192

Merged
merged 2 commits into from
Aug 31, 2024

Conversation

Emilv2
Copy link
Contributor

@Emilv2 Emilv2 commented Aug 5, 2024

Hi,

I'm loving this app, but I had 2 small annoyances:

  • When counting down time 10, 5, 3, 2 ,1 just feels so off to me, why skip just 1 number? 10, 5, 4, 3, 2, 1 feels much better to me (I see it's been in the code since 2013, so maybe it's just me).
  • I would like to have more countdown feedback when the countdown is longer than 1 min. I doubled the the feedback until it gets bigger than half the original countdown time.

Since they are very small changes I just implemented them directly in a PR

Add a countdown feedback trigger at 2x time until we're past halfway
the original time.
i.e a 10min countdown will have triggers at 4m 2m, 1m, 30s, 15s, 10s 5s, 4s, 3s, 2s 1s
@@ -521,7 +521,7 @@ private static void createAudioCountdown(Step step) {
case TIME:
// seconds
Double[] tmp0 = {
60d, 30d, 10d, 5d, 3d, 2d, 1d
60d, 30d, 10d, 5d, 4d, 3d, 2d, 1d
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional for me, I do not want to be disturbed too much.
This is basically a 1,2,5,10,20,50 sequence modified for 60s and added 3
The 3 could be dropped.

Someone else have an opinion?
I could live with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say dropping the 5 feels more natural than dropping the 3

@@ -536,6 +536,11 @@ private static void createAudioCountdown(Step step) {
return;
}

// Extent the feedback list with more values for longer countdowns
while (step.getDurationValue() / 2 > list.get(0)) {
list.add(0, list.get(0) * 2d);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or add every minute?
OK for me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took doubling over every minute because it fits in the sequence and might be less disturbing, but I am fine with either

@gerhardol gerhardol merged commit 742b166 into jonasoreland:master Aug 31, 2024
@gerhardol
Copy link
Collaborator

thanks

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.

2 participants