Fix Buffer Overrun

Fixes Undefined Behavior Generated In PADnoteParameters wavetable generation