In any criminal action or proceeding in which the court deems it essential to the protection of the substantial rights of the defendant, it shall order such transcript and copies of the shorthand reporter's notes of the evidence and proceedings upon the trial as may be necessary properly to present a motion in arrest of judgment, an application for a new trial or to perfect an appeal to the Supreme Court to be furnished to defendant's counsel at the county's expense.
SDCL 23A-32-1