LDR with logic pro 9 (midi trigger)

There is no analogRead() anywhere in the code? That seems like a good place to start looking to me.