// This is a fixed tick per frame computation
public long getMicrosecondLength()
  {
    long tickLength = getTickLength();
    if (divisionType == PPQ)
    {
      // FIXME
      // How can this possible be computed?  PPQ is pulses per quarter-note,
      // which is dependent on the tempo of the Sequencer.
      throw new 
	  UnsupportedOperationException("Can't compute PPQ based lengths yet");
    }
    else
    {
      // This is a fixed tick per frame computation
      return (long) ((tickLength * 1000000) / (divisionType * resolution));
    }
  }
else
{
// This is a fixed tick per frame computation
return (long) ((tickLength * 1000000) / (divisionType * resolution));
}
if (divisionType == PPQ)
{
// FIXME
// How can this possible be computed? PPQ is pulses per quarter-note,
// which is dependent on the tempo of the Sequencer.
throw new
UnsupportedOperationException("Can't compute PPQ based lengths yet");
}
else
{
// This is a fixed tick per frame computation
return (long) ((tickLength * 1000000) / (divisionType * resolution));
}
}
public long getMicrosecondLength()
{
long tickLength = getTickLength();
if (divisionType == PPQ)
{
// FIXME
// How can this possible be computed? PPQ is pulses per quarter-note,
// which is dependent on the tempo of the Sequencer.
throw new
UnsupportedOperationException("Can't compute PPQ based lengths yet");
}
else
{
// This is a fixed tick per frame computation
return (long) ((tickLength * 1000000) / (divisionType * resolution));
}
}