Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ToneMatrixOptions<GridType, GridRendererType>

Type parameters

Hierarchy

  • ToneMatrixOptions

Index

Properties

Optional autoPlay

autoPlay?: boolean

Whether to autoplay the Grid, either at first page interaction or asap if possible.

Optional canvasWrapperEl

canvasWrapperEl?: HTMLElement

The DOM element to append the default gridRenderer. Required if gridRenderer is not provided, ignored otherwise

Optional grid

grid?: GridType

If this property is provided it will be used as the gridPlayer instead of making a default Grid

default

new Grid(width = 16, height = 16, noteLength)

Optional gridRenderer

gridRenderer?: GridRendererType

If this property is provided it will be used as the gridRenderer instead of making a default GridCanvasRenderer

default

new GridCanvasRenderer (canvasWrapperEl, IGrid.width, IGrid.height)

Optional height

height?: number

The height of the board to pass to the default Grid constructor. Only used if grid is provided.

default

16

Optional noteLength

noteLength?: number

Note length, measured in fraction of a Tone measure.

default

1 / IGrid.width

Optional width

width?: number

The width of the board to pass to the default Grid constructor. Only used if grid is provided.

default

16

Generated using TypeDoc