🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.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

npmnpm
Version
0.1.1
Version published
Weekly downloads
8
-82.61%
Maintainers
1
Weekly downloads
 
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 18 May 2021

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