The node you are looking for is at Pitches - Automatically changing the stem direction of the middle note based on the melody.