View Javadoc

1   package net.sf.jack4j;
2   
3   /**
4    * MIDI event that can be processed by Jack.
5    * 
6    * <p>
7    * The class only contains time (frame number since "the zero time"), and raw
8    * MIDI data represented as byte array.
9    * 
10   * @author repa
11   * 
12   */
13  public class JackMidiEvent {
14  
15  	private int time;
16  	private byte[] data;
17  
18  	public JackMidiEvent(int time, byte[] data) {
19  		this.time = time;
20  		this.data = data;
21  	}
22  
23  	/**
24  	 * @return the time
25  	 */
26  	public int getTime() {
27  		return time;
28  	}
29  
30  	/**
31  	 * @param time
32  	 *            the time to set
33  	 */
34  	public void setTime(int time) {
35  		this.time = time;
36  	}
37  
38  	/**
39  	 * @return the data
40  	 */
41  	public byte[] getData() {
42  		return data;
43  	}
44  
45  	/**
46  	 * @param data
47  	 *            the data to set
48  	 */
49  	public void setData(byte[] data) {
50  		this.data = data;
51  	}
52  
53  }