Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Sound controls

PlayTileSoundOptionstype

How one sound is played.

Import it

import type { PlayTileSoundOptions } from "@johnmorrisdotca/jarajara/tile-sounds";

Definition

type PlayTileSoundOptions = {
    count?: number;
    gap?: number;
    delay?: number;
};

Members

NameTypeDescription
count (optional)number | undefined

How many tiles: place with 13 is thirteen tiles set down one after another (heard as at most MOST_SOUNDS_AT_ONCE). Unless said, one.

gap (optional)number | undefined

Milliseconds between one tile's sound and the next. Unless said, 85.

delay (optional)number | undefined

Milliseconds to wait before the first. Unless said, none.

Examples

import type { PlayTileSoundOptions } from "@johnmorrisdotca/jarajara/tile-sounds";

const value: PlayTileSoundOptions = {count:3,gap:100,delay:0};
console.log(value);
{ count: 3, gap: 100, delay: 0 }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.