(a) If a judgment of conviction is reversed, a new trial shall be held unless otherwise specified by the appellate court. Pending a new trial or other proceeding, the defendant shall be detained, or released, or otherwise restricted as the trial court on remand determines proper. If no further trial or proceeding is to be had a defendant in custody shall be discharged, and a defendant restricted by monetary bail or otherwise shall be released from restriction and monetary bail exonerated and any deposit of funds or property refunded to the proper person.(b) Upon affirmance by the appellate court, the judgment or order affirmed or modified shall be executed.(c) Unless otherwise ordered by the trial court, within 28 days after receipt of the remittitur, the trial court shall notify the parties and place the matter on the calendar for review.