# rhythm

function in `@dioramajs/text/keycaps`

```ts
import { rhythm } from '@dioramajs/text/keycaps'
```

Seconds from the first key to the last, at `speed` keys a second, with a human rhythm.

```ts
function rhythm(keys: readonly KeyPlan[], speed: number): number[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `keys` | `readonly KeyPlan[]` |  |
| `speed` | `number` |  |

Defined in [packages/text/src/keycaps.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/keycaps.ts#L636).
