better table range picking
minor optimization
moved bulk of table logic to WaveTable.h/cpp