🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@bundling-server-example/drum-sequencer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bundling-server-example/drum-sequencer

A basic drum sequencer

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Drum Sequencer

This JavaScript library provides a basic drum sequencer.

Installation

npm install @bundling-server-example/drum-sequencer

Usage

import { DrumSequencer } from "@bundling-server-example/drum-sequencer";

/*
  8th note tracks:
  - 1 = play
  - 0 = do not play
*/
const sequencer = new DrumSequencer({
  hihatOpen: "10000000",
  snare: "00100010",
  kick: "10001000",
});
sequencer.decodeSamples().then(() => {
  // ready for use with sequencer.play()
});

License

MIT

FAQs

Package last updated on 24 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts