Cleaned up sound code a bit; slider now works but with a global, which is ugly