Remove const from midiValueToParameter to prevent shadow warning.

We may want to add const to all of these at some point.
Trust SoundSource decoded samplerate more than TagLib decoded samplerate when
creating BeatGrid/BeatMap. Fixes some cases of BPM detection failing.