Excellent resource on how to create a wave sine directly from createBufferSource.