A test in motion detection in Quartz Composer 3.0.

UPDATE: a new version of this written in C++ can be found at vimeo.com/1219327 with more advanced visualisations

The music is all generated in real-time by me waving my fingers, hands and arms around (or in fact any motion) in front of a standard web-cam. No post-processing was done on the audio or the video.

The concept is by no means new, but still fun nevertheless - and I'm quite happy with this implementation. I'm using a very simple frame difference technique and generating midi notes based on where-ever there is movement (actually, as QC3 cannot send midi notes I had to send the data as OSC and use OSCulator to forward them as midi).

I set up a few scales so only the notes in the chosen specific scale would trigger, and in this video I demo some: chromatic (all the notes on a piano), diminished (for a nice tense feeling), pentatonic (for a nice bluesy vibe), and Zirguleli Hicaz (a turkish scale which is by far my favorite - comes in around 1:33, if you get bored at the beginning skip to that bit).

What I like about this example is that there is no special hardware or user configuration needed - its just a standard webcam looking at a standard me with no special clothing or anything. Anyone with a webcam can just load the software and start playing. Of course a more specific version (e.g. IR Camera filming someone wearing gloves with reflective finger tips) would definitely provide much more control, and I think I will try that someday too.

More info and source code at memo.tv/webcam_piano

Credits

64 Likes

  • Dmtr.org 2 years ago
    Amazing implementation. Nice scale options too. seems you can actually use it as an instrument
  •  
  • godino 2 years ago
    Better than Matrix tricks!
  •  
  • morgan barnard plus 2 years ago
    very cool
  •  
  • moka 1 year ago
    loving the interactivity of this.
  •  
  • lukasz plus 1 year ago
    like the fact you can see how you've mapped the screen and see the notes being triggered.
    almost looks like ur playing an invisible harp.
  •  
  • vjdrmo plus 1 year ago
    this is fantastic - especially that you managed to do it in quartz composer!
  •  
  • Servando Barreiro 1 year ago
    Coool man.. I will make something with this and will send u a link.

    Thank you for sharing

    sEr
  •  
  • itaru yasuda 1 year ago
    nice concept
  •  
  • defetto plus 10 months ago
    niiice :)
  •  
  • JOSH 1 month ago
    hey where do you "send the midi" too?, I can't seem to figure it out...thanks
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 7,823
    likes 64
    comments 10
  • Nov 27th
    plays 0
    likes 0
    comments 0
  • Nov 26th
    plays 16
    likes 1
    comments 0
  • Nov 25th
    plays 19
    likes 0
    comments 0
  • Nov 24th
    plays 8
    likes 0
    comments 0
  • Nov 23rd
    plays 14
    likes 0
    comments 0
  • Nov 22nd
    plays 10
    likes 0
    comments 0
  • Nov 21st
    plays 10
    likes 0
    comments 0
  • Nov 20th
    plays 6
    likes 0
    comments 0
Previous Week

Downloads

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