Modified the function to generate crossfade - open to changes though, especially once we have proper audio files to play through them. Bug with oscillator node frequency changing fixed (sure I checked this during code review??)