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 = ; const metaData = 'Art at ' + 'ComposerName' 'PoetName' 'Rights';const scale = 'Bb' 'I';const xml = MusicAutomaton;
This will produce a MusicXML string in B flat major.