diff options
author | Damien Zammit <damien@zamaudio.com> | 2014-04-28 21:14:00 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2014-04-28 21:14:00 +1000 |
commit | 5aa66987df84a055fe517bf90b2825e780968b9b (patch) | |
tree | e0962eee36f6917f43be033980327b5dd5389634 | |
parent | 25ecc420afc5e71ccc2c6d53f065f81d7e13f6a1 (diff) |
Defaults a little better
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r-- | plugins/ZamSynth/ZamSynthPlugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ZamSynth/ZamSynthPlugin.cpp b/plugins/ZamSynth/ZamSynthPlugin.cpp index 2fdbfb6..91750a4 100644 --- a/plugins/ZamSynth/ZamSynthPlugin.cpp +++ b/plugins/ZamSynth/ZamSynthPlugin.cpp @@ -112,9 +112,9 @@ void ZamSynthPlugin::d_setProgram(uint32_t index) graph = 0.0f; /* Default variable values */ - for (int i = 0; i < 127; i++) { + for (int i = 0; i < MAX_VOICES; i++) { voice[i].playing = false; - voice[i].notenum = 0; + voice[i].notenum = -1; voice[i].envpos = 0; voice[i].slowcount = 0; voice[i].curamp = 0.f; @@ -125,7 +125,7 @@ void ZamSynthPlugin::d_setProgram(uint32_t index) curvoice = voice; //ptr to first voice for (int i = 0; i < AREAHEIGHT; i++) { - wave_y[i] = sin(i*2.*M_PI/d_getSampleRate()*1000.); + wave_y[i] = sin(i*2.*M_PI/d_getSampleRate());//*1000 } for (int i = 0; i < MAX_ENV; i++) { |