Update wave_generator.py

Fixed logic ports returning boolean instead of integers
Merge pull request #3 from Gaabe/patch-2

Update wave_generator.py