Skip to content

Commit

Permalink
Update plugins/Stk/Mallets/Mallets.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: saker <[email protected]>
  • Loading branch information
zonkmachine and sakertooth authored Sep 29, 2023
1 parent 13f2f8e commit 825a73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Stk/Mallets/Mallets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void MalletsInstrument::playNote( NotePlayHandle * _n,
float modulator = m_modulatorModel.value();
float crossfade = m_crossfadeModel.value();

if(p < 9)
if (p < 9)
{
hardness += random * static_cast<float>(fast_rand() % 128) - 64.0;
hardness = std::clamp(hardness, 0.0f, 128.0f);
Expand Down

0 comments on commit 825a73d

Please sign in to comment.