public class Track extends Object
 一个Track占据在由播放数据的层次结构中的中间级Sequencer
 轨道的定时信息和分辨率由包含轨道的序列控制和存储。 一个给定的Track被认为是属于特定的SequenceSequence.createTrack()Track构造函数创建一个新的(空)轨道。 
 Track类提供了通过MidiEvent添加或删除MidiEvent对象来编辑轨道的方法。 这些操作将事件列表保持正确的时间顺序。 还包括获取轨道大小的方法,无论是其包含的事件数还是其刻度中的持续时间。 
public boolean add(MidiEvent event)
event - 要添加的事件 
           true如果事件在轨道中不存在并被添加,否则 
            false 
           public boolean remove(MidiEvent event)
event - 要删除的事件 
           true如果事件存在于轨道中并被删除,否则 
            false 
           public MidiEvent get(int index) throws ArrayIndexOutOfBoundsException
index - 事件向量中所需事件的位置 
           ArrayIndexOutOfBoundsException - 如果指定的索引为负或不小于此轨道的当前大小。 
           size() 
           public int size()
public long ticks()
Sequence含有该轨道,并且还通过设置作为由定序器的音乐的拍子)。 
          Sequence.Sequence(float, int) , 
            Sequencer.setTempoInBPM(float) , 
            Sequencer.getTickPosition() 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.