This function sets up the scheduler in the environment. The scheduler is the core of the sequencer.
a MusicalEnvironment