I need a formula to define the relative distance between 2 musical note icons (tabs), where distance represents duration, duration expressed as a multiplier of a variable beat. The tabs have a width which defines the minimum distance between them. So two tabs appearing right next to each other with no extra space between them would represent the shortest/smallest duration. The formula should describe how much space to put between subsequent tabs based on their duration value, a fraction of a variable beat.
This is for a music composition program.
I am not good with math. Or programming. I need this in a format that a programmer can use to create animations on the fly.