Multiscale Modeling of Cardiac Electrophysiology: Adaptation to Atrial and Ventricular Rhythm Disorders and Pharmacological Treatment