qw123wh / new-clock

The best clock app there is
Apache License 2.0
79 stars 27 forks source link

Longer gradual alarm volume increase priod #18

Open bytepossum opened 2 years ago

bytepossum commented 2 years ago

Currently it's 5-60 seconds with 5 s step. I think the maximum value can be increased, e. g. for the scenario of a more "gentle" alarm. In case of keeping hard-coded values I'd propose something like "Off - 5 s - 15 s - 30 s - 60 s - 5 m - 10 m - 15 m - 20 m - 25 m - 30 m - 45 m - 1 h" (0 - 5 - 15 - 30 - 60 - 300 - 600 - 900 - 1200 - 1500 - 1800 - 2700 - 3600 s).

qw123wh commented 2 years ago

It's cool as an idea, but I don't know how to implement it, I'm not an experienced developer. I need help from experienced developer

gun4qmm7h commented 2 years ago

I don't want to make a PR, go to strings and edit this `

<string-array name="crescendo_entries">
    <item>Off</item>
    <item>5 seconds</item>
    <item>10 seconds</item>
    <item>15 seconds</item>
    <item>20 seconds</item>
    <item>25 seconds</item>
    <item>30 seconds</item>
    <item>35 seconds</item>
    <item>40 seconds</item>
    <item>45 seconds</item>
    <item>50 seconds</item>
    <item>55 seconds</item>
    <item>1 minute </item>
    <item>5 minute </item>
    <item>10 minute </item>
    <item>15 minute </item>
    <item>20 minute </item>
    <item>25 minute </item>
    <item>30 minute </item>
    <item>45 minute </item>
    <item>1 hour </item>
</string-array>

<!-- Values that are retrieved from the ListPreference. These must match
     the crescendo_entries above. -->
<string-array name="crescendo_values" translatable="false">
    <item>0</item>
    <item>5</item>
    <item>10</item>
    <item>15</item>
    <item>20</item>
    <item>25</item>
    <item>30</item>
    <item>35</item>
    <item>40</item>
    <item>45</item>
    <item>50</item>
    <item>55</item>
    <item>60</item>
    <item>300</item>
    <item>600</item>
    <item>900</item>
    <item>1200</item>
    <item>1500</item>
    <item>1800</item>
    <item>2700</item>
    <item>3600</item>
</string-array>`

in crescendo_entries, should be line 300ish

qw123wh commented 2 years ago

I tried, but unfortunately it doesn't work, I think you have to make some other changes in other parts as well