The defendants in criminal cases in said city court shall be tried on written accusation setting forth plainly the offense charged, founded on affidavit made by the prosecutor. Said accusation shall be signed by the prosecuting officer of said court, and have endorsed thereon the name of the prosecutor. Upon such affidavit and accusation being made and filed in the clerk's office of said court, the defendant shall, upon arraignment, be asked by the judge whether he waives trial by jury. If he answers "yes," the judge shall proceed to try and determine said case; if defendant shall answer "no," or stand mute, then the judge shall commit him for trial at the next regular term, or special term, in all cases allowing bail to the defendant, to be fixed by said judge. The defendant shall not be allowed to demand indictment by the grand jury as a condition precedent to trial.