High-level wrapper around a tracker pattern inside a SunVox::Slot.
Instance methods
Reads the SunVox::Event at (track, line).
SourceWrites event to the cell at (track, line).
Sourcedata
Returns all pattern events organized by track (Array(Array(SunVox::Event))).
SourceReads the full SunVox::Event at (track, line).
Sourceexists?
Returns true if this pattern slot is non-empty (lines > 0).
SourceReads a single column value from the cell at (track, line).
Sourcelines
Gets the number of lines in this pattern.
SourceSets the number of lines in this pattern.
SourceMutes (or unmutes) this pattern and returns its previous mute state.
SourceSets the mute state of this pattern.
Sourcemuted?
Returns true if this pattern is currently muted.
Sourceraw_data
Returns a direct mutable Slice(LibSunVox::Event) into the underlying SunVox pattern buffer.
Sourceremove!
Removes this pattern from its slot.
SourceWrites fields to a cell at (track, line). Negative arguments leave the corresponding field unchanged.
SourceWrites a full SunVox::Event to the cell at (track, line).
Sourceset_size(tracks :
Int32 = -1, lines :
Int32 = -1) : self
Resizes this pattern (-1 leaves a dimension unchanged).
SourceSets the pattern's (x, y) coordinates on the timeline.
Sourceto_i
Returns the integer pattern ID.
Sourcetracks
Gets the number of tracks in this pattern.
SourceSets the number of tracks in this pattern.
Sourceunmute!
Unmutes this pattern and returns its previous mute state.
Sourcex
Gets the pattern's X position (start line number on the timeline).
SourceSets the pattern's X coordinate (start line on timeline).
Sourcexy
Gets the pattern's {x, y} coordinates on the timeline.
Sourcey
Gets the pattern's Y position (vertical position on the timeline).
SourceSets the pattern's Y coordinate on the timeline.
Source