Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #21591: SalamanderGrandPianoV2.sfz plays over a semitone higher
  • Loading branch information
wschweer committed Jan 12, 2015
1 parent 83622b0 commit c377a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zerberus/voice.cpp
Expand Up @@ -114,8 +114,8 @@ void Voice::start(Channel* c, int key, int v, const Zone* z)
* .005 * c->gain();

phase.set(0);
double sr = double(s->sampleRate()) / 44100.0;
phaseIncr.set(_zerberus->ct2hz(key * 100 + z->tune) * sr/_zerberus->ct2hz(z->keyBase * 100.0));
float sr = float(s->sampleRate()) / _zerberus->sampleRate();
phaseIncr.set(_zerberus->ct2hz(key * 100.0 + z->tune) * sr/_zerberus->ct2hz(z->keyBase * 100.0));

fres = 13500.0;
last_fres = -1.0;
Expand Down

0 comments on commit c377a46

Please sign in to comment.