====== function: setupScheduler ====== ===== Description ===== This function sets up the scheduler in the environment. The scheduler is the core of the sequencer. ===== Syntax ===== ===== Parameters ===== a MusicalEnvironment ===== Return Value ===== ===== Example =====