Home Manual Reference Source Repository

Function

Static Public Summary
public

A generator to create data for grid axis according to a bpm and a meter.

public

A generator to create data for time axis.

Static Public

public gridAxisGenerator(bpm: Number, signature: String): Function source

import gridAxisGenerator from 'waves-ui/src/axis/grid-axis-generator.js'

A generator to create data for grid axis according to a bpm and a meter.

example usage

Params:

NameTypeAttributeDescription
bpm Number

The number of beats per minutes.

signature String

The meter of the mesure ('4/4', '3/8', ...).

Return:

Function

The configured function returning the data when called.

public timeAxisGenerator(): Function source

import timeAxisGenerator from 'waves-ui/src/axis/time-axis-generator.js'

A generator to create data for time axis.

example usage

Return:

Function

The configured function returning the data when called.