Stylus Rmx: Library [better]
The original library from the first-generation Stylus, widely used for hip-hop and urban music.
Here's an example that creates a simple melody using the Stylus RMX library:
const midiFile = rmxl.createMidiFile(); midiFile.addTrack(); midiFile.getTrack(0).addEvent(rmxl.MidiEvent.noteOn(60, 100, 0)); // C4 note on stylus rmx library
Load a MIDI file using the loadMidiFile function:
// Play back the melody rmxl.playMidiFile(midiFile) .then(() => { console.log('Melody playback finished'); }) .catch(error => { console.error(error); }); const rmxl = require('stylus-rmx'); Play back a MIDI
By continuing to develop and improve the Stylus RMX library, we can enable even more innovative music-related projects and applications on the web.
Many users opt for the bundle, which adds five specialized expansion libraries: Stylus RMX Xpanded - Library - Spectrasonics const rmxl = require('stylus-rmx')
Modern, remix-oriented grooves designed for electronic and contemporary productions.
const rmxl = require('stylus-rmx');
Play back a MIDI file using the playMidiFile function:
The Stylus RMX library is built on top of the following components: