Move definition of structure in mmap-ed /dev/shm file into its own header file
Simplify waveform drawing, allowing more flexible palettes