Tag Archives: processing

Control sound with sound keys from Processing app on android

I was looking for a way to use sound controls on android to control remotely (from device) omxplayer running on raspberry pi:


Here is code how to do this easily on processing:

void keyPressed() {
    if (key == CODED && keyCode ==
        android.view.KeyEvent.KEYCODE_VOLUME_DOWN) {
        println ("Volume down");
    if (key == CODED && keyCode ==
        android.view.KeyEvent.KEYCODE_VOLUME_UP) {
        println ("Volume up");

Why I’m using Processing framework.

This is just to use full power of creativity part during doing boring programmer work.

I’ve watched this course which revealed for me the power of Processing:


The whole point is that you don’t need to make your program excellent from the first day of development. It simply possible that you will not have enough time and motivation to complete.

My idea is to use Processing for quick prototyping and then (only if the application is promising – you can check this with real users) – go ahead with more powerful solution.

Firstly – create a mockup which is just broken but have the ability to communicate an idea to the user. Only after that – fix and polish it.

That is why Processing was created for – to test, experiment and create quickly without much hassle and development tools.

Finger recognition with processing and OpenCV

Still under impression after sleepless night of @24hackathon. I’ve did processing application which does object recognition of fingers (yes, similar to Leap Motion, but much more primitive – you need to use colored caps on fingers so application could track them by color).

Here is gthub link:


And demo (no sound):


Thanks to OpenCV framework – without it I would never complete this. I did game wirh tracking movenent of finger with web cam.

I will create a post on how exactly I have implemented this. Stay tuned.