Re-positioning note heads on the opposite side of the stem

In some cases you may want to move one or more note heads in a chord to the opposite side of the stem. This snippet allows you to do that by overriding the horizontal placement of individual note heads.

It also includes two helper functions for making other necessary adjustments (like changing the 'stem-attachment property) that may be required when changing the horizontal placement of a note head.