00:00
68
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

Likes

  • Kyle McDonald plus 2 years ago
    Awesome. I love this idea of using the accelerometers while the iPod is spinning to determine the velocity.
  • Theo Watson plus 2 years 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 2 years ago
    nice. must make circle scratces on the back of the iphone? :)
  • Chris Miller 2 years ago
    haha
  •  
  • Todd vanderlin plus 2 years ago
    love it man - we should start a band
  •  
  • Memo Akten plus 2 years ago
    hah thats ace
  • Theo Watson plus 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years ago
    sick!
  •  
  • Wonderful!
  •  
  • moka plus 2 years ago
    haha :)
  •  
  • stefanix 2 years ago
    finger licking good!
  •  
  • zach lieberman plus 2 years ago
    that's sharp !!
  •  
  • Toby Adams 2 years ago
    Would love to see something like that in the app store, a great app for the pub!
  •  
  • Matt Buckland 2 years ago
    Great app, now you just need to get two iPod Touch's and start some beat-matching! :P
  •  
  • Shahaf Ifhar 2 years ago
    oo. that got me very sea sick indeed. :)
  •  
  • SUPREME:BEING 2 years ago
    yeh nice man, what's the finder application you've got?
  • Theo Watson plus 2 years ago
    its the mobile finder from cydia (jailbroken). lets you move files around, rename etc.

    though the above app is all legit :)
  •  
  • Rob McDougall plus 2 years ago
    v nice :)
  •  
  • Ian Meredith 2 years ago
    wicked choice, love that open frameworks can now make iphone apps, I'm not liking apples developers fee though.
  •  
  • lukasz plus 2 years ago
    thats awesome!
    amazing how fast ideas evolve.
    would love to have this app on my iphone.
  •  
  • Bryce 2 years ago
    That is amazing. You should put it in the app store.
  •  
  • Brennan L. 2 years 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 2 years ago
    If you ever plan to release that, Please make it work for Ipod touch 1st gen too.
  •  
  • Andy Best 2 years ago
    That is sweet!
  •  
  • Evan Freedman 2 years ago
    Eek, I was nervous your ipod was going to go flying off the table!
  •  
  • defetto plus 2 years ago
    yo this is great!

    big l rest in peace
  •  
  • seth sandler 2 years ago
    i'm in love :)
  •  
  • Jarhood 2 years ago
    thats soooooooo COOL!
  •  
  • zach gage plus 2 years 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 2 years 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 2 years ago
    That's incredible, nice one!!
  •  
  • Tommy Kane plus 2 years ago
    sweett.
  •  
  • GETDELUXE plus 2 years ago
    fantastic!!
  •  
  • Adam Lewen 2 years ago
    Theo, this is some amazing work! (and good song).
  •  
  • BlackMiracle 2 years ago
    Cool!!

    Is this app up on App Store yet?
  •  
  • Brainiac 2 years ago
    cooooooohoooooool!!!!!!!!!!!!!!!
  •  
  • Hayden Pernia 2 years ago
    Good thing iphones/touch don't use hard disks
  •  
  • tomgalle 2 years ago
    awesome!!
  •  
  • weratu 1 year ago
    suupeeeeer!
  •  
  • TSHFKYM 1 year ago
    does this work on the iPad too?? Great idea!
  •  
  • Gharbi Wassim 6 months ago
    Best app ever
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

MOV
00:01:08
  • 504x378, 14.6MB
  • Uploaded Mon April 27, 2009
  • Please join or log in to download

Statistics

Date Plays Comments
Totals 178K 514 47
Feb 12th 2 0 0
Feb 11th 15 0 0
Feb 10th 20 0 0
Feb 9th 17 0 0
Feb 8th 36 0 0
Feb 7th 77 0 0
Feb 6th 89 0 0

Related lessons from Vimeo Video School

Check out these lessons to learn more about how you can make videos like this one!