How can i set a custom alarm to play on the iPod touch INTERNAL speakers as an alarm?

Discussion in 'iOS Jailbreak & Cydia' started by nosnhoj909, May 14, 2008.

Thread Status:
Not open for further replies.
  1. nosnhoj909

    nosnhoj909 New Member

    Joined:
    Jan 15, 2008
    Messages:
    2
    Likes Received:
    0
    I have searched all over the internet for instructions on how to do this, but all i have found is posts on how to play alarms through the headphones or EXTERNAL speakers. i found one, but it was for mac only. What i am looking for is a relatively simple way, (or complicated if there is not any way to simplify) to use a custom sound such as an MP3 file through the IPOD TOUCH internal speakers WITHOUT PLUGGING ANYTHING INTO HEADPHONE JACK for an alarm. NOT the iphone. Yes it can be done. I don't know how. help!

    Please Register or Log in to view images




    I am running 1.1.4 jailbroken on 8GB ipod touch.
  2. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    i think the alarms you hear on the ipod are from the internal speakers, and im not sure they would be able to play mp3 files. Im pretty sure the sounds are built into the hardware aswell as ROM. however i did come across the sounds while in SSH but when i tryed to convert an mp3 to the same format ac3 or sumin, it didnt work at all :s
  3. Lore

    Lore New Member

    Joined:
    Dec 25, 2007
    Messages:
    30
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    By internal speakers I'm assuming you mean the clicker noise that you hear when typing on the keyboard. If so then there is no way to play any thing other than the basic clicks thru it, that's why all the alarms are clickers. At most you might be able to create a custom clicker to the tune of the song kinda like a polyphonic ringtone.
  4. Apple Guy

    Apple Guy Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    1,992
    Likes Received:
    41
    Device:
    iPhone 4S (Black)
    Umm, it can't be done. All you guys don't know anything.

    The piezoelectric buzzer inside the iPod that has the ability to play high pitched tones. As of yet it is only used to make a "click" noise when pressing a button and alarms.
    1 person likes this.
  5. viciouskilla

    viciouskilla New Member

    Joined:
    Apr 6, 2008
    Messages:
    86
    Likes Received:
    0
    Device:
    2G iPod touch
    i dont think u cant do it but it would be sick if it could....
  6. KStarfire

    KStarfire New Member

    Joined:
    Oct 16, 2007
    Messages:
    71
    Likes Received:
    1
    • Immature or obscene comments
    Was there really any particular need to be a dick about it?
  7. bryceisbest

    bryceisbest Member

    Joined:
    Dec 26, 2007
    Messages:
    76
    Likes Received:
    0
    Device:
    iPhone
    • Immature or obscene comments
    forseriously. dick!
  8. f1av0rflave

    f1av0rflave Banned

    Joined:
    Apr 11, 2008
    Messages:
    1,364
    Likes Received:
    5
    what if you could set it to click repeatedly very fast? Is that possible?
  9. ElectricMan5

    ElectricMan5 New Member

    Joined:
    Jun 12, 2008
    Messages:
    138
    Likes Received:
    0
    LOL!!! Is it really that hard to give him the damn tutorial??? Here's mine from my site, www.electricman5.com

    Requirements:
    -A jailbroken SSH compatible iPod Touch or iPhone. (Look at other tutorials)

    -A valid wifi connection.

    -A FTP program like WinSCP or CuteFTP Pro. (WinSCP in download section)

    -These files, which can be found in the iTouch/iPhone folder on the downloads page:

    - Alarm Writer.htm

    - jEdit.exe

    - FurElise.aif



    1. SSH into your iPod Touch or iPhone and go to the /Library/Alarms directory.

    2. Now you'll see five .aif files and a .plist file. Find the FurElise.aif file that you downloaded, and drag it into this directory. You can rename it to whatever you want your beep tone to appear as on your iPod Touch or iPhone.

    3. Now find the Alarms.plist file that was below the five .aif files, and drag it onto your desktop.

    4. Now your going to need to convert Alarms.plist into plain text so you can edit it. Do this by going to http://140.124.181.188/~khchung/cgi-bin/plutil.cgi.

    5. After you convert the file, it should download to your computer again as Alarms(2). Delete the original one, and rename this one just Alarms.

    6. Now find the AlarmWriter.htm file that you downloaded, and right click on it. Select Open With and choose Notepad.

    7. Notepad should open up, and this is what should be written:

    <html><body>
    <script>
    var music = [
    ['G6',2],
    ['C6',4],
    ['D6',4],
    ['E6',4],
    ['F6',4],
    ];

    function getHertz(note){
    if(note==0) return 0;
    return Math.round(6.875 * Math.pow(2, ((3+note)/12)));
    }

    function toNote(note){
    if(note=="0"){ return 0; }

    var key = {C:0, D:2, E:4, F:5, G:7, A:9, B:11};

    var oct = parseInt(note.replace(/[^0-9]+/g, ''));
    var not = note.substr(0, 1);
    var num = oct*12 + key[not];
    if(note.indexOf('#')>=0){
    num++;
    }else if(note.indexOf('b')>=0){
    num--;
    }

    return num;
    }

    var len = 1000;

    for(var i=0; i<music.length; i++){
    document.write('&lt;integer&gt;'+getHertz(toNote(music[0]))+'&lt;/integer&gt;&lt;integer&gt;'+Math.round(len/music[1])+'&lt;/integer&gt;<br />');
    }
    </script>
    </body></html>



    8. Now you're going to want to create the song. You're only going to edit the letter and the two numbers.
    ['G6',2],
    ['C6',4],
    ['D6',4],
    ['E6',4],
    ['F6',4],

    9. Here's a description of each thing.

    The first letter, ['G6',2], which is in green, stands for the note that the beep will play.

    The number after that, ['G6',2], stands for the octave it is in. The lower the number, the lower the octave. C6 is middle C.

    The second number, ['G6',2], is the fraction of a second the note would play for. So 2 is 1/2, as 7 would be 1/7.



    10. You can make the song longer by adding more boxes. Here's one i did for the song "Numb" by Linkin Park.

    ['E6',4],
    ['G6',4],
    ['E6',4],
    ['A6',1.5],
    ['C7',1.5],
    ['B6',2],
    ['G6',1],
    ['E6',4],
    ['G6',4],
    ['E6',4],
    ['C7',1.5],
    ['B6',1.5],
    ['G6',2],
    ['D6',1],
    ['E6',4],
    ['G6',4],
    ['E6',4],
    ['A6',1.5],
    ['C7',1.5],
    ['B6',2],
    ['G6',1],
    ['E6',4],
    ['G6',4],
    ['E6',4],
    ['C7',1.5],
    ['B6',1.5],
    ['G6',2],
    ['D6',1],



    11. After your done making the song, save the file. If you click "Save as", save it as AlarmWriter.htm, and on the bottom bar where it says the type of file you want to save it as, make it All Files.

    12. Now open up the file. Internet Explorer, FireFox, or any one of those programs that let you access the internet should open up. This is what "Numb" would look like when you open i up. Yours may vary if it's shorter or longer than "Numb".

    <integer>659</integer><integer>250</integer>
    <integer>784</integer><integer>250</integer>
    <integer>659</integer><integer>250</integer>
    <integer>880</integer><integer>667</integer>
    <integer>1047</integer><integer>667</integer>
    <integer>988</integer><integer>500</integer>
    <integer>784</integer><integer>1000</integer>
    <integer>659</integer><integer>250</integer>
    <integer>784</integer><integer>250</integer>
    <integer>659</integer><integer>250</integer>
    <integer>1047</integer><integer>667</integer>
    <integer>988</integer><integer>667</integer>
    <integer>784</integer><integer>500</integer>
    <integer>587</integer><integer>1000</integer>
    <integer>659</integer><integer>250</integer>
    <integer>784</integer><integer>250</integer>
    <integer>659</integer><integer>250</integer>
    <integer>880</integer><integer>667</integer>
    <integer>1047</integer><integer>667</integer>
    <integer>988</integer><integer>500</integer>
    <integer>784</integer><integer>1000</integer>
    <integer>659</integer><integer>250</integer>
    <integer>784</integer><integer>250</integer>
    <integer>659</integer><integer>250</integer>
    <integer>1047</integer><integer>667</integer>
    <integer>988</integer><integer>667</integer>
    <integer>784</integer><integer>500</integer>
    <integer>587</integer><integer>1000</integer>



    13. Minimize the page.

    14. Now find the Alarms.plist file. Right click on it, and hit Open with jEdit.

    15. jEdit should now load up. Now copy everything from the first <key> down to the first </dict>. This is what you should have copied:

    <key>Alarm1</key>
    <dict>
    <key>hertz_millisecs</key>
    <array>
    <integer>0</integer>
    <integer>100</integer>
    <integer>175</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>262</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>185</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>277</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>175</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>262</integer>
    <integer>98</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>185</integer>
    <integer>99</integer>
    <integer>0</integer>
    <integer>98</integer>
    <integer>277</integer>
    <integer>98</integer>
    </array>
    </dict>



    16. Now scroll all the way down to the bottom of this script. Find the two </dict>, which should look like this:

    </array>
    </dict>
    </dict>
    </plist>



    17. Click right after the first </dict>, and hit Enter. You'll now have a space in between the two.

    18. Now right click in the space and click Paste. You'll now have another Alarm1 "paragraph" duplicate to the one on top.

    19. Now scroll up a bit, to where you see <key>Alarm1</key>. Change Alarm1 to FurElise, or whatever you renamed the FurElise.aif file too. DON'T INCLUDE THE .AIF AT THE END!

    20. Now you're going to delete everything between the <integer> and </integer>. This is what you should delete:

    REMINDER: THIS IS ONLY FOR THE CONTENT THAT YOU COPIED! DO NOT MODIFY THE OTHER ONES!

    <integer>0</integer>
    <integer>100</integer>
    <integer>5274</integer>
    <integer>31</integer>
    <integer>0</integer>
    <integer>46</integer>
    <integer>5274</integer>
    <integer>54</integer>
    <integer>0</integer>
    <integer>29</integer>
    <integer>5274</integer>
    <integer>56</integer>
    <integer>0</integer>
    <integer>269</integer>
    <integer>4699</integer>
    <integer>45</integer>
    <integer>0</integer>
    <integer>46</integer>
    <integer>4699</integer>
    <integer>51</integer>
    <integer>0</integer>
    <integer>29</integer>
    <integer>4699</integer>
    <integer>62</integer>



    21. You should now have a blank space in between an <array> and an </array>.

    22. Now go back to the code that you created that is open on your Internet Browser.

    23. Copy the code, and paste it in the blank area between the two arrays.

    24. Save the document!!!!

    25. Now SSH back into your iPod Touch or iPhone. Go to /Library/Alarms, and replace the Alarms.plist document with the new one that you just edited. Now go to your iPod Touch or iPhone, and listen to your hacked alarm!!!
  10. ElectricMan5

    ElectricMan5 New Member

    Joined:
    Jun 12, 2008
    Messages:
    138
    Likes Received:
    0
    Lol!!!! You Must Really Be A Noob! Of Course It Can Be Done! Lololol Read Me Tutorial At The Bottom Of The Page
Thread Status:
Not open for further replies.

Share This Page