Skip to content

Commit

Permalink
Lower click/buzz/punch on random presets
Browse files Browse the repository at this point in the history
  • Loading branch information
nidefawl committed Jun 5, 2016
1 parent a7b6e33 commit 2efab6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ FSM_VST_Plugin::FSM_VST_Plugin (audioMasterCallback audioMaster)
programs[i].set(presetname,
64 + RND(64),
RND(96),
RND(100),
RND(100),
RND(100),
RND(30),
RND(20),
RND(50),
1 + RND(240),
1 + RND(240),
1 + RND(240),
Expand Down Expand Up @@ -378,6 +378,7 @@ void FSM_Voice::setParameters(ProgramParameters *ptval, float srate)
if (this->currentNote != NOTE_OFF)
{
int v = this->currentNote-24;
v = (v & 15) - 1 + 12 * (v >> 4);

This comment has been minimized.

Copy link
@nidefawl

nidefawl Jun 7, 2016

Owner

Derp

this->PitchLimit = (float)(440.0*pow(2, (v - 69) / 12.0));
}
}
Expand Down

0 comments on commit 2efab6d

Please sign in to comment.