Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

conversion between midi tick and real time

807591Apr 13 2008 — edited Apr 14 2008
hello everyone, I'm using javax.sound.midi class to loas and play a midi file. Now that I'm already known to use Sequense.getMicrosecondLength() to get the length of time in real world, and use Sequence.getTickLength() to get the length in midi ticks.

Here comes the question, what's the relationship between the two units? As I need to capture some midi events, and MidiEvent class only support getTick() method, if I've got the tick, how can I change it into second in real world?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2008
Added on Apr 13 2008
8 comments
736 views