This function shares a lot of code with muse_wave_map().
This function shares a lot of code with muse_pixtable_create().