rhythm function
Seconds from the first key to the last, at `speed` keys a second, with a human rhythm.
import { rhythm } from '@dioramajs/text/keycaps'function rhythm(keys: readonly KeyPlan[], speed: number): number[]Parameters
| Name | Type | Description |
|---|---|---|
keys | readonly KeyPlan[] | |
speed | number |
Defined in packages/text/src/keycaps.ts.