| Package | Description | 
|---|---|
| javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI 
(Musical Instrument Digital Interface) data. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected Vector<Track> | Sequence. tracksThe MIDI tracks in this sequence. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Track | Sequence. createTrack()Creates a new, initially empty track as part of this sequence. | |
| Track[] | Sequence. getTracks()Obtains an array containing all the tracks in this sequence. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | Sequence. deleteTrack(Track track)Removes the specified track from the sequence. | |
| void | Sequencer. recordDisable(Track track)Disables recording to the specified track. | |
| void | Sequencer. recordEnable(Track track,
            int channel)Prepares the specified track for recording events received on a particular channel. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.