This title applies to all criminal proceedings and to all proceedings for the violation of an ordinance, bylaw, or police regulation of a unit of local government in this state before the circuit courts and the magistrate courts except in cases of those minor offenses triable under §