# Timer program

**URL:** <https://www.ruby-forum.com/t/timer-program/143021>\
**Category:** Ruby\
**Created:** [July 14, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/timer-program/143021 "2008-07-14T16:18:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hydroflamexz18](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b2d939/32.png) [@hydroflamexz18](https://www.ruby-forum.com/u/hydroflamexz18)\
**Post date:** [July 14, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/timer-program/143021/1 "2008-07-14T16:18:29Z")

</div>

I’ve been looking to enhance a timer program I’ve made. It’s extremely  
simple so I want to add new features like maybe an alarm when the times  
up, I’m going to try to download an audio file such as an mp3 for an  
alarm, would there be any way to not only run the sounds on my computer  
but every other computer that the program is installed on. I was just  
going to create the file for the program then the sub file for sounds.  
Is there any way to tidy that up?

---

<div class="post-metadata">

**Author:** ![hydroflamexz18](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b2d939/32.png) [@hydroflamexz18](https://www.ruby-forum.com/u/hydroflamexz18)\
**Post date:** [July 14, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/timer-program/143021/2 "2008-07-14T17:04:25Z")

</div>

Jacob Grover wrote:

> I’ve been looking to enhance a timer program I’ve made. It’s extremely  
> simple so I want to add new features like maybe an alarm when the times  
> up, I’m going to try to download an audio file such as an mp3 for an  
> alarm, would there be any way to not only run the sounds on my computer  
> but every other computer that the program is installed on. I was just  
> going to create the file for the program then the sub file for sounds.  
> Is there any way to tidy that up?

Do you mean combine the MP3 file with the program? You could append your  
MP3 file as data after **END** , or define it as a String within your  
program. This will probably play havoc with your text editor though.  
Better would be to convert the binary data to hex values. The pack and  
unpack methods should help.

Dave
