openpiano.midi
Class Bpm

java.lang.Object
  extended by openpiano.midi.Bpm

public class Bpm
extends Object

The Bpm class consists time-based beats per minutes events

Version:
1.0, 07/30/08
Author:
Sascha Westermann

Constructor Summary
Bpm(MetaMessage metaMessage, long tick)
          Constructs a new beats per minute event
 
Method Summary
 int getBpm()
          Returns the beats per minute
 long getTick()
          Returns the start tick of the beats per minute event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bpm

public Bpm(MetaMessage metaMessage,
           long tick)
Constructs a new beats per minute event

Parameters:
metaMessage - the MIDI message containing informations about beats per minute
tick - the start tick to handle the MIDI message
Method Detail

getTick

public long getTick()
Returns the start tick of the beats per minute event

Returns:
the start tick of the beats per minute event

getBpm

public int getBpm()
Returns the beats per minute

Returns:
the beats per minute