title: Equation to distribute items unevenly
body: <p>I'm writing a javascript program that sends a list of MIDI signals over a specified period of time.</p>
  
  <p>If the signals are sent evenly, it's easy to determine how long to wait in between each signal: it's just the total duration divided by the number of signals.</p>
  
  <p>However, I want to be able to offer a setting where the signals aren't sent equally: either the signals are sent with increasing or decreasing speed. In either case, the number of signals and the total amount of time remain the same.</p>
  
  <p><a href="https://i.stack.imgur.com/cMZAj.jpg" rel="nofollow noreferrer">Here's a picture to visualize what I'm talking about</a></p>
  
  <p>Is there a simple logarithmic/exponential function where I can compute what these values are? I'm especially hoping it might be possible to use the same equation for both, simply changing a variable.</p>
  
  <p>Thank you so much!</p>