Overview
TheArrangementView class is a static class that manages the main arrangement view in Lumix. It handles track management, clip selection, zoom controls, and rendering of the arrangement interface.
Namespace
Properties
The master track for the arrangement. Contains master audio output and effects.
List of all tracks in the arrangement. Read-only access to the tracks collection.
Current beats per bar setting for the arrangement grid. Read-only property.
Current zoom level of the arrangement view. Value is clamped between 0.05 and 2.0.
List of currently selected clips in the arrangement.
Position of the arrangement window in screen coordinates.
Horizontal scroll position of the arrangement view.
Width of the visible arrangement area.
Length of the longest clip in the arrangement, in pixels.
Methods
Init
Initializes the arrangement view with default tracks.NewAudioTrack
Creates a new audio track and adds it to the arrangement.Name of the new audio track
Position to insert the track. If -1, adds to the end of the track list.
AudioTrack
Example:
NewMidiTrack
Creates a new MIDI track and adds it to the arrangement.Name of the new MIDI track
Position to insert the track. If -1, adds to the end of the track list.
MidiTrack
Example:
ZoomChange
Changes the zoom level of the arrangement view with smooth interpolation.Zoom delta. Positive values zoom in, negative values zoom out.
NewZoomChange
Alternative zoom implementation with fixed increments and centered mouse behavior.Zoom direction. Positive values zoom in by 0.1, negative values zoom out by 0.1.
Render
Renders the arrangement view and handles all user interactions.Keyboard Shortcuts
The ArrangementView responds to the following keyboard shortcuts:| Shortcut | Action |
|---|---|
Delete | Delete selected clips |
Ctrl+D | Duplicate selected clips |
0 | Toggle enable/disable for selected clips |
Right Arrow (hold) | Move selected clips forward by one grid unit |
Left Arrow (hold) | Move selected clips backward by one grid unit |
Ctrl+T | Create new audio track after selected track |
Ctrl+Shift+T | Create new MIDI track after selected track |
Ctrl+Scroll | Zoom in/out |
Middle Mouse | Pan view |
Usage Example
Notes
- The arrangement view automatically handles waveform resizing when zooming
- Clips can be selected by clicking or using Ctrl+Click for multi-selection
- The view supports grid snapping based on the
BeatsPerBarsetting - Timeline position can be changed by clicking in the arrangement area
- All track rendering is handled internally by the
Render()method