Skip to content

timmydoza/mozart-dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mozart-dice-game

In 1787, composer Wolfgang Amadeus Mozart published a musical composition entitled "Musikalisches Würfelspiel", or "Musical Dice Game". This composition allows one, as Mozart puts it, "to compose, without the least knowledge of music, so many German waltzes or ländler as one pleases, by throwing a certain number with two dice."

This package generates a random minuet as determined by the music and rules of Mozart's dice game and saves it as a MIDI file.

Installation

npm install mozart-dice-game

Usage

var mozart = require('mozart-dice-game');

mozart.saveMinuet('minuet.mid');

The above usage is a synchronous function. To asynchronously save the MIDI file to disk, simply provide a callback function.

mozart.saveMinuet('minuet.mid', function(err) {
  if (err) throw err;
  console.log('saved!');
});

About

A musical dice game as conceived by Wolfgang Amadeus Mozart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published