0.0.2 • Published 10 years ago

giant-steps-edm-note-suggest v0.0.2

Weekly downloads
2
License
-
Repository
bitbucket
Last release
10 years ago

Giant Steps EDM Note Suggest

API for electronic dance music note suggestion by Music Artificial Intelligence Algorithms, Inc., in association with the GiantSteps project (http://www.giantsteps-project.eu/)

Installation

$ npm install giant-steps-edm-note-suggest --save

Usage

To analyze music data and create a state transition matrix, run

$ node index.js

from comannd line. (As with other node packages, first you must have created a node_modules folder in the package root and run

$ npm install

in the node_modules folder, to get the dependencies.)

To use with your own music data, each song/piece must be in the form of a nested array, with dimensions for ontime in quarter-note beats counting from zero for measure 1 beat 1, MIDI note number, duration in quarter-note beats, channel number, and velocity (0-127). For example,

[
  [0, 39, 0.1354, 10, 69],
  [0, 56, 7.1604, 5, 73],
  [0.2500, 53, 0.3125, 3, 108],
  [1, 53, 0.4938, 3, 110],
  [1, 42, 0.2500, 10, 111],
  [1.2500, 39, 0.1146, 10, 59],
  [1.7500, 55, 0.5104, 3, 107],
  [2, 42, 0.2500, 10, 111],
  [2, 38, 0.3750, 10, 113],
  ...
]

These songs/pieces should be placed in a folder called jsps, following the folder structure of data/example, and the variable inOutPath in index.js should be changed to point to this location.

For an example of integration with a front end, see http://musicintelligence.co/apps/lct/201603/

Tests

$ npm test

Contributing

If you're interested in contributing, please contact us at contact@musicintelligence.co.

Bugs can be reported to https://groups.google.com/d/forum/maia-inc-dev

Release History

  • 0.0.2 Documentation update
  • 0.0.1 Initial release