public SongPlayer(WindowStudentController wlc, Song song)
        {
            windowLeerlingController = wlc;

            // Create standard Song if none provided
            if (song == null)
            {
                // Standard song
                song = new Song(4, 4);
                //song.AutoGenerate();
                volume = 0.25f;
            }
            CurrentSong = song;
            Bpm         = CurrentSong.BeatsPerMinute;

            // Timing
            stopwatch  = new Stopwatch();
            lastUpdate = 0;

            // State
            currentNotes = new List <Note>();
            currentX     = 0;

            SoundHelper.InitializeOutput();

            // Settings
            SoundEnabled = true;
        }