Overview
TheTrack class is an abstract base class representing a track in the Lumix DAW. Tracks contain clips, manage audio routing through a track engine, and provide UI controls for volume, pan, solo, mute, and recording.
Namespace
Inheritance
Properties
The type of track (Audio, Midi, or Group). This is an abstract property that must be implemented by derived classes.
The audio engine responsible for processing this track’s audio output.
Unique identifier for the track. Automatically generated using
Guid.NewGuid().The display name of the track.
Whether the track is enabled (not muted). When disabled, the track produces no output.Default:
trueWhether the track is soloed. When enabled, all other tracks are muted.Default:
falseWhether the track should start recording when the global record button is pressed.Default:
falseTrack volume in decibels (dB). Range: -90.0 to 6.0 dB.
Track panning. Range: -50.0 (hard left) to 50.0 (hard right).Default:
0 (center)RGBA color of the track for visual identification.
List of all clips contained in this track.
The currently selected time range in musical time on this track.
The clip currently being dragged by the user, or
null if no clip is being dragged.Methods
SetDraggedClip
Sets the currently dragged clip.The clip being dragged, or
null to clear.SetDragStartOffset
Stores the horizontal offset when a drag operation starts.The X-axis offset in pixels where the drag started.
RenderArrangement
Renders the track in the arrangement view, including all clips and grid lines.- Clip rendering and dragging
- Time selection area
- Grid line visualization
- Drag-and-drop operations for clips and plugins
- Clip duplication
RenderControls
Renders the track control panel with volume, pan, solo, mute, and other controls.- Track name
- Track reordering buttons
- Volume meter
- Enable/solo/record toggles
- Volume and pan sliders
- Track color picker
Example Usage
Derived Classes
- AudioTrack: For audio clips and audio processing
- MidiTrack: For MIDI clips and virtual instruments
- GroupTrack: For grouping and submixing multiple tracks
See Also
- Clip - Audio and MIDI clips contained in tracks
- TrackEngine - Audio processing engine for tracks
- MusicalTime - Time representation in bars, beats, and ticks