The general concept you need is called discriminant analysis, pioneered by
R. A. Fisher about 80 years ago. You can read about Fisheer's original discriminant analysis in the Wikipedia
article. But
your particular problem is the simplest possible case of discriminating
between only two groups, so something like my simplified procedure suggested below might
work.
In order for perfect discrimination to be possible the maximum values
for 'short' pulses must be less than the minimum values for 'long' ones. Human
subjects may initially have a variety of definitions of 'short' and 'long', so without
some instruction, discrimination may not be possible.
You could start each subject's session with a sequence of five or so
responses prompted to be 'long' intermixed with five prompted to be 'short'.
Then you could see if further familiarization with the procedure is
necessary.
A vastly simplified version of Fisher's discriminant analysis
would be to take a point halfway between the means of short and
long presses $\bar X_s$ and $\bar X_\ell,$ respectively, and see if that
completely separates short from long. Because short pulses may have a
smaller standard deviation (SD) $S_s$ than long ones $S_\ell,$ it may
work better to see if the value $\bar X_s + cd$ is a suitable value for
separation, where $d = \bar X_\ell - \bar X_s$ and $c = \frac{S_x}{S_x + X_\ell}.$
However, you have historical data values, $Y_s$'s and $Y_\ell$'s, of short
and long pulse lengths, respectively. So, the 'familiarization' period might be shortened by demonstrating an ideal short pulse with a tone of length
$\bar Y_s$ and an ideal long one with a tone of length $\bar Y_\ell.$
Then give the subject the opportunity to show a couple of pulses of both
lengths. If he/she succeeds, the computer might say "You've got it." And
if not, "I can't quite tell the difference, let's try a few more." before
launching into the above-mentioned session with five of each type.
Because you haven't said much about the setting in which the long and short
pulses are used, my exact suggestions may not be feasible. But the ideas
are proven and sound, so I'm sure you can think of a way to modify them to
fit your particular needs.