sine wave generation from table data