Fix an elementary logic error in the WaveformSetGenerator which was causing it to generate carefully designed bad waveforms.
Fix an elementary logic error in the WaveformSetGenerator which was causing it to generate carefully designed bad waveforms.

jstammers/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,Stok/EDMSuite,jstammers/EDMSuite,ColdMatter/EDMSuite,ColdMatter/EDMSuite,jstammers/EDMSuite,ColdMatter/EDMSuite,Stok/EDMSuite,ColdMatter/EDMSuite