Skip to content

Commit

Permalink
MdaPiano better midinote rounding, fixes supercollider#25
Browse files Browse the repository at this point in the history
  • Loading branch information
danstowell committed Jul 8, 2015
1 parent d7327d5 commit 9367339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MdaUGens/MdaUGens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void MdaPiano_next(MdaPiano *unit, int inNumSamples)
int32 k, s;

// NOTE ON
note = sc_cpsmidi(freq);
note = sc_cpsmidi(freq) + 0.5f;
if(!(note>0)) note = 0; // Added & phrased to guard against NaNs, should also catch negs
unit->note = note;

Expand Down

0 comments on commit 9367339

Please sign in to comment.