Uses of Class javax.sound.midi.Track (Java Platform SE 8 )
Date: 2026-03-16

## Uses of Class
javax.sound.midi.Track

- Packages that use Track
  Package | Description
  --- | ---
  javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.

- - ### Uses of Track in javax.sound.midi

    Fields in javax.sound.midi with type parameters of type Track
    Modifier and Type | Field and Description
    --- | ---
    `protected Vector<Track>` | Sequence.`tracks` The MIDI tracks in this sequence.

    Methods in javax.sound.midi that return Track
    Modifier and Type | Method and 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.

    Methods in javax.sound.midi with parameters of type Track
    Modifier and Type | Method and 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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.