Sound through motion?

Discussion in 'iOS Programming' started by RunToTheHills, Jul 1, 2009.

  1. RunToTheHills macrumors member

    Joined:
    Jun 9, 2009
    #1
    Wondering if such a code exists that would enable the iphone to produce noise when shaken. For instance, the iphone emulates a glass jar of coins... so when shaken, you can hear the pennies & dimes click-clanking around inside, lol. Anybody know what I mean?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Like Rain Stick?
     
  3. RunToTheHills thread starter macrumors member

    Joined:
    Jun 9, 2009
    #3
    Whoa cool haha. Thanks for that!

    Actually, looking more for something that would be like- well, ok... Imagine your iphone is a piggy bank... You start shaking it, and can hear the sound of the change inside making noise. Know what I mean? Just wondering if there's something like this out there, or if it's possible to make something like it.

    A possible scenerio where this would be useful: You are the owner of two kittens who like to scratch their claws on your wallpaper, thus damaging it. Instead of spraying them with a waterbottle, you shake your iphone, and it begins playing a loud noise which scares them away from the wall, lol. Know what I mean?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Most definitely!
     
  5. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #5
    Try the Cat Piano app. 3 or 4 cats growling out of key will very likely startle any cat.
     

Share This Page