Skip to content

Instantly share code, notes, and snippets.

@gregsabo
Created August 24, 2012 12:13
Show Gist options
  • Save gregsabo/3449937 to your computer and use it in GitHub Desktop.
Save gregsabo/3449937 to your computer and use it in GitHub Desktop.
Simple alarm clock with hour-long fade-in.
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