In a criminal action the defendant is entitled:
1.To a speedy and public trial.
2.To be allowed counsel as in civil actions, or to appear and defend in person and with counsel, except that in a capital case he shall be represented in court by counsel at all stages of the preliminary and trial proceedings.
3.To produce witnesses on his behalf and to be confronted with the witnesses against him, in the presence of the court, except that: