(a) In all felony cases where an appeal has been taken from the trial court to the appropriate appellate court, it is discretionary with the trial judge as to whether or not the trial judge will allow bail pending appeal where the sentence imposed provides for confinement in the state penitentiary.
(b) The trial judge shall, in exercising the trial judge's discretion, consider whether or not the defendant is likely to flee or pose a danger to any other person or to the community.
(c) Every trial judge denying bail under this section shall, as a part of the order denying bail, set forth the matters and facts impelling the trial judge to exercise the trial judge's discretion against the allowance of bail pending appeal.
(d) The trial judge's action in the premises shall be reviewable by the proper appellate court or any appellate court judge or justice in the manner provided in the Tennessee Rules of Appellate Procedure.
(e) The setting of bail or release upon recognizance is a matter of right for one convicted of a felony and sentenced to confinement for less than one (1) year. If another felony charge is pending when the sentencing hearing for a felony involving a sentence of less than one (1) year is completed, the decision to set bail shall be in the discretion of the court.
(f) If a defendant is convicted of first degree murder, any Class A felony, aggravated robbery, aggravated sexual battery, aggravated kidnapping, or a violation of § 39-17-417(b) or (i), the trial court shall revoke bail immediately notwithstanding sentencing hearings, motions for a new trial, and related post-guilt determination hearings.