0.1.0 • Published 7 years ago

payasan-base-names-pmb v0.1.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
7 years ago

payasan-base-names-pmb

JSON translations of some of the name definitions from Payasan, a Haskell framework for making music models and embedded DSLs.

If you prefer the GM1 (General MIDI Level 1) patch names, check package midi-instrument-names-gm1-pmb.

Files

  • build/
    • build.sh: Bash script to download the original files and extract the definitions. Some extractions aren't very smart and meaningful yet; feel free to improve the extractor.
    • orig-files/
      • LICENSE.txt: original license file.
      • *.hs: original source code files.
  • dist/
    • *.json: JSON representation of the definitions found in some of the .hs files.
    • *.amd.js: Same JSON, wrapped in define(…) for AMD.

Usage

from test.js:

var payaNames = require('payasan-base-names-pmb'),
  families = payaNames.instruments.groups,
  ins = payaNames.instruments.order;

// verify some differences from the GM1 names:
same(families[13],  [ 104, 'World' ]);

same(ins[3].slice(-4),      'tonk');
same(ins[7].slice(-4),      'cord');
same(ins.slice(24, 29).map(acronymize),
  [ 'N.A.G.', 'S.A.G.', 'J.E.G.', 'C.E.G.', 'M.E.G.' ]);
  // ^-- Payasan has the details on the left
same(ins[46].slice(-7),     'strings');   // maybe a harp, maybe not

 

License

BSD-3-Clause

Copyright (C) Stephen Peter Tetley (https://github.com/stephentetley)

Packaged for npm by @mk-pmb