It’s not completely straight forward, but have a look here:
In 2017 you could try to feed a list of bar positions to the getcenterlinecurves node