Skip to content

Commit

Permalink
fixed warnings for polypluck these have also been addressed on DaisyS…
Browse files Browse the repository at this point in the history
…P repo I believe.
  • Loading branch information
Stephen Hensley committed Mar 12, 2020
1 parent 837548a commit 8ceecc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daisysp/modules/PolyPluck.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PolyPluck
active_voice_ = 0;
p_damp_ = 0.95f;
p_decay_ = 0.75f;
for(int i = 0; i < num_voices; i++)
for(size_t i = 0; i < num_voices; i++)
{
plk_[i].Init(sample_rate, plkbuff_[i], 256, PLUCK_MODE_RECURSIVE);
plk_[i].SetDamp(0.85f);
Expand Down Expand Up @@ -72,7 +72,7 @@ class PolyPluck
}
plk_[active_voice_].SetFreq(mtof(note));

for(int i = 0; i < num_voices; i++)
for(size_t i = 0; i < num_voices; i++)
{
tval = (trig > 0.0f && i == active_voice_) ? 1.0f : 0.0f;
sig += plk_[i].Process(tval);
Expand Down

0 comments on commit 8ceecc6

Please sign in to comment.