# HG changeset patch # User Matti Hamalainen # Date 1349489874 -10800 # Node ID 2862f15712507628f4f501d20aab7322e74384ae # Parent 969cefb2f8c3421c62cfbdc938520fbe461479b4 Use dmClamp(). diff -r 969cefb2f8c3 -r 2862f1571250 jssplr.c --- a/jssplr.c Sat Oct 06 04:44:26 2012 +0300 +++ b/jssplr.c Sat Oct 06 05:17:54 2012 +0300 @@ -1244,10 +1244,6 @@ // Compute new pitch tmp = dmClamp(chn->iCNote + inst->ERelNote, 0, 119); //fprintf(stderr, "HEH: %d + %d = %d\n", chn->iCNote, inst->ERelNote, tmp); - if (tmp < 0) - tmp = 0; - else if (tmp > 119) - tmp = 119; chn->iCPitch = jmpGetPeriodFromNote(mp, tmp, inst->EFineTune); JMPSETNDFLAGS(cdfNewPitch);