Skip to content

Getting started

Installation

bash
npm install cadence-js

Usage

typescript
import {Cadence, Loop} from "cadence-js";

const cadence = new Cadence();

const loop: Loop = {
    sample: A3Piano,
    interval: "1s",
    speed: 1
}

cadence.play(loop);