Creates a new Grid player
The width of the grid in tiles
The height of the grid in tiles
Index of the current instrument that's being placed with setTileValue
The height of the grid in tiles
The width of the grid in tiles
Turns off all tiles and removes all notes
Dispose of all resources used by this grid object.
Get the x position on the grid where the playhead currently is
Gets whether a grid tile is currently lit up (armed)
The x position, measured in grid tiles
The y position, measured in grid tiles
Whether the tile is lit up
Set the instrument that the Grid.setTileValue will put
Sets whether the ToneMatrix grid is muted.
True for muted, false for unmuted
Update the size of the grid. Note: If shrinking, tiles outside the space of new grid will be lost
New width in tiles
New height in tiles
New note length. If not set, use previous value, or recalculate the default if using the default value previously. If using the DEFAULT symbol explicitly recalculate the default.
Sets whether a grid tile is currently lit up (armed)
The x position, measured in grid tiles
The y position, measured in grid tiles
Whether the tile should be turned on (true) or off (false)
Toggles whether a grid tile is currently lit up (armed)
The x position, measured in grid tiles
The y position, measured in grid tiles
Generated using TypeDoc
A 2-D matrix that keeps track of notes and can enable, disable, and play them