Created
August 24, 2012 12:13
-
-
Save gregsabo/3449937 to your computer and use it in GitHub Desktop.
Simple alarm clock with hour-long fade-in.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set volume 0 | |
repeat until time string of (current date) starts with "7:00" | |
delay 10 | |
end repeat | |
-- fade in volume | |
set my_vol to 0 | |
repeat until my_vol = 7 | |
set volume my_vol | |
set my_vol to (my_vol + 0.1) | |
delay 60 | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment