More
See all Show me
A quick app I put together this morning as a response to Todd Vanderlin's AR scratching ( vimeo.com/4312616 ). The app uses the accelerometer of the ipod touch to control the speed of a 'vinyl record' on the ipod screen. Slowing down the record and speeding it up is just a matter of controlling how fast you spin the device.

Next up scratching!
Track is Full Clip by Gang Starr.

Project page: fffff.at/spinning-vinyl-ipod-app/

Note:
It only really works on the ipod touch 2nd gen as the case design is perfect for spinning on smooth surfaces. Might have to make a little spinning attachment for all the other ipod/iphone djs :)

Thanks to Zach Gage's excellent ofxALSoundPlayer class! And also Memo of MSA Visuals for the accelerometer addon which I am using quite heavily!

Credits

371 Likes

  • Kyle McDonald 6 months ago
    Awesome. I love this idea of using the accelerometers while the iPod is spinning to determine the velocity.
  • Theo Watson plus 6 months ago
    still haven't been able to figure out how to know when it is spinning backwards though! as right now I am just measuring the outwards force.
  •  
  • Chris O'Shea plus 6 months ago
    nice. must make circle scratces on the back of the iphone? :)
  • Chris Miller 6 months ago
    haha
  •  
  • vanderlin plus 6 months ago
    love it man - we should start a band
  •  
  • Memo Akten plus 6 months ago
    hah thats ace
  • Theo Watson plus 6 months ago
    forgot to credit you too for the awesome accelerometer goodness! btw can you think of a way to figure out which way the device is spinning - all the getForce / getOrientation functions don't seem to produce values that can distinguish clockwise from anti-clockwise.
  • Memo Akten plus 6 months ago
    no problem, this is so cool, looks great fun :P

    detecting clockwise v anti-clockwise could be quite tricky without any other help, cos the point about which the device is spinning is probably gonna vary randomly. What might work, is if you pivot one end of the device before spinning (i.e. hold it down with your finger) and then swing the other end around. Then you can check the x component of acceleration to determine the direction. I.e. if you're pivoting the top of the iphone, and swing the tail round (i.e. if accel.y < 0), then you can check x component: if (accel.x > 0) its clockwise; else ccw;
    if you're pivoting the bottom of the iphone and swing the top around (i.e. if accel.y>0) then you can check if (accel.x < 0) its ccw; else cw.
    once the iphone has started spinning you can save the direction until accel.y drops below a threshold (i.e. stops or changes direction) so it's safe to let go of the pivot (I think).
    The pivot method might work quite well when scratching.

    I have no idea if this will work btw, just thought of it and haven't tried it. If it does work, and you can scratch, I want a copy! :P
  • Theo Watson plus 6 months ago
    Good to hear that you think its tricky - I felt like I might be missing something obvious.

    I will try your method out though.

    The other option is just to fake it and make a forward / reverse double tap option.
  • Memo Akten plus 6 months ago
    yea it is quite tricky I think... though you could nail it on a non horizontal surface and look at fluctuations in accel.z :P

    yea try the end pivot thing. i wrote that just before I went to bed, and ended up having dr-dr-waka-waka-reams about it! \m/
  • Jonas Jongejan 6 months ago
    I agree with Memo. Just had a look on a graph of the acc.meter when turning it around, it seems like you get a spike that goes either positive or negative when turning it either forward or backwards on the x axis.
  • Kof-i 6 months ago
    you could use the touch screen as added input?
    if you slow it down, your fingers move a little across the screen, an by that way, the phone/itouch can determinewhat way the thing is spinning.
    but it would require a little more practice to operate the app, because you have to think of the touchscreen input, that it doesnt do anything you dont want it to do
  •  
  • zach gage plus 6 months ago
    sick!
  •  
  • Wonderful!
  •  
  • moka 6 months ago
    haha :)
  •  
  • stefanix 6 months ago
    finger licking good!
  •  
  • thesystemis plus 6 months ago
    that's sharp !!
  •  
  • Toby Adams 6 months ago
    Would love to see something like that in the app store, a great app for the pub!
  •  
  • Matt Buckland 6 months ago
    Great app, now you just need to get two iPod Touch's and start some beat-matching! :P
  •  
  • Shahaf Ifhar 6 months ago
    oo. that got me very sea sick indeed. :)
  •  
  • SUPREME:BEING 6 months ago
    yeh nice man, what's the finder application you've got?
  • Theo Watson plus 6 months ago
    its the mobile finder from cydia (jailbroken). lets you move files around, rename etc.

    though the above app is all legit :)
  •  
  • hob 6 months ago
    v nice :)
  •  
  • Ian Meredith 6 months ago
    wicked choice, love that open frameworks can now make iphone apps, I'm not liking apples developers fee though.
  •  
  • lukasz plus 6 months ago
    thats awesome!
    amazing how fast ideas evolve.
    would love to have this app on my iphone.
  •  
  • Bryce plus 6 months ago
    That is amazing. You should put it in the app store.
  •  
  • Brennan L. 6 months ago
    Sweet!

    Can you use any song on your ipod?

    This reminds me of WarioWare Twisted, which used the accelerometer in the same way (except the gameboy didn't spin nearly as well as the smooth ipod back.)

    Scratching the back case? probably... It's bound to happen anyway.

    Well done, anyway.
  •  
  • Adam Leung 6 months ago
    If you ever plan to release that, Please make it work for Ipod touch 1st gen too.
  •  
  • Andy Best 6 months ago
    That is sweet!
  •  
  • Evan Freedman 6 months ago
    Eek, I was nervous your ipod was going to go flying off the table!
  •  
  • defetto plus 6 months ago
    yo this is great!

    big l rest in peace
  •  
  • seth sandler 6 months ago
    i'm in love :)
  •  
  • Jama Noor 6 months ago
    thats soooooooo COOL!
  •  
  • zach gage plus 6 months ago
    holy hell this is a lot of comments!

    Theo did you manage to hack in setting track position? or did you figure out some other crazy way to do make it work?
  • Theo Watson plus 6 months ago
    Hey Zach,
    no not yet - I think I will need to though to do proper scratching. I tried doing it just with pitch but it didn't sound right. Don't know how I posted to the wrong thread btw - I was wondering where my post went.
  •  
  • iamkeir 6 months ago
    That's incredible, nice one!!
  •  
  • ourvinylcollection 6 months ago
    FAWKing cool.
  •  
  • Tommy Kane plus 6 months ago
    sweett.
  •  
  • Tom Welsh 6 months ago
    fantastic!!
  •  
  • Adam Lewen 6 months ago
    Theo, this is some amazing work! (and good song).
  •  
  • BlackMiracle 6 months ago
    Cool!!

    Is this app up on App Store yet?
  •  
  • Brainiac 5 months ago
    cooooooohoooooool!!!!!!!!!!!!!!!
  •  
  • Hayden Pernia 4 months ago
    Good thing iphones/touch don't use hard disks
  •  
  • wireless plus 4 months ago
    awesome!!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

4 Related collections

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 145K
    likes 371
    comments 44
  • Nov 5th
    plays 61
    likes 0
    comments 0
  • Nov 4th
    plays 64
    likes 0
    comments 0
  • Nov 3rd
    plays 64
    likes 0
    comments 0
  • Nov 2nd
    plays 79
    likes 1
    comments 0
  • Nov 1st
    plays 104
    likes 1
    comments 0
  • Oct 31st
    plays 65
    likes 0
    comments 0
  • Oct 30th
    plays 73
    likes 0
    comments 0
  • Oct 29th
    plays 81
    likes 1
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.