
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
openmusic-drum-machine
Advanced tools
A Web Audio drum machine
Clone the repository, and then copy the files to your own folder and initialise your own git repository.
Install build dependencies, etc with:
npm install
To build a bundle for the demo:
npm run build
Demo files will be placed in build/. Open build/index.html to access the demo.
Remember to rebuild the bundle each time you make a change to the demo or node code. Alternatively you can also run the watch task, so it will watch for file changes and then rebuild the bundle for you:
npm run watch
Create an instance of the node by passing it an audio context:
var audioContext = new AudioContext();
var DrumMachine = require('openmusic-drum-machine');
var drumMachine = DrumMachine(audioContext);
The instance can be connected like any other Web Audio node:
var gainNode = audioContext.createGain();
drumMachine.connect(gainNode);
Make sure to run ready() before you try to start it, otherwise the samples won't be ready to play and you won't be able to listen to anything:
drumMachine.ready().then(function(resolve) {
drumMachine.start();
});
FAQs
A Web Audio drum machine
We found that openmusic-drum-machine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.