this should be a good functional version, some cleanup of code by kopf
Merge https://github.com/maxdee/segment_mapper_osc