music-automaton
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

music-automaton

A JavaScript library to automatically generate small melodies based on a set of predefined rules.

The output is a MusicXML string. MusicXML files can be imported into most composition softwares like MuseScore and there are other JavaScript libraries that can then be used to for example display MusicXML on a website.

Using the library

const MusicAutomaton = require('music-automaton');
 
const metaData = new MusicAutomaton.MetaData('Art at ' + new Date().toISOString(), 'ComposerName', 'PoetName', 'Rights');
const scale = new MusicAutomaton.Scale('Bb', 'I');
const xml = MusicAutomaton.default(metaData, scale);

This will produce a MusicXML string in B flat major.

Readme

Keywords

Package Sidebar

Install

npm i music-automaton

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

173 kB

Total Files

46

Last publish

Collaborators

  • pekka-astala