Need help with photoscell setup - laser harp

I am trying to set up Duelimanove with photocell. I need to set up a laser harp type of thing where interruption of the beam triggers a MIDI note.
I do not know much about coding so I have have no clue what to do.

I got excample from this old project to start with
http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/ldr.html
The code when run with Arduino.app produces an error
In function 'void loop()':
error: 'printInteger' was not declared in this scope
Or if there is better code example to share to get me right.