Need help MIDI Out from Arduino

Allright now I'm difficulties with sending CC messages:

I am sending as so:

ProcessMIDIOut(176,12,xx) where xx-values that can be changed from incoming voltage

is this the right format for sending out CC messages? I want the arduino to act as MIDI controller